PreferencePane and NSDistributedNotification
PreferencePane and NSDistributedNotification
- Subject: PreferencePane and NSDistributedNotification
- From: Jay Teo <email@hidden>
- Date: Wed, 4 Feb 2004 17:30:42 -0800
Hi,
I'm writing a 2-part app. One part is a PreferencePane that resides in
System Preferences and the other is faceless (NSUIElement).
Among other things, I need to launch the faceless part from the
PreferencePane, and once the faceless part is launched, the UI on the
PreferencePane needs to be updated. To accomplish the later, I
registered for notifications from NSWorkspace
(NSWorkspaceDidLaunchApplicationNotification and
NSWorkspaceDidTerminateApplicationNotification) and that worked fine
until I made the faceless part NSUIElement. NSWorkspace apparently
don't send out launch and terminate notifications for NSUIElement apps.
After some head-scratching, I came up with the idea of manually posting
distributed notifications from the faceless part. So I register for
distributed notifications from the preference pane. But the
notifications just went unnoticed.
What's up with that? Can't preference pane plug-ins receive
distributed notifications? Any suggestions for other ways to
communicate from the faceless part back to the preference pane
(distributed notifications work just fine the other direction)?
Thanks.
-Jay Teo
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.