Re: [Array writeToFile:Path atomically:YES]
Re: [Array writeToFile:Path atomically:YES]
- Subject: Re: [Array writeToFile:Path atomically:YES]
- From: David Blanton <email@hidden>
- Date: Tue, 11 May 2004 15:20:19 -0600
This code:
- (IBAction)saveList:(id)sender
{
unsigned int count = [g_killListArray count];
if(count)
{
NSLog(@"%d items in array\n", count);
if(g_listPath != nil)
{
NSLog(@"path %@\n", g_listPath);
if( [g_killListArray writeToFile:g_listPath atomically:NO])
{
NSLog(@"Did Write");
}
else NSLog(@"Did Not Write");
}
else NSLog(@"Bad Path");
}
else NSLog(@"No Items");
}
Yields this result:
2004-05-11 15:16:29.373 SNOTA[1018] 2 items in array
2004-05-11 15:16:29.373 SNOTA[1018] path /Users/davidbla/Projects/SNOTA
v2.0/build/SNOTA.app/Contents/Resources/List
2004-05-11 15:16:29.373 SNOTA[1018] Did Not Write
Does this imply that the array columns are not being interpreted as
NSString* when in fact they are? Or, is there some Cocoa secret to writing
an array to a file?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.