> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com