title: AVFoundation documentation codes
body: <p>I am reading Apple documentation regarding <code>AVFoundation</code> framework. I want a NSView in my Cocoa application to play video in my application. It's a tutorial video something similar to what apple provides in their application.</p>
  
  <p>My question is, while reading this document...</p>
  
  <p><a href="http://developer.apple.com/library/mac/#documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/02_Playback.html#//apple_ref/doc/uid/TP40010188-CH3-SW2" rel="nofollow">AVFoundation programming guide</a></p>
  
  <p>Most of the classes mentioned are related to iOS as an example...<code>PlayerView</code> extends from <code>UIView</code>.</p>
  
  <p>Now, before I code I want to ask should if I am making application using same example code for Cocoa App should I read <code>UIView</code> as <code>NSView</code>? is that the solution? </p>
  
  <p>I haven't tried as it's lots of code, I thought it's better to understand it before start coding.</p>