title: Animate custom presentation of ViewController in OS X Yosemite
body: <p>I want to implement new method, I searched a lot on Google and Stack Overflow but I have not found an example.</p>
  <pre><code>- (void)presentViewController:(NSViewController *)viewController animator:(id &lt;NSViewControllerPresentationAnimator&gt;)animator
  </code></pre>
  <p>this method is available in OSX 10.10 and this method need to implement the protocol <code>NSViewControllerPresentationAnimator</code> which has these two methods</p>
  <pre><code>- (void)animatePresentationOfViewController:(NSViewController *)viewController fromViewController:(NSViewController *)fromViewController 
  
  - (void)animateDismissalOfViewController:(NSViewController *)viewController fromViewController:(NSViewController *)fromViewController 
  </code></pre>
  <p>These methods allow us to do custom animation between two NSViewController's
  I need an example of implementation, I have this code:</p>
  <pre><code>- (IBAction)openTask:(id)sender {
      
      NSStoryboard *storyboard = [NSStoryboard storyboardWithName:@&quot;Main&quot; bundle:[NSBundle mainBundle]];
      Tasks *task = [storyboard instantiateControllerWithIdentifier:@&quot;tasks&quot;];
      [self presentViewController:task animator:self];
   
  }
  
  - (void)animatePresentationOfViewController:(NSViewController *)viewController
                           fromViewController:(NSViewController *)fromViewController
  {
      
      
  }
  
  - (void)animateDismissalOfViewController:(NSViewController *)viewController
                        fromViewController:(NSViewController *)fromViewController
  {
      
      
  }
  </code></pre>
  <p>Can anyone help me with an example of how I could have implemented this transition?</p>