• 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
Duplicate Address Book change notifications? (kABDatabaseChangedExternallyNotification)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Duplicate Address Book change notifications? (kABDatabaseChangedExternallyNotification)


  • Subject: Duplicate Address Book change notifications? (kABDatabaseChangedExternallyNotification)
  • From: "Sean McBride" <email@hidden>
  • Date: Mon, 6 Feb 2006 22:15:39 -0500

Hi all,

I am using the kABDatabaseChangedExternallyNotification notification to
learn when the Address Book database changes.

The mysterious thing is that I seem to be getting 2 notifications when I
expect only one.  I can repro this in a simple test app.  I have found
at least one other person posting about the same problem (with no
solution) in the archives.

If I print the notification's userInfo dictionary after modifying a
person in AB.app, I get the following:

{
    ABSenderProcessID = 4060;
    ABUpdatedRecords = ("5B4682F6-FC62-45EB-A85A-73DA5D37EED9:ABPerson");
    kABUserUID = 501;
}

then a bit later in the next notification:

{ABSenderProcessID = 4101; kABUserUID = 501; }

user 501 is me, pid 4060 is Address Book.app, pid 4101 does not seem to
exist.  And notice the lack of any ABUpdatedRecords, ABInsertedRecords,
etc. in the 2nd notification.

Anyone know what this is?

I can repro with this dirt easy sample app:
<www.cam.org/~cwatson/ABNotif.zip>

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                         email@hidden
Mac Software Designer               Montréal, Québec, Canada


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Duplicate Address Book change notifications? (kABDatabaseChangedExternallyNotification)
      • From: Aurélien Hugelé <email@hidden>
  • Prev by Date: Re: subclassing a window
  • Next by Date: NSTextField, NSSecureTextField, and custom formatters
  • Previous by thread: Re: Advice on restricting/monitoring character input in NSTextView
  • Next by thread: Re: Duplicate Address Book change notifications? (kABDatabaseChangedExternallyNotification)
  • Index(es):
    • Date
    • Thread