• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Animating an NSView in from Below.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Animating an NSView in from Below. (From: Joshua Garnham <email@hidden>)

  • Prev by Date: Re: Question about garbage collection
  • Next by Date: Re: Why is [NSArray arrayWithObjects:] failing for me?
  • Previous by thread: Animating an NSView in from Below.
  • Next by thread: Re: Animating an NSView in from Below.
  • Index(es):
    • Date
    • Thread