Re: NSPanel with just a close button & title on title bar?
Re: NSPanel with just a close button & title on title bar?
- Subject: Re: NSPanel with just a close button & title on title bar?
- From: Peter Maurer <email@hidden>
- Date: Fri, 19 Nov 2004 08:40:03 +0100
So this should remove the zoom button from a window:
[[window standardWindowButton:NSWindowZoomButton] removeFromSuperview];
I did this once, and as far as I can remember, my app crashed unless I
retained those buttons before removing them from their superview. Thus,
I came to the conclusion that the NSWindow still wanted to "talk" to
its standard buttons from time to time, and that it was very unhappy if
someone had released them (via removeFromSuperview).
Can anyone confirm?
(Unfortunately, I don't have access to that piece of code right now, so
there's a certain possibility that my code had other flaws which caused
the crash.)
Cheers,
Peter.
_______________________________________________
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