Multiple GlobalIDChangedNotification's since updating to 5.2.3
Multiple GlobalIDChangedNotification's since updating to 5.2.3
- Subject: Multiple GlobalIDChangedNotification's since updating to 5.2.3
- From: Allen Cronce <email@hidden>
- Date: Sat, 20 Mar 2004 11:15:58 -0800
Hi all,
Since updating to 5.2.3, I'm seeing multiple global ID changed
notifications with code that has always worked in previous WO versions.
Here's the code that sets up the notification proc:
NSNotificationCenter notificationCenter =
NSNotificationCenter.defaultCenter();
notificationCenter.addObserver(
this,
new NSSelector("_globalIDChanged", new Class[]
{NSNotification.class}),
EOGlobalID.GlobalIDChangedNotification, null);
And here's the notification proc itself (stripped down to basic debug
code):
public void _globalIDChanged(NSNotification notification) {
NSDictionary userInfo = notification.userInfo();
// get all EOKeyGlobalIDs
NSArray keyGlobalIDs = userInfo.allValues();
for (int i=0; i<keyGlobalIDs.count(); ++i) {
EOKeyGlobalID gid = (EOKeyGlobalID)
keyGlobalIDs.objectAtIndex(i);
NSLog.debug.appendln("Got a notification for a '" +
gid.entityName() + "' -> "+ gid.toString() );
}
}
When running, I see multiple notifications with the same global ID for
any given single default primary key generation operation. I don't know
that this is a 5.2.3 problem or not, but it started happening soon
after I updated.
Is anyone else seeing this? If so, any suggestions for resolving it? We
use the notification mechanism to generate end user e-mails. And what's
happening now is multiple e-mails generated because of the multiple
notifications.
Best regards,
--
Allen Cronce
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.