Re: Green, Yellow and Red glob window buttons
Re: Green, Yellow and Red glob window buttons
- Subject: Re: Green, Yellow and Red glob window buttons
- From: Mark Eaton <email@hidden>
- Date: Thu, 23 Jan 2003 10:51:03 -0800
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@hidden
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@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.