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 (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]