• 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: Multiple? Call-back methods for AVPlayer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple? Call-back methods for AVPlayer


  • Subject: Re: Multiple? Call-back methods for AVPlayer
  • From: Fritz Anderson <email@hidden>
  • Date: Sun, 30 Oct 2011 10:08:33 -0500

On 30 Oct 2011, at 5:58 AM, John Love wrote:

> I sure would like to just use [NSNotificationCenter defaultCenter] addObserver: … and combine in it my [mySong addObserver: method.

It appears the common prefix for notifications and KVO observations (addObserver:) is misleading you. There's no way to cross over between them, unless there's an observable property that matches the notification (maybe .rate? Not quite the same thing) or vice versa (and the notification you found is the only one in AVPlayer or AVPlayerItem).

	— F

(I originally spelled it "notificatino." A useful facility that triggers your code before the event being observed. But I've exceeded my NDA.)

_______________________________________________

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: 
 >Multiple? Call-back methods for AVPlayer (From: John Love <email@hidden>)

  • Prev by Date: Re: Keeping open menu after mouse up
  • Next by Date: minor ARC casting question
  • Previous by thread: Multiple? Call-back methods for AVPlayer
  • Next by thread: minor ARC casting question
  • Index(es):
    • Date
    • Thread