Skip to content

Instantly share code, notes, and snippets.

View st-j's full-sized avatar

Stefan st-j

  • uni softwarep plus GmbH
  • Austria
View GitHub Profile
@niw
niw / create_color_list.m
Created June 20, 2014 23:19
Create color list file (.clr) used for Apple color pallet, stored in ~/Library/Colors
#import <AppKit/AppKit.h>
int main(int argc, char *argv[])
{
@autoreleasepool {
NSColorList *colorList = [[NSColorList alloc] initWithName:@"Colors"];
if (argc < 2) {
printf("Usage: %s name:rrggbb,name:rrggbb,...\n", argv[0]);
return 0;
}