• 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: Why is "set" a class method of NSColor?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is "set" a class method of NSColor?


  • Subject: Re: Why is "set" a class method of NSColor?
  • From: Matt Neuburg <email@hidden>
  • Date: Fri, 04 Dec 2009 09:56:26 -0800
  • Thread-topic: Why is "set" a class method of NSColor?

On Thu, 3 Dec 2009 18:54:19 -0800, Jack Boyce <email@hidden> said:
>Argh, never mind.  I overlooked an important section of the Cocoa Drawing
>Guide.
>
>On Thu, Dec 3, 2009 at 6:46 PM, Jack Boyce <email@hidden> wrote:
>
>> I'm learning Cocoa, trying to understand certain "magical" features where
>> it isn't obvious how things work under the hood.  (KVO and isa-swizzling is
>> another prime example.)
>>
>> Can someone kindly explain, or point me to an explanation for, what's
>> really happening with:
>>     [[NSColor blueColor] set];

I have a vague feeling that, once again, it's a nomenclature thing. It
should really have a name that makes clear you're setting something about
the graphics context (like setForContext or something)...

You might want to file a bug on the docs for not linking to the drawing
guide from where you were. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Why is "set" a class method of NSColor?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: A hillegass challenge
  • Next by Date: Re: Best way to hook into the run loop?
  • Previous by thread: Re: Why is "set" a class method of NSColor?
  • Next by thread: Re: Why is "set" a class method of NSColor?
  • Index(es):
    • Date
    • Thread