In the same way that there are that there are breakpoints that will
catch all the Objective C exceptions that are thrown...
Is there a good place to set a breakpoint to catch selectors that
aren't recognised by the receiving object? I want to get in and have a
good look around when it occur
Try the NSObject method -doesNotRecognizeSelector:
"The runtime system invokes this method whenever an object receives an
aSelector message it can’t respond to or forward. This method, in
turn, raises an NSInvalidArgumentException, and generates an error
message."
Hank
On May 23, 2008, a
Thanks, that works. Of course, the exception breakpoint I spoke about
does the same (or similar job).
On 23 May 2008, at 15:16, Hank Heijink (Mailinglists) wrote:
Try the NSObject method -doesNotRecognizeSelector:
"The runtime system invokes this method whenever an object receives
an aSel