Re: Window resizing with animation
Re: Window resizing with animation
- Subject: Re: Window resizing with animation
- From: j o a r <email@hidden>
- Date: Tue, 19 Aug 2003 18:47:36 +0200
You need to pass the setFrame method a NSRect in screen coordinates,
not coordinates local to a particular view.
j o a r
On den 19 augusti 2003, at 18:27:58PM, 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];
_______________________________________________
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.