• 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
NSColor and NSNamedColorSpace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSColor and NSNamedColorSpace


  • Subject: NSColor and NSNamedColorSpace
  • From: Nathan Wertman <email@hidden>
  • Date: Fri, 7 Nov 2003 20:15:24 -0800

Either I am going crazy or I am a complete idiot. The following 2 lines of code should return a NSColor object that is in the NSNamedColorSpace color space correct?

NSColor * redColor = [[NSColorList colorListNamed:@"Apple"] colorWithKey:@"Red"];
NSColor * myColor = [redColor colorUsingColorSpaceName:@"NSNamedColorSpace"];

I get a nil value for myColor. I am assuming that there is a corresponding 'Red' color in the NSNamedColorSpace. When I change the redColor object to actually obtain a white color value I am still presented with nil for myColor, and there is only one shade of white.

I would like an NSColor object that is in the NSNamedColorSpace (as opposed to one of the RGB spaces), but I cannot seem to find ANY way to create on. I am running Panther currently.

What am I doing wrong?

Nate
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Parameters
  • Next by Date: NSTableView, NSArrayController, and ImageAndTextCell
  • Previous by thread: (no subject)
  • Next by thread: NSTableView, NSArrayController, and ImageAndTextCell
  • Index(es):
    • Date
    • Thread