Re: Animating an NSView in from Below.
Re: Animating an NSView in from Below.
- Subject: Re: Animating an NSView in from Below.
- From: Graham Cox <email@hidden>
- Date: Tue, 5 Jan 2010 00:32:38 +1100
On 05/01/2010, at 12:16 AM, Joshua Garnham wrote:
> I know there are tutorials
> like Marcus Zarras which shows how to change from one view to another,
> but I would like to animate in a view which isn't going to replace another
> view. Here's what I have at the moment:http://drp.ly/9w86s (Test App).
> The view seems to slide in but the view isn't actually displayed. What's wrong?
The view 'secondView' is not part of the window, so there's nothing to display. All your code is doing is shrinking the first view, which is part of the window because you added it in IB.
You need to add 'secondView' to the window's content using [[window contentView] addSubview:secondView] at the start of the animation.
I realise you're only trying out a few ideas, but don't get carried away with this design - you need to move this stuff into a proper controller for your window.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden