Re: Newbie: window resize aloud with code?
Re: Newbie: window resize aloud with code?
- Subject: Re: Newbie: window resize aloud with code?
- From: Keary Suska <email@hidden>
- Date: Thu, 31 Aug 2006 11:11:10 -0600
- Thread-topic: Newbie: window resize aloud with code?
on 8/30/06 12:55 PM, email@hidden purportedly said:
> I have a window that is not resizable, but pressing a button should
> make the user able to resize the window. How do I set resizable aloud
> or not with code?
I don't think NSWindow has a method of allowing/disallowing window resize. I
don't think IB has one either. I believe the way it is done behind the
scenes is to set the minimum size and maximum size to the same value. This
would have the effect of disallowing, while setting min/max to other
arbitrary values would allow resize. I think this approach might hide the
resize control, but I don't recall.
You could also have a delegate implement -windowWillResize:toSize:, but it
might not be elegant.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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