• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSPanel with just a close button & title on title bar?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSPanel with just a close button & title on title bar?
      • From: Peter Maurer <email@hidden>
References: 
 >NSPanel with just a close button & title on title bar? (From: Ken Tabb <email@hidden>)
 >Re: NSPanel with just a close button & title on title bar? (From: Ricky Sharp <email@hidden>)

  • Prev by Date: How to manage different display resolutions
  • Next by Date: Re: How to manage different display resolutions
  • Previous by thread: Re: NSPanel with just a close button & title on title bar?
  • Next by thread: Re: NSPanel with just a close button & title on title bar?
  • Index(es):
    • Date
    • Thread