Fwd: Foundation Tool and NSDistributedNotificationCenter
Fwd: Foundation Tool and NSDistributedNotificationCenter
- Subject: Fwd: Foundation Tool and NSDistributedNotificationCenter
- From: Zephyroth Akash <email@hidden>
- Date: Fri, 23 Oct 2009 18:04:07 +0200
Début du message réexpédié :
De : Zephyroth Akash <email@hidden>
Date : 23 octobre 2009 17:59:48 HAEC
À : Jens Alfke <email@hidden>
Objet : Rép : Foundation Tool and NSDistributedNotificationCenter
The tool launch the application.
The application post a notification to the tool.
The tool get the notification and do its job then post back a
notification to the application. But nothing happens.
I've declared and initialize a NSDistributedNotificationCenter in
"main.m" which correctly handle the notifications send by the
application.
I've also declared a NSDistributedNotificationCenter in
"HardwareController.m" which doesn't seem to do anything ...
"main.m" and "HardwareController.m" are both in the Foundation Tool.
Le 23 oct. 09 à 17:52, Jens Alfke a écrit :
On Oct 23, 2009, at 8:37 AM, Zephyroth Akash wrote:
It works fine, the tool get the notification and do its work ...
but I'm unable to notify the application that the work is done.
Are you posting another notification from your tool back to the
application?
In the code you posted I'm not clear what runs in the app and what
runs in the tool, or which source files are in each. Could you be
more clear?
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden