Re: not getting colorlist
Re: not getting colorlist
- Subject: Re: not getting colorlist
- From: Pascal Pochet <email@hidden>
- Date: Tue, 19 Sep 2006 16:34:02 +0200
Le 18-sept.-06 à 14:12, Hans van der Meer a écrit :
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
…fromFile:@"/Users/username/Library/Colors/ColorList"
and
is indeed present as /Users/username/Library/Colors/ColorList.clr
-> do you forgot the extension when reading back the file… ?
Pascal Pochet
email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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