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

Re: NSLog preventing a crash?


  • Subject: Re: NSLog preventing a crash?
  • From: Rob Chahin <email@hidden>
  • Date: Tue, 24 Jul 2007 14:50:53 +0100

Here's the code I'm using. I'm not creating each dictionary, I'm actually using a pointer to a dictionary:

while(theDict = [theRes fetchRowAsDictionary])
	{
		RCBlah	*blah = [RCBlah new];
		[blah setAsDict:[theDict copy]];
		[allBlahs addData:blah];
	}

(I rarely do desktop programming, so I'm likely to use the terms 'dictionary' and 'pointer to dictionary' interchangeably.. it leads to a lot of errors)


- R




I am curious on why you think you must copy a dictionary before you place it in an array? No such requirement exists.

-Shawn

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: Andrew Merenbach <email@hidden>
References: 
 >NSLog preventing a crash? (From: Rob Chahin <email@hidden>)
 >Re: NSLog preventing a crash? (From: Rob Chahin <email@hidden>)
 >Re: NSLog preventing a crash? (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Unique Set of n Colors
  • Next by Date: Re: NSLog preventing a crash?
  • Previous by thread: Re: NSLog preventing a crash?
  • Next by thread: Re: NSLog preventing a crash?
  • Index(es):
    • Date
    • Thread