Re: Window widgets
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]
Re: Window widgets
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]
Re: Window widgets
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]
Re: Window widgets
On Fri, Oct 17, 2008 at 1:41 PM, Steve Christensen [EMAIL PROTECTED] wrote: 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. If you want the widgets that are in the upper-left corner of the screen, then this is precisely what you should not do. +standardWindowButton:forStyleMask: is THE way to get the standard window controls. Mimicking them yourself is wrong. --Kyle Sluder ___ 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]
Re: Window widgets
On Oct 17, 2008, at 10:52 AM, Kyle Sluder wrote: On Fri, Oct 17, 2008 at 1:41 PM, Steve Christensen [EMAIL PROTECTED] wrote: 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. If you want the widgets that are in the upper-left corner of the screen, then this is precisely what you should not do. +standardWindowButton:forStyleMask: is THE way to get the standard window controls. Mimicking them yourself is wrong. The OP's request was for a way to get ahold of the red, yellow and green dots used (currently) as window widgets so that he could use them as status images: 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. Thus I feel that my comment was correct: He shouldn't rely on the current look of those widgets when he's using them in a context other than for which they were intended. steve ___ 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]
Re: Window widgets
On Fri, Oct 17, 2008 at 2:04 PM, Steve Christensen [EMAIL PROTECTED] wrote: The OP's request was for a way to get ahold of the red, yellow and green dots used (currently) as window widgets so that he could use them as status images: In that case I extend my comment to include the following: Do not use widgets that look like the standard window buttons for anything other than their original purpose. It will confuse the user. --Kyle Sluder ___ 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]
Re: Window widgets
To cover up myself, I will steal those widgets' images from the system, using the method suggested and save them in my project. Thanks for your remarks guys, Andre Masse On Oct 17, 2008, at 14:04, Steve Christensen wrote: On Oct 17, 2008, at 10:52 AM, Kyle Sluder wrote: On Fri, Oct 17, 2008 at 1:41 PM, Steve Christensen [EMAIL PROTECTED] wrote: 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. If you want the widgets that are in the upper-left corner of the screen, then this is precisely what you should not do. +standardWindowButton:forStyleMask: is THE way to get the standard window controls. Mimicking them yourself is wrong. The OP's request was for a way to get ahold of the red, yellow and green dots used (currently) as window widgets so that he could use them as status images: 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. Thus I feel that my comment was correct: He shouldn't rely on the current look of those widgets when he's using them in a context other than for which they were intended. steve ___ 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]
Re: Window widgets
Hi! With all due respect, I think that you might run into a potential trouble area -- or at least a gray area -- in doing that, as those standard window button images are likely copyrighted by Apple. The ethical thing to do would be to only use images to which you can secure the rights. Best, Andrew On Oct 17, 2008, at 11:13 AM, Andre Masse wrote: To cover up myself, I will steal those widgets' images from the system, using the method suggested and save them in my project. Thanks for your remarks guys, Andre Masse On Oct 17, 2008, at 14:04, Steve Christensen wrote: On Oct 17, 2008, at 10:52 AM, Kyle Sluder wrote: On Fri, Oct 17, 2008 at 1:41 PM, Steve Christensen [EMAIL PROTECTED] wrote: 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. If you want the widgets that are in the upper-left corner of the screen, then this is precisely what you should not do. +standardWindowButton:forStyleMask: is THE way to get the standard window controls. Mimicking them yourself is wrong. The OP's request was for a way to get ahold of the red, yellow and green dots used (currently) as window widgets so that he could use them as status images: 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. Thus I feel that my comment was correct: He shouldn't rely on the current look of those widgets when he's using them in a context other than for which they were intended. steve ___ 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/andrew.merenbach%40ucla.edu This email sent to [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature ___ 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]
Re: Window widgets
No offence :-) Anyway, I end up rolling up my own. Couldn't get at the NSImage from the button. Was much quicker to draw them ;-) Thanks, Andre Masse On Oct 17, 2008, at 18:51, Andrew Merenbach wrote: Hi! With all due respect, I think that you might run into a potential trouble area -- or at least a gray area -- in doing that, as those standard window button images are likely copyrighted by Apple. The ethical thing to do would be to only use images to which you can secure the rights. Best, Andrew On Oct 17, 2008, at 11:13 AM, Andre Masse wrote: To cover up myself, I will steal those widgets' images from the system, using the method suggested and save them in my project. Thanks for your remarks guys, 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]