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

Re: [Q] Hiding zoom & minimize buttons


  • Subject: Re: [Q] Hiding zoom & minimize buttons
  • From: Joe Strout <email@hidden>
  • Date: Wed, 22 Oct 2008 10:00:11 -0600

On Oct 22, 2008, at 8:36 AM, Eric Gorr wrote:

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.

That's how it's supposed to be. Consider a color-blind user. Since all three buttons are now round circles (yes, a step backwards from the OS9 UI, but there's naught we can do about that), the only way a color-blind user can tell which is which, before mousing over it, is by position. If you could remove one or two, he'd be mightily annoyed and the usability of your app would suffer. So, AFAIK, Apple doesn't allow you to do it.


Best,
- Joe


_______________________________________________

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


References: 
 >[Q] Hiding zoom & minimize buttons (From: Eric Gorr <email@hidden>)

  • Prev by Date: How to use third-party library in cocoa program?
  • Next by Date: Re: [Q] Hiding zoom & minimize buttons
  • Previous by thread: Re: [Q] Hiding zoom & minimize buttons
  • Next by thread: Re: [Q] Hiding zoom & minimize buttons
  • Index(es):
    • Date
    • Thread