• 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: NSArchiver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: NSCursor
  • Next by Date: Re: Tiff conversion
  • Previous by thread: Re: NSArchiver
  • Next by thread: Re: NSArchiver
  • Index(es):
    • Date
    • Thread