Re: Core Data Memory issue on loading a saved file
Re: Core Data Memory issue on loading a saved file
- Subject: Re: Core Data Memory issue on loading a saved file
- From: Matt Neuburg <email@hidden>
- Date: Sun, 01 Apr 2007 08:55:07 -0700
- Thread-topic: Core Data Memory issue on loading a saved file
On Fri, 30 Mar 2007 16:04:12 -0700, Murat Konar <email@hidden> said:
>Also, your call
>
> NSLog(@"myArray is %@", myArray);
>
>should be
>
> NSLog(@"myArray is %@", [myArray description]);
Why? According to the docs:
> The NSString class supports ...
> %@ for any object... If the object responds to
> descriptionWithLocale: messages,
> NSString sends such a message to retrieve the
> text representation. Otherwise, it sends a description message
So saying this:
NSLog(@"myArray is %@", myArray)
automatically fetches [myArray description]. So your "should be" code seems
a bit silly, since you are just fetching a description of the description.
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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