• 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: [Array writeToFile:Path atomically:YES]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: [Array writeToFile:Path atomically:YES]
      • From: Allan Odgaard <email@hidden>
References: 
 >Re: [Array writeToFile:Path atomically:YES] (From: j o a r <email@hidden>)

  • Prev by Date: RE: [Array writeToFile:Path atomically:YES]
  • Next by Date: Re: NSView and backgrounds, selectable
  • Previous by thread: Re: [Array writeToFile:Path atomically:YES]
  • Next by thread: Re: [Array writeToFile:Path atomically:YES]
  • Index(es):
    • Date
    • Thread