• 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: [Solved] Re: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Solved] Re: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error


  • Subject: Re: [Solved] Re: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error
  • From: Andrew Farmer <email@hidden>
  • Date: Tue, 7 Dec 2004 10:36:53 -0800

On 07 Dec 2004, at 06:27, j o a r wrote:
On 2004-12-07, at 15.14, Vincent Pottier wrote:
The problem come from [NSNotificationCenter defaultCenter], it can't be defined in the C function. just add
#define center [NSDistributedNotificationCenter defaultCenter] and then use "center" instead of [NSNotificationCenter defaultCenter].

That doesn't make sense. You must have done something else to resolve the problem.
The error you posted in your first message to this thread is a runtime error, the solution you post here is a compile time hack (expanded by the preprocessor). The two should not be related.

The difference is that you're using a NS*Distributed*NotificationCenter now. The #definition has nothing to do with it.

Attachment: PGP.sig
Description: This is a digitally signed message part

 _______________________________________________
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: 
 >[[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error (From: Vincent Pottier <email@hidden>)
 >Re: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error (From: Robert Cerny <email@hidden>)
 >[Solved] Re: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error (From: Vincent Pottier <email@hidden>)
 >Re: [Solved] Re: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error (From: j o a r <email@hidden>)

  • Prev by Date: Re: AppleScript to open a file using the NSObject method - (BOOL)application: openFile:
  • Next by Date: Re: toolbar (hilighting currently selected item)
  • Previous by thread: Re: [Solved] Re: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error
  • Next by thread: coreaudio sdk -- for jaguar & project buider?
  • Index(es):
    • Date
    • Thread