Re: Animating an NSView in from Below.
Joshua, you are only setting the frames of your views but you never add secondView as a subview of your window. Florian. On 04 Jan 2010, at 14:16, 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? Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/florian.soenens%40nss.be This email sent to florian.soen...@nss.be Looking for Web-to-Print Solutions? Visit our website : http://www.vit2print.com This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information and/or information protected by intellectual property rights. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. We may monitor e-mail to and from our network. NSS nv Tieltstraat 167 8740 Pittem Belgium ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Animating an NSView in from Below.
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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Animating an NSView in from Below.
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? Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com