title: How to make Volume Slider for mac application
body: <p>I write  application for Mac OS. So it will be audio player. Now i try to make volume slider from AVPLayer but i have some problem. So i tried this code:</p>
  
  <pre><code>in h file:
  
  IBOutlet NSLider *volumeSlider;
  IBOutlet NSButton *button;
  AVPlayer *myplayer;
  
  -(IBAction)changeslider;
  
  in m file:
  
  [myplayer.volume=volumeSlider.value]
  </code></pre>
  
  <p>So i have error Assigning to 'float' from incompatible type 'id'. So what i doing wrong? I know hot to make volume slider in IOS from MPMVolumeView but Mac OS used ONLY AVPlayer or AVAudioPlayer. Thanks for answers.</p>
  
  <p>So i have some idea with + or - volume from buttons. </p>
  
  <pre><code>NSString *change
  change = @"%@", +1;
  iPodplayer.volume=change;
  </code></pre>
  
  <p>But i also have error with float...</p>