• 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
[Q] Hiding zoom & minimize buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Q] Hiding zoom & minimize buttons


  • Subject: [Q] Hiding zoom & minimize buttons
  • From: Eric Gorr <email@hidden>
  • Date: Wed, 22 Oct 2008 10:36:39 -0400

I found this old thread:

http://lists.apple.com/archives/cocoa-dev/2006/Mar/msg01864.html

and I would like to know the same thing. Unfortunately, the old thread did not conclude with an answer.

While it is possible to obtain the button by doing:

NSButton *miniaturizeButton = [myWindow standardWindowButton:NSWindowMiniaturizeButton];
[miniaturizeButton removeFromSuperview];


this results in a crash.



Also, how can one create a window without a zoom button?

I don't see an option in IB to remove this button. And, if I disable the minimize control in IB, the button still shows up, just grayed out.

When programatically creating a window, the style masks are as follows:

NSBorderlessWindowMask = 0,
NSTitledWindowMask = 1 << 0,
NSClosableWindowMask = 1 << 1,
NSMiniaturizableWindowMask = 1 << 2,
NSResizableWindowMask = 1 << 3,
NSTexturedBackgroundWindowMask = 1 << 8

there is no zoom button mask constant that I see.

Any thoughts, hints or suggestions?

Thank you.






_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [Q] Hiding zoom & minimize buttons
      • From: Joe Strout <email@hidden>
    • Re: [Q] Hiding zoom & minimize buttons
      • From: "Michael Ash" <email@hidden>
  • Prev by Date: Re: @property and HeaderDoc
  • Next by Date: Re: looking for reference to a dictionary
  • Previous by thread: Re: Memory Leaks in CocoaEcho Sample
  • Next by thread: Re: [Q] Hiding zoom & minimize buttons
  • Index(es):
    • Date
    • Thread