Skip navigation.
 
mlRe: Green, Yellow and Red glob window buttons
FROM : Mark Eaton
DATE : Thu Jan 23 19:51:03 2003

Yes, you can call +standardWindowButton:forStyleMask: to get a button
that you can put in your view hierarchy. Then call setTarget: and pass
it your window.

I'm doing this currently, using a custom shaped window
(NSBorderlessWindowMask), and the trouble I'm having is getting the
same type of rollover behavior that the window widgets of a standard
window exhibit.

Its nice of Apple to provide us with a factory method to create these
widgets, but without giving us everything we need to make them work as
users expect, I may have to fake them with my own controls.

-mark


On Thursday, January 23, 2003, at 08:39  AM, j o a r wrote:

> Have a look at NSWindow:
>
> + (NSButton *)standardWindowButton:(NSWindowButton)button
> forStyleMask:(unsigned int)styleMask
> - (NSButton *)standardWindowButton:(NSWindowButton)button
>
> (only available on Jaguar)
>
> j o a r
>
> On Thursday, Jan 23, 2003, at 17:22 Europe/Stockholm, jean-michel daix
> wrote:
>

>> Just want to know if there's somewhere a .tiff or .icns file for the
>> red,
>> yellow, and green glob window buttons in normal and small size or a
>> way to
>> create it ?
>>
>> Is it possible to add this buttons from the system to our own app ?
>>
>> Is there more than 2 size for this buttons ?

> _______________________________________________
> cocoa-dev mailing list | <email_removed>
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.

_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlGreen, Yellow and Red glob window buttons jean-michel daix Jan 23, 17:22
mlRe: Green, Yellow and Red glob window buttons j o a r Jan 23, 17:39
mlRe: Green, Yellow and Red glob window buttons Buddy Kurz Jan 23, 19:11
mlRe: Green, Yellow and Red glob window buttons Mark Eaton Jan 23, 19:51