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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to