Skip navigation.
 
mlRe: [Solved] Re: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error
FROM : Andrew Farmer
DATE : Tue Dec 07 19:36:53 2004

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.

Related mailsAuthorDate
ml[[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error Vincent Pottier Dec 6, 23:31
mlRe: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error Robert Cerny Dec 7, 09:30
ml[Solved] Re: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error Vincent Pottier Dec 7, 15:14
mlRe: [Solved] Re: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error j o a r Dec 7, 15:27
mlRe: [Solved] Re: [[NSNotificationCenter defaultCenter] postNotificationName:...] in a C function get error Andrew Farmer Dec 7, 19:36