• 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: Feeding NSUnarchiver bad data can cause crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feeding NSUnarchiver bad data can cause crash


  • Subject: Re: Feeding NSUnarchiver bad data can cause crash
  • From: Jeremy Dronfield <email@hidden>
  • Date: Thu, 3 Jun 2004 11:22:45 +0100

On 2 Jun 2004, at 9:27 pm, Douglas A. Welton wrote:

Jeremy,

Check out the section on "Handling Exceptions" in the Cocoa doc. NS_DURING,
NS_HANDLER, and NS_ENDHANDLER are your friend ;^}

I haven't had any luck with exception handling on this. Documentation and example code for exception handling seems hard to come by. Let's say I do this:

NS_DURING
theText = [NSUnarchiver unarchiveObjectWithData:plaintext];

or

@try {
theText = [NSUnarchiver unarchiveObjectWithData:plaintext];
}

What error precisely am I looking for? What goes in the if() statement?

Regards,
-Jeremy
_______________________________________________
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: Feeding NSUnarchiver bad data can cause crash
      • From: "Douglas A. Welton" <email@hidden>
References: 
 >Re: Feeding NSUnarchiver bad data can cause crash (From: "Douglas A. Welton" <email@hidden>)

  • Prev by Date: Re: very sluggish editing
  • Next by Date: Re: Feeding NSUnarchiver bad data can cause crash
  • Previous by thread: Re: Feeding NSUnarchiver bad data can cause crash
  • Next by thread: Re: Feeding NSUnarchiver bad data can cause crash
  • Index(es):
    • Date
    • Thread