Re: HUD window widgets

2010-04-17 Thread vincent habchi
I know of three frameworks that provide controls for use in HUD windows (in order of recommendation): BWToolkit - http://www.brandonwalkin.com/bwtoolkit/ BGHUDAppKit - http://www.binarymethod.com/bghudappkit/ HMBlkAppKit - http://shiira.jp/hmblkappkit/en.html Thanks a lot to both.

HUD window widgets

2010-04-16 Thread vincent habchi
Hi again, I'd like to add some widgets in a HUD window, like, for example, a small pop-up button, with a non-white menu background, small non-black text, etc. How can I achieve this? By subclassing NSPopUpButtonCell? Thanks, Vincent ___ Cocoa-dev

Re: HUD window widgets

2010-04-16 Thread Dave DeLong
I know of three frameworks that provide controls for use in HUD windows (in order of recommendation): BWToolkit - http://www.brandonwalkin.com/bwtoolkit/ BGHUDAppKit - http://www.binarymethod.com/bghudappkit/ HMBlkAppKit - http://shiira.jp/hmblkappkit/en.html Cheers, Dave On Apr 16, 2010, at

Re: HUD window widgets

2010-04-16 Thread Sean McBride
On Fri, 16 Apr 2010 22:43:23 +0200, vincent habchi said: I'd like to add some widgets in a HUD window, like, for example, a small pop-up button, with a non-white menu background, small non-black text, etc. How can I achieve this? By subclassing NSPopUpButtonCell? Yes. Or take a look at this:

Re: Best practices for using standard window widgets in a custom window

2010-01-22 Thread Kevin Wojniak
I didn't pull my code from Chromium, I just noticed in my googling that they used the undocumented method that is required to get the mouse over effects to work. I ended up sticking with the standard Cocoa buttons that NSWindow provides for my custom window as it requires the least amount of

Best practices for using standard window widgets in a custom window

2010-01-20 Thread Kevin Wojniak
I have a custom window (NSBorderlessWindowMask) that requires using the standard close/minimize/zoom buttons. NSWindow's standardWindowButton:forStyleMask: method works great for creating these buttons and adding to my custom (frame) view. However, the mouse over effect does not work without

Re: Best practices for using standard window widgets in a custom window

2010-01-20 Thread Jens Alfke
On Jan 20, 2010, at 9:43 AM, Kevin Wojniak wrote: NSWindow's standardWindowButton:forStyleMask: method works great for creating these buttons and adding to my custom (frame) view. However, the mouse over effect does not work without using undocumented methods. Mainly, overriding

Window widgets

2008-10-17 Thread Andre Masse
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

Re: Window widgets

2008-10-17 Thread Andy Lee
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

Re: Window widgets

2008-10-17 Thread Andre Masse
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

Re: Window widgets

2008-10-17 Thread Steve Christensen
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

Re: Window widgets

2008-10-17 Thread Kyle Sluder
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

Re: Window widgets

2008-10-17 Thread Steve Christensen
, 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

Re: Window widgets

2008-10-17 Thread Kyle Sluder
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

Re: Window widgets

2008-10-17 Thread Andre Masse
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

Re: Window widgets

2008-10-17 Thread Andrew Merenbach
, 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

Re: Window widgets

2008-10-17 Thread Andre Masse
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