• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: not getting colorlist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >not getting colorlist (From: Hans van der Meer <email@hidden>)

  • Prev by Date: Re: Invoking add: operation to an ArrayController manually (CoreData)
  • Next by Date: Re: Invoking add: operation to an ArrayController manually (CoreData)
  • Previous by thread: not getting colorlist
  • Next by thread: How is an Cocoa application launched on top of all other windows that may be open ?
  • Index(es):
    • Date
    • Thread