On Thu, Aug 13, 2009 at 6:51 PM, Sean McBride wrote:
> Did you read the docs for 'redComponent'?
>
> "This method works only with objects representing colors in the
> NSCalibratedRGBColorSpace or NSDeviceRGBColorSpace color space"
>
> Use colorUsingColorSpaceName:NSCalibratedRGBColorSpace to conve
> Which system color? Many system colors are patterns and thus do not have
> real RGB values.
>
In this case I tried it with [NSColor controlColor]. It appears to be a
regular color in the color panel.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.c
> Is "foo" itself nil?
>
No, foo is fine! =)
___
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/Upd
> 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
I'm trying to get the RGB components of a system color. Here's what I've
been trying:
NSColor* foo = [[NSColor controlColor] colorUsingColorSpaceName:
@"NSCalibratedRGBColorSpace"];
NSLog(@"%f, %f, %f", [foo redComponent], [foo blueComponent], [foo
greenComponent]);
but all I ever get is
I have my own event-loop where I call nextEventMatchingMask: repeatedly.
Many examples I found just pass a untilDate of [NSDate distantPast] to get
this behaviour as stated in the documentation but this doesn't seem to work
for me - even in a very simple setting.
Can anyone see what's wrong?
int m
Forwarding because I just noticed we're not on the list anymore. You sent
your reply to me directly.
On Fri, Jul 10, 2009 at 12:59 PM, Daniel Furrer wrote:
> Thanks for your reply.
>
> So I'm drawing in an image but I just tried to draw on a view (I put the
> same calls i
Hi all,
--- intro ---
I've been working on bringing the Eiffel programming language [1] to Mac OS
X and especially porting the main GUI framework EiffelVision [2] for the
last four months. (If you never heard about the language I encourage you to
have a look yourself, some of the main features inc