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

Re: Duplicate Address Book change notifications? (kABDatabaseChangedExternallyNotification)


  • Subject: Re: Duplicate Address Book change notifications? (kABDatabaseChangedExternallyNotification)
  • From: Aurélien Hugelé <email@hidden>
  • Date: Tue, 07 Feb 2006 08:15:05 +0100

The answer is very simple :
Apple does not respect the official AB API anymore, since 10.4.0

The process that send you the second (and sometimes more that second but sixth or seventh!!!) notification is the *@#$&*! sync machinery (via the AddressBookSync process that is created to send you this notification and then quit)
Just search on apple forums and some others mac related ones about problems with the automatic sync system and data corruption (mainly iCal and AB), you'll see that this technology has more more adversaries and many users have disabled it from the iSync preferences after disastrous experiences...


To prove what i say, read the doc about the "restore of the entire database" notification, try for yourself a restore and look at the notification... it is absolutly not the one described in the official documentation, and the error may lead to BIG errors...

On 7 févr. 06, at 04:15, Sean McBride wrote:

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:
40gumitech.com


This email sent to email@hidden


_______________________________________________ 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
References: 
 >Duplicate Address Book change notifications? (kABDatabaseChangedExternallyNotification) (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Core Data and @count keypath
  • Next by Date: Re: NSTableColumn Bindings and italics
  • Previous by thread: Duplicate Address Book change notifications? (kABDatabaseChangedExternallyNotification)
  • Next by thread: NSTextField, NSSecureTextField, and custom formatters
  • Index(es):
    • Date
    • Thread