• 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
NS vs CFNotification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NS vs CFNotification


  • Subject: NS vs CFNotification
  • From: Trygve Inda <email@hidden>
  • Date: Tue, 19 Sep 2006 13:09:40 +0000
  • Thread-topic: NS vs CFNotification

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?

Thanksm

Trygve


 _______________________________________________
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

  • Follow-Ups:
    • Re: NS vs CFNotification
      • From: Stephane Sudre <email@hidden>
  • Prev by Date: Invoking add: operation to an ArrayController manually (CoreData)
  • Next by Date: Re: resolution independent [NSImage drawInRect]
  • Previous by thread: Re: Invoking add: operation to an ArrayController manually (CoreData)
  • Next by thread: Re: NS vs CFNotification
  • Index(es):
    • Date
    • Thread