Re: Window resizing with animation
Re: Window resizing with animation
- Subject: Re: Window resizing with animation
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 19 Aug 2003 19:01:50 +0200
On mardi, ao{ 19, 2003, at 18:27 Europe/Paris, Jesus De Meyer wrote:
I'm trying to implement a window with a toolbar, when you click on a
toolbar item the window changes its content view and should resize so
that the content view is fully visible. However, with the code I wrote
(see below) the window resizes AND moves. The resize isn't correct
either. What am I doing wrong?
[window setContentView:subView];
[window setFrame:[subView bounds] display:YES animate:YES];
You may need to recompute the origin of the window.
Side note: [subView bounds].origin==NSZeroPoint
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.