• 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: NSColor to CGColor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSColor to CGColor


  • Subject: Re: NSColor to CGColor
  • From: j o a r <email@hidden>
  • Date: Sun, 12 Nov 2006 17:10:08 +0100


On 12 nov 2006, at 16.58, Daniel Jalkut wrote:

Joar's is much smarter and generically applicable than the example I pasted....

Thanx!

Though, I should note that my version is not universally applicable - for example it doesn't work for all types of NSColor! The return value from "-[NSColor colorUsingColorSpaceName:]" should be checked (as it can be nil), and depending on how this code will be used, there might be other places where you would want to check return values.

j o a r


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: 
 >NSColor to CGColor (From: Antonio Nunes <email@hidden>)
 >Re: NSColor to CGColor (From: j o a r <email@hidden>)
 >Re: NSColor to CGColor (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: Re: NSColor to CGColor
  • Next by Date: Re: MyDocument instance variables, dealloc problems
  • Previous by thread: Re: NSColor to CGColor
  • Next by thread: Re: NSColor to CGColor
  • Index(es):
    • Date
    • Thread