• 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
CalCalendarStore notification names?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CalCalendarStore notification names?


  • Subject: CalCalendarStore notification names?
  • From: Daniel Wambold <email@hidden>
  • Date: Sat, 19 Jan 2008 17:01:23 -0500

Hello. I'm working with CalCalenarStore distributed notifications and I can't seem to figure this out: The manual for the class lists notifications, namely:
"The following notifications are posted when another application changes these types of objects: CalCalendarsChangedExternallyNotification ,CalEventsChangedExternallyNotification, and CalTasksChangedExternallyNotification notifications."
However, my code (below) does not respond (debugger break, NSLogs, etc.) to changes made in iCal:
[[NSDistributedNotificationCenter defaultCenter] addObserver:self selector:@selector(myUpdateCalendarList:) name :@"com.apple.CalendarStore.CalDistributedCalendarsChangedNotification" object:nil suspensionBehavior:NSNotificationSuspensionBehaviorDeliverImmediately];
If I NSLog ALL distributed notification names, however, this one appears at the correct times:
com.apple.CalendarStore.CalDistributedCalendarsChangedNotification
If I use the above string in my addObserver... it works fine. Is this a documentation error, or have I somehow got the wrong docs, or am I missing something else entirely? Thanks! -Dan W


_______________________________________________

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: Pointer on a document (suite)
  • Next by Date: RE:CalCalendarStore notification names?
  • Previous by thread: Re: Pointer on a document (suite)
  • Next by thread: RE:CalCalendarStore notification names?
  • Index(es):
    • Date
    • Thread