Re: Which approach is the best one
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