• 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: Does CFNotification center == NSNotification Center?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does CFNotification center == NSNotification Center?


  • Subject: Re: Does CFNotification center == NSNotification Center?
  • From: The Karl Adam <email@hidden>
  • Date: Mon, 14 Mar 2005 14:05:00 -0500

Almost. If both are dispatched in the same app then yes, it is fine.
However if they are seperate applications he'll need to use
NSDistributedNotificationCenter and CDDistributedNotificationCenter

-Karl


On Mon, 14 Mar 2005 19:12:28 +0100, Stephane Sudre <email@hidden> wrote:
>
> On 14 mars 05, at 19:13, Lance Drake wrote:
>
> > If, on one side of an equation, I register to receive a notification
> > via:
> >
> > [[NSNotificationCenter defaultCenter]
> >     addObserver: self
> >     selector: @selector(LateBreakingNews:)
> >     name: @"LateBreakingNews"
> >     object: NULL];
> >
> > and, on the other side of the situation, I issue a notification via:
> >
> > CFNotificationCenterPostNotificationWithOptions
> >     (
> >     CFNotificationCenterGetDistributedCenter(),
> >     CFSTR("LateBreakingNews"),  // name
> >     NULL,          // const void* object
> >     thedict,   // CFDictionaryRef userInfo
> >     kCFNotificationDeliverImmediately
> >     );
> >
> > Is it reasonable to expect the notification will be received?
>
> Almost, you would need to use a NSDistributedNotificationCenter on the
> cocoa side.
>
> You can also use the CF APIs in the cocoa code.
>
>  _______________________________________________
> 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
>
 _______________________________________________
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: 
 >Does CFNotification center == NSNotification Center? (From: Lance Drake <email@hidden>)
 >Re: Does CFNotification center == NSNotification Center? (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: multidimensional arrays
  • Next by Date: Re: Obtaining the NSGraphicsContext for custom NSView
  • Previous by thread: Re: Does CFNotification center == NSNotification Center?
  • Next by thread: Re: Does CFNotification center == NSNotification Center?
  • Index(es):
    • Date
    • Thread