• 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: Which approach is the best one
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Which approach is the best one


  • Subject: Re: Which approach is the best one
  • From: Chris Suter <email@hidden>
  • Date: Mon, 21 Aug 2006 20:11:12 +1000

I personally wouldn't use either.

I'd use:

NSSearchPathForDirectoriesInDomains (NSLibraryDirectory, NSUserDomainMask, YES);

and then append what you need.

(Of the two approaches you suggest, 2 is better since there's no point creating another string when you've already got one.)

- Chris

On 21/08/2006, at 8:02 PM, Apparao wrote:

Hi All,

	Is there any difference in the following Approaches:

	Approach 1:

NSString *appPath = [[NSString stringWithString:@"~/Library/ Application Support/Application Name/"] stringByExpandingTildeInPath];

	Approach 2:

NSString *appPath = [@"~/Library/Application Support/Application Name/" stringByExpandingTildeInPath];

	which approach is the best one to use?

-Apparao

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
systems.com


This email sent to email@hidden


--
Coriolis Systems Limited is a limited company incorporated in England and Wales
Company No. 5061807 Registered Office: 10 Oxford Street, Southampton, SO14 3DJ



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Which approach is the best one
      • From: Chris Suter <email@hidden>
References: 
 >Which approach is the best one (From: Apparao <email@hidden>)

  • Prev by Date: Which approach is the best one
  • Next by Date: Re: Which approach is the best one
  • Previous by thread: Which approach is the best one
  • Next by thread: Re: Which approach is the best one
  • Index(es):
    • Date
    • Thread