• 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: Does this caution need fixed? (newb)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does this caution need fixed? (newb)


  • Subject: Re: Does this caution need fixed? (newb)
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 9 Jul 2008 08:27:53 -0700


On 9 Jul '08, at 7:44 AM, Chris Paveglio wrote:

I'm trying to make sure that this part of my code is good and clean and not leaking. I believe that I have it right (but still think I have something wrong).

It looks OK to me on quick reading. The main thing I'd change is to put the path strings into a plist, or at least put the string literals directly into the NSArray initializer lines instead of declaring separate variables for them, i.e.
myPrefs = [NSArray arrayWithObjects: @"Library/Preferences/Adobe Photoshop CS3 Settings",
@"Adobe Photoshop CS3 Settings",
..........., nil];
but that's just an issue of style.


—Jens

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

References: 
 >Re: Does this caution need fixed? (newb) (From: Chris Paveglio <email@hidden>)

  • Prev by Date: Re: Finding AS related memory leak
  • Next by Date: Re: afferentless mac mini
  • Previous by thread: Re: Does this caution need fixed? (newb)
  • Next by thread: Re: Does this caution need fixed? (newb)
  • Index(es):
    • Date
    • Thread