CalendarStore question
CalendarStore question
- Subject: CalendarStore question
- From: Daniel Wambold <email@hidden>
- Date: Wed, 20 Feb 2008 15:16:29 -0500
I have recently added CalendarStore interactivity to a program I've
written, but I'm confused by the documentation regarding
notifications. In the docs for the CalCalendarStore class, this is
stated:
"CalCalendarsChangedExternallyNotification
Posted by the shared NSDistributedNotificationCenter object...."
OK, but the notification seems to occur in my app's
NSNotificationCenter defaultCenter rather than the
NSDistributedNotificationCenter defaultCenter. My program works
perfectly well with a plain old:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(myUpdateCalendarList:)
name:@"CalCalendarsChangedExternallyNotification"
object:nil];
Therefore, I have two questions: 1. What have I misunderstood about
where notifications get posted? 2. How does the independent
CalendarStore code send notifications to my program without having to
use the DistributedNotification system? I reread the docs on
notifications and still don't quite get what I've missed here. Thanks
in advance for your insight!
Best Regards,
Dan
_______________________________________________
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