• 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
CalendarStore question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: MPTask equivalent?
  • Next by Date: Re: White highlighted appearance for icons in NSSegmentedCell
  • Previous by thread: Re: Creating and Displaying Bitmap in CGContextRef
  • Next by thread: Re: CalendarStore question
  • Index(es):
    • Date
    • Thread