views:

244

answers:

2

How would I animate an NSView in from below. I know there are tutorials like Marcus Zarras which shows how to change from one view to another, but how would I animate in a view which isn't going to replace another view.

+3  A: 

This tutorial moves a view around, using Core Animation:
Intro to Core Animation

weichsel
+1  A: 

I got some answers to a similar question here.

Abizern
I tried what was in the answer to your question but got stuck on defining the NSRects. Here's what I've tried but has failed. http://grab.by/1vqG
Joshua
That's because `NSMakeRect()` returns an `NSRect` struct, not a pointer to an `NSRect` object. you've defined your `NSRect` variables as pointers, but you should be defining them without the asterisks. eg. `NSRect shrunkFirstViewRect = …` etc.
Abizern
I see, I got the view to slide in but what's in the other view isn't actually displayed. The view that want to slide in is an NSView in my XIB file connected by an IBOutlet. Why would it not work?
Joshua
Here's what I mean. http://drp.ly/9tjco
Joshua