Re: PreferencePane and NSDistributedNotification
Re: PreferencePane and NSDistributedNotification
- Subject: Re: PreferencePane and NSDistributedNotification
- From: James Chen <email@hidden>
- Date: Thu, 5 Feb 2004 09:53:22 +0800
Hi,
You could try to use NSConnection to form the interapp-communication. ()
In my practice, even the Distributed Notification works, the
NSConnection gains better performance.
Hope this helps,
James
------------------------------------
Ulead Systems Inc.
James Chen
Software Engineer
Image Div.
------------------------------------
On Feb 5, 2004, at 9:30 AM, Jay Teo wrote:
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.
_______________________________________________
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.