On May 2, 2011, at 10:42 AM, David Chisnall wrote:
>
> On 2 May 2011, at 08:57, Mathieu Suen wrote:
>
>> Hi,
>>
>> Every time I call objc_registerClassPair I get an error:
>> *** ERROR *** function objc_registerClassPair() called for class pair with
>> name
>> ('MyNSView') of existing class.
>
> It would help if you specified which runtime is generating this error. I
> presume that it's the Mac runtime? Are you sure that the MyNSView class
> doesn't exist already? What does NSClassFromString(@"MyNSView") return?
Sorry I didn't mention it, I am using gcc with gnustep.
(gdb) p NSClassFromString(@"MyNSView")
$1 = (struct objc_class *) 0x0
(gdb) c
Continuing.
*** ERROR *** function objc_registerClassPair() called for class pair with name
('MyNSView') of existing class.
To be sure I have rename my class to MyNSView123 but have the same result.
>
>> But I guess it is not a big issue because it goes on and display my NSWindow.
>>
>> If someone have an idea why is happening?
>>
>> Something for sure is that it is the first time I call
>> objc_registerClassPair on
>> this class, after setting a breakpoint on it.
>
> In that case, the class is probably declared in a @implementation statement
> somewhere.
>
> David
>
> --
> This email complies with ISO 3103
>
>
> _______________________________________________
> Etoile-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/etoile-discuss
Mathieu
_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss