One thing to point out is that there is no guarantee that those window widgets will continue to be red, yellow and green dots in a future OS release. Or that someone won't patch - standardWindowButton:forStyleMask: as part of a haxie for skinning the UI, in which case you could end up with some bizarre-looking status images. I would suggest either tracking down a set of images you like and then include them in your app's bundle, or rolling your own. Fewer chances for surprises that way.

steve


On Oct 17, 2008, at 10:23 AM, Andre Masse wrote:

Oh yeah! Looks like its exactly what I need!

Thanks a lot,

Andre Masse


On Oct 17, 2008, at 13:07, Andy Lee wrote:

Does this help?

standardWindowButton:forStyleMask:

--Andy

On Oct 17, 2008, at 12:46 PM, Andre Masse wrote:

Hi all,

I want to use the same widgets as the OS uses for its windows (red, yellow and green dots) for a status bar in my application, like IB does to indicate sync status with XCode. This is to reflect the connection status (red == not connected, green connected etc.) in mine. Is there a direct access to these widgets? They're not in NSImage constants.

I've poke in IB's nib to "steal" them but no luck ;-) I could roll out my own but would prefer using those provide by the OS.

Thanks and have a good day,

Andre Masse
_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to