small medium large xlarge

35-m-550_pragsmall
14 Jan 2009, 22:54
Joseph Crawford (19 posts)

Am I incorrect or did you hard code the entire path to the app support directory.

In your code you did this

NSString *supportFolder = [@”~/Library/Application Support/Hello Application Table” stringByExpandingTildeInPath];

Shouldn’t that be this?

NSString *supportFolder = [[NSFileManager defaultManager] findSystemFolderType:kApplicationSupportFolderType forDomain:kUserDomain];

From what I have read you do not want to rely on that folder structure because at some point Apple might change things and you having that hard coded could cause problems down the line.

35-m-550_pragsmall
14 Jan 2009, 22:59
Joseph Crawford (19 posts)

This would support my claim

http://www.cocoadev.com/index.pl?ApplicationSupportFolder

Daniel_pragsmall
31 Jan 2009, 23:51
Daniel H Steinberg (98 posts)

This is fixed in the next beta. Thanks.

You must be logged in to comment