Re: Feeding NSUnarchiver bad data can cause crash
Re: Feeding NSUnarchiver bad data can cause crash
- Subject: Re: Feeding NSUnarchiver bad data can cause crash
- From: Shawn Erickson <email@hidden>
- Date: Thu, 3 Jun 2004 09:04:27 -0700
Or using new runtime/compiler support in 10.3+...
- (BOOL)canBeUnarchived: (NSData *)Target_Data
{
@try {
[NSUarchiver unarchiveObjectWithData: Target_Data];
return YES;
} @catch(NSException e) {
... if you wanted to log something ...
}
return NO;
}
Like he said...
... note the standard disclaimers apply.
_______________________________________________
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.