Re: Failure on unarchiving a NSBezierPath
Re: Failure on unarchiving a NSBezierPath
- Subject: Re: Failure on unarchiving a NSBezierPath
- From: "Kyle Sluder" <email@hidden>
- Date: Mon, 28 Apr 2008 12:01:08 -0400
On Wed, Apr 23, 2008 at 11:42 AM, an0 <email@hidden> wrote:
> I was building a very simple drawing application, but met problems
> when reading the file saved by my application.
>
> The two functions as to archiving/unarchiving are as follows:
> - (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError
> {
> return [NSKeyedArchiver archivedDataWithRootObject:view.drawing];
> }
You know what? I don't think you've ever said that you know that
view.drawing != nil. Check that.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden