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