• 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
NSLog preventing a crash?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSLog preventing a crash?


  • Subject: NSLog preventing a crash?
  • From: Rob Chahin <email@hidden>
  • Date: Mon, 23 Jul 2007 17:31:03 +0100

Afternoon List,

I have an NSObject subclass that acts like a wrapper for an NSArray of another NSObject subclass that wraps an NSDictionary.

Normally, my app crashes if I try to access one of these dictionaries twice in a row. However, if I call:

NSLog(@"%@", [arrayWrapper methodThatJustReturnsArray]);

between the 2 attempts, the code works fine. If I call that method but do nothing with it, i.e. removing the NSLog, the crash still occurs.

Without getting into the details of the code (for time's sake), is there any obvious reason why this would prevent a crash from occuring? I, for one, am confused.

- R

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

  • Follow-Ups:
    • Re: NSLog preventing a crash?
      • From: Rob Chahin <email@hidden>
    • Re: NSLog preventing a crash?
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: NSUserdefaultsController warning
  • Next by Date: Re: Window Level
  • Previous by thread: Re: Window Level
  • Next by thread: Re: NSLog preventing a crash?
  • Index(es):
    • Date
    • Thread