• 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
not getting colorlist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: not getting colorlist
      • From: Pascal Pochet <email@hidden>
  • Prev by Date: Re: NSView in a toolbar item
  • Next by Date: How is an Cocoa application launched on top of all other windows that may be open ?
  • Previous by thread: Re: NSView in a toolbar item
  • Next by thread: Re: not getting colorlist
  • Index(es):
    • Date
    • Thread