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

Re: Trouble with NSColor


  • Subject: Re: Trouble with NSColor
  • From: Daniel Furrer <email@hidden>
  • Date: Thu, 13 Aug 2009 19:26:56 +0200

> When/where are you trying to do this?  I tried running this in main.m,
> before calling NSApplicationMain(), and got nil returned from +controlColor.
>
> I moved it into an -awakeFromNib call, and +controlColor returned a valid
> object.  That leads me to believe that some connection needs to be hooked up
> for this to work, and at the time you're calling it (as I did in main.m)
> that this connection is not configured yet.  I'll leave it to smarter gurus
> here to describe what that "connection" is.  WindowServer?  AppKit?
>

I was thinking about this, too since I actually roll my own main and event
loop (don''t ask why :)) but my [NSColor controlColor] seems to return a
sensible value!
_______________________________________________

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

References: 
 >Trouble with NSColor (From: Daniel Furrer <email@hidden>)
 >Re: Trouble with NSColor (From: Randall Meadows <email@hidden>)

  • Prev by Date: Re: Core Data Crash on MOC Release
  • Next by Date: Re: Trouble with NSColor
  • Previous by thread: Re: Trouble with NSColor
  • Next by thread: Re: Trouble with NSColor
  • Index(es):
    • Date
    • Thread