• 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: Core Data Memory issue on loading a saved file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Possibly dumb NSTableView problem
  • Next by Date: Creating a 30fps QTTime structure?
  • Previous by thread: Re: NSTableView + NSArrayController: How to revert to 'natural' sort order?
  • Next by thread: Creating a 30fps QTTime structure?
  • Index(es):
    • Date
    • Thread