Re: NSArchiver
Re: NSArchiver
- Subject: Re: NSArchiver
- From: Fritz Anderson <email@hidden>
- Date: Sat, 11 Aug 2001 14:06:31 -0500
At 12:28 PM +1000 8/12/2001, stuartbryson wrote:
if (![tempArchive archiveRootObject:tempObj
toFile:@"/MyPath/3dObject"]);
NSLog(@"File was not archived");
By the way... Notice the semicolon at the end of the if... line? You
probably don't mean to do that. It's equivalent to
if (! [tempArchive archiveRootObject: tempObj toFile:
@"/MyPath/3dObject"])
{
;
}
NSLog(@"File was not archived");
So the not-archived message will show up regardless of whether
#archiveRootObject:toFile: succeeds.
Feel free to use white space; there'll always be more.
-- F
References: | |
| >NSArchiver (From: stuartbryson <email@hidden>) |