Re: NS vs CFNotification
Re: NS vs CFNotification
- Subject: Re: NS vs CFNotification
- From: Stephane Sudre <email@hidden>
- Date: Tue, 19 Sep 2006 15:37:48 +0200
On 19 sept. 06, at 15:09, Trygve Inda wrote:
I have to communicate between a Cocoa app and a Carbon app - basically
the
Cocoa app needs to send signals to the Carbon app.
The docs say:
Unlike some other Core Foundation opaque types with names similar to
a Cocoa
Foundation class (such as CFString and NSString),
CFNotificationCenter objects
cannot be cast (“toll-free bridged”) to NSNotificationCenter objects
or
vice-versa.
So do I need to use CFNotifications in my Cocoa app rather than
NSNotifications?
If I get the DistributedNotificationCenter in both apps (NS in Cocoa
and CF
in Carbon) will a notification posted to one be able to reach the
other?
Yes.
_______________________________________________
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