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?

> 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

Répondre à