• 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: j o a r <email@hidden>
  • Date: Tue, 7 Dec 2004 15:27:52 +0100

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.


j o a r

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].

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: [Solved] Re: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error
      • From: Andrew Farmer <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>)

  • Prev by Date: Re: NSScanner Madness
  • Next by Date: Re: nsmovieview and movie cursor position
  • Previous by thread: [Solved] Re: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error
  • Next by thread: Re: [Solved] Re: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error
  • Index(es):
    • Date
    • Thread