Re: NSPanel with just a close button & title on title bar?
Re: NSPanel with just a close button & title on title bar?
- Subject: Re: NSPanel with just a close button & title on title bar?
- From: Andreas Mayer <email@hidden>
- Date: Thu, 18 Nov 2004 20:20:51 +0100
Am 18.11.2004 um 19:17 Uhr schrieb Ricky Sharp:
It also mentions that there's supposedly some API introduced in 10.2
to access & remove the "border view buttons". But there's no mention
of where that API lives or what it's exactly named.
--- snip ---
AppKit class NSWindow
standardWindowButton:
- (NSButton *)standardWindowButton:(NSWindowButton)button
Return the given standard button if it is in the window view hierarchy.
Availability
Available in Mac OS X v10.2 and later.
--- snip ---
NSWindowButton
typedef enum {
NSWindowCloseButton,
NSWindowMiniaturizeButton,
NSWindowZoomButton,
NSWindowToolbarButton,
NSWindowDocumentIconButton
} NSWindowButton;
--- snip ---
So this should remove the zoom button from a window:
[[window standardWindowButton:NSWindowZoomButton] removeFromSuperview];
Andreas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden