iPhoto plugin DiscRecording issue
iPhoto plugin DiscRecording issue
- Subject: iPhoto plugin DiscRecording issue
- From: Clarence Locke <email@hidden>
- Date: Thu, 23 Oct 2008 22:37:20 -0400
I am having trouble with using the DiscRecording framework from within
an iPhoto Export Plugin.
My export plugin's performExport: method essentially does the following:
[[DRNotificationCenter currentRunLoopCenter] addObserver: self
selector: @selector(_handleBurnSessionNotification:)
name: nil
object: nil];
...export files and add to burn session....
...perform the burn...
[[DRNotificationCenter currentRunLoopCenter] removeObserver: self
name: nil
object: nil];
The problem is that the _handleBurnSessionNotification: selector is
_only_ being invoked during the call to
addObserver:selector:name:object:, and only for the following
notifications:
DRDeviceAppearedNotification
DRDeviceStatusChangedNotification
At no time during the burn operation do I receive any notifications on
my handler.
The documentation for DRNotificationCenter states:
[There are two main differences between a DRNotificationCenter and the
NSNotificationCenter from Foundation. First is that only Disc
Recording posts notifications received through this mechanism. You use
this to obtain device plug/unplug events, burn status, etc. Second,
there can be multple notification centers active at once. Each run
loop of your application will have it's own notification center and
notifications from that notification center will be posted to the
runloop it was created on.]
Am I doing something wrong? or is iPhoto "eating" my notifications?
_______________________________________________
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