Re: Cocoa-dev Digest, Vol 2, Issue 359
Re: Cocoa-dev Digest, Vol 2, Issue 359
- Subject: Re: Cocoa-dev Digest, Vol 2, Issue 359
- From: Dominic Feira <email@hidden>
- Date: Tue, 15 Mar 2005 17:29:27 -0500
You want to use NSWindow's
<x-tad-bigger>- (void)setFrame:(</x-tad-bigger><x-tad-bigger>NSRect</x-tad-bigger><x-tad-bigger>)</x-tad-bigger>frameRect<x-tad-bigger> display:(BOOL)</x-tad-bigger>displayFlag<x-tad-bigger> animate:(BOOL)</x-tad-bigger>animationFlag
I don't have any sample code to share, but its a very easy function to understand and use. Just calculate the new frameRect and call this function with it. Use animate: TRUE if you want to see it resize. Use display: TRUE if you want the contents to resize while the window does.
Dominic Feira / Code Monkey / Ambrosia Software, Inc.
On Mar 15, 2005, at 5:13 PM, email@hidden wrote:
Does anyone have an example of dynamically resizing a window based on
the view" you wish to display? I'm looking for something like the
System Preference. I want to incorporate different views based on a
user selection in the upper half of the window.
Thanks,
Jay
_______________________________________________
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