not getting colorlist
not getting colorlist
- Subject: not getting colorlist
- From: Hans van der Meer <email@hidden>
- Date: Mon, 18 Sep 2006 14:12:04 +0200
I must be doing something wrong in reading in a colorlist.
Program code:
/* Get list of colors. */
NSColorList colorlist = [[NSColorList alloc] initWithName:@"ColorList"
fromFile:@"/Users/username/Library/Colors/ColorList"];
NSLog(@"Colorlist read %@", (colorlist == nil ? @"NO" : @"YES"));
I getting here "NO"
After construction with [[NSColorList alloc]
initWithName:@"ColorList"] the file ColorList.clr has been written
with [colorlist writeToFile:nil] and is indeed present as /Users/
username/Library/Colors/ColorList.clr
Do I misinterpret something?
Hans van der Meer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden