• 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: pb with nsmutablearray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pb with nsmutablearray


  • Subject: Re: pb with nsmutablearray
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 25 May 2007 12:20:12 -0600


On May 25, 2007, at 7:06 AM, julien ricard wrote:

   NSLog([track location]);
   NSLog([[trackList objectAtIndex:0] location]);

Do this instead:

NSLog(@"%@", [track location]);

It's very important that, if you have a function or method that takes formatted arguments, that you pass in a formatted string. Otherwise, the first % that appears in the string could in the worst case crash the program...

Nick Zitzmann
<http://www.chronosnet.com/>




_______________________________________________

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


References: 
 >pb with nsmutablearray (From: "julien ricard" <email@hidden>)

  • Prev by Date: Re: "Orphaned" words not reported by NSString -boundingRectWithSize...
  • Next by Date: [ANN]: DSClickableURLTextField updated
  • Previous by thread: Re: pb with nsmutablearray
  • Next by thread: NSString Memory Management / NSAutoreleaseNoPool leaking warning
  • Index(es):
    • Date
    • Thread