iphone - I can't find/see my .plist folder that were saved using the Xcode simulator? -


i'm trying screw around encoding files (doing tutorial). anyways, trying save file called, "checklists.plist" , can't find in app location:

userinfostuff/library/application support/iphone simulator/7.0.3/applications/app number/library/documentation/checklists.plist

also, documentation folder in library doesn't exist according terminal when try unhide though xcode says exist...

the bold rid of jargon. here's code:

- (nsstring *)documentsdirectory {     nsarray *paths = nssearchpathfordirectoriesindomains(nsdocumentationdirectory, nsuserdomainmask, yes);     nsstring *documentsdirectory = [paths objectatindex:0];     return documentsdirectory; }  -(nsstring *)datafilepath {     return [[self documentsdirectory] stringbyappendingpathcomponent:@"checklists.plist"]; }  -(void)savechecklistitems {     nsmutabledata *data = [[nsmutabledata alloc] init];     nskeyedarchiver *archiever = [[nskeyedarchiver alloc] initforwritingwithmutabledata:data];      [archiever encodeobject:items forkey:@"checklistitems"];     [archiever finishencoding];     [data writetofile:[self datafilepath] atomically:yes]; } 

i got paths using:

nslog(@"document at: %@", [self documentsdirectory]); nslog(@"data file path at: %@", [self datafilepath]); 

change:

nsarray *paths = nssearchpathfordirectoriesindomains(nsdocumentationdirectory,  nsuserdomainmask, yes); 

to this:

nsarray *paths = nssearchpathfordirectoriesindomains(nsdocumentdirectory,  nsuserdomainmask, yes); 

Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -