• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NS vs CFNotification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NS vs CFNotification (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: resolution independent [NSImage drawInRect]
  • Next by Date: (CoreData) Saving Predicates in SmartGroups
  • Previous by thread: NS vs CFNotification
  • Next by thread: (CoreData) Saving Predicates in SmartGroups
  • Index(es):
    • Date
    • Thread