Nov 1 18:33:02 phendrana Photo Booth[33276]: *** NSInvocation: warning: object 0xfce0e0 of class 'specialInternalClass' does not implement methodSignatureForSelector: -- trouble ahead
Nov 1 18:33:02 phendrana Photo Booth[33276]: *** NSInvocation: warning: object 0xfce0e0 of class 'specialInternalClass' does not implement doesNotRecognizeSelector: -- abort
that "trouble ahead" part is awesome. I think it happens to any OC object that doesn't inherit from NSObject, but gets treated like it does. Fun stuff, that :)
Thank you for posting this little tidbit. I was fiddling about with some command line ObjC and trying to copy some code I got building under GNUStep to my Mac. The GNUStep code had an object that derived from Object, rather than NSObject. Was getting these errors and the comment you made about changing it to derive from NSObject fixed the problem. So, thanks!
ReplyDeleteGood for people to know.
ReplyDeletesweet that worked thanks!
ReplyDeleteWhen you say that the offending object "gets treated" like a NSObject, what do you mean?
ReplyDeleteYou made my day! Messed around with the same thing for quite a while. Thanks for sharing this!
ReplyDeleteIt does happen in one other place - if you happen to accidentally reuse a reserved Class name in the objc runtime.
ReplyDelete