• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Breakpoint for unknown selector
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Breakpoint for unknown selector


  • Subject: Re: Breakpoint for unknown selector
  • From: Paul Sargent <email@hidden>
  • Date: Fri, 23 May 2008 15:43:59 +0100

Thanks, that works. Of course, the exception breakpoint I spoke about does the same (or similar job).

<slaps forehead!>

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 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, at 9:51 AM, Paul Sargent wrote:

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 occurs.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Breakpoint for unknown selector (From: Paul Sargent <email@hidden>)
 >Re: Breakpoint for unknown selector (From: "Hank Heijink (Mailinglists)" <email@hidden>)

  • Prev by Date: Re: Breakpoint for unknown selector
  • Next by Date: Re: inter process NSView sharing
  • Previous by thread: Re: Breakpoint for unknown selector
  • Next by thread: inter process NSView sharing
  • Index(es):
    • Date
    • Thread