NSButton in a NSPanel's top-right corner?

2008-07-07 Thread Relindor
Hi there I would like to have a NSButton in my NSPanel's top-right corner (Like the app on this image: http://img363.imageshack.us/img363/5733/bild5ex0.png ) but I have absolutely no idea of how to achieve this so any help would be appreciated. Thanks, Tim

Re: NSButton in a NSPanel's top-right corner?

2008-07-07 Thread Kyle Sluder
Get a reference to a standard button using -[NSWindow standardWindowButton:], and then insert your button into its superview. Position it as you normally would. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post