On Wed, Apr 23, 2008 at 11:42 AM, an0 <[EMAIL PROTECTED]> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]