Re: Trouble with NSColor
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