• 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
Diagnosing NSString error in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Diagnosing NSString error in Leopard


  • Subject: Diagnosing NSString error in Leopard
  • From: John Stiles <email@hidden>
  • Date: Wed, 05 Dec 2007 13:17:52 -0800

I noticed that my app was printing the following warning to the Xcode debugger console:

       *** -[NSCFString replaceCharactersInRange:withString:]: nil argument

I found reproducible steps for the problem, but I'm not sure where in the code this is happening.
So I set a breakpoint on NSLog, thinking that I could catch it in the act. This didn't give me much assistance, unfortunately:


#0    0x953d9fd6 in NSLog
#1    0x9127ecc8 in _NSDefaultTopLevelErrorHandler
#2    0x910755ca in -[NSApplication run]
#3    0x00d9d580 in /my application/

Apparently the logging has been deferred for some reason.
What would be a good way to get the debugger to stop when this error actually 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


  • Follow-Ups:
    • Re: Diagnosing NSString error in Leopard
      • From: j o a r <email@hidden>
  • Prev by Date: CIContext to NSImage
  • Next by Date: Re: Diagnosing NSString error in Leopard
  • Previous by thread: Re: CIContext to NSImage
  • Next by thread: Re: Diagnosing NSString error in Leopard
  • Index(es):
    • Date
    • Thread