• 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: Determining Class from Instance address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining Class from Instance address


  • Subject: Re: Determining Class from Instance address
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 21 Mar 2008 08:56:05 -0700


On 21 Mar '08, at 7:40 AM, Joseph Ayers wrote:

Given a log messages like:
2008-03-21 09:06:35.464 Roboplasm[12210:10b] *** -[VideoController measureMethodChanged:]: unrecognized selector sent to instance 0x3dfbc0


How does one determine the sender and self....

Set a breakpoint at objc_exception_throw (if you're on Leopard) or - [NSException raise] and NSRaiseError (on earlier OSs), using the Breakpoints window in Xcode. Then run your app in the debugger. It'll stop at the point where the exception is thrown; then you can look at the stack to see what's going on, and inspect the values of variables.


It's always a good idea to have such a breakpoint set. It helps a lot in debugging.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >Determining Class from Instance address (From: Joseph Ayers <email@hidden>)

  • Prev by Date: Re: disabling NSButton?
  • Next by Date: Re: Best Way To Lookup From a Huge Table
  • Previous by thread: Re: Determining Class from Instance address
  • Next by thread: Sync Services between Address Book and a web server
  • Index(es):
    • Date
    • Thread