Warning: XXX may not respond to YYY

Posted by Aurel300 on Stack Overflow See other posts from Stack Overflow or by Aurel300
Published on 2010-12-25T12:31:51Z Indexed on 2010/12/25 12:54 UTC
Read the original article Hit count: 282

Filed under:
|

Hey, I am making some stuff in Objective-C++... And I must say that I am a total newbie when it comes to the Objective-C part... I don't really want to learn it, I kinda just need it for accessing a few Mac APIs (ObjC is such a dumb language).

So - compiling with g++ -x objective-c++ - and I somehow keep getting this warning:

XXX may not respond to YYY

First it was with a NSScreen, now it is with a NSWindow:

NSWindow may not respond to +initWithContentRect:styleMask:backing:defer:

I saw somewhere that I should cast it to id, but didn't work, throwing absolutely cryptic errors...

So - WHAT does this warning actually mean and HOW am I supposed to make it stop?

© Stack Overflow or respective owner

Related posts about nswindow

Related posts about objective-c++