On Dec 29, 2011, at 4:42 PM, Ken Thomases wrote:

> On Dec 29, 2011, at 3:14 PM, Todd Heberlein wrote:
> 
>> (1) Add one Person object
>> (2) wait 30-60 seconds.
>> 
>> crash.
>> 
>> No clicking on the Edit menu. No clicking away to another application.
> 
> On Dec 29, 2011, at 2:52 PM, Todd Heberlein wrote:
> 
>> The exception is from the default template code:
>> 
>>      - (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError
>> 
>> The frames stack is:
>>      0 __pthread_kill
>>      9 _objc_exception_destructor
>>      10 -[RMDocument dataOfType:error:]                      <-- exception 
>> thrown here
>>      11 -[NSDocument writeToURL:ofType:error:]
>>      39 NSApplicationMain
>>      40 main
>> 
>> Any ideas why I'm getting the exception?
>> 
>> Any idea why [NSDocument writeToURL:ofType:error:] is being called?
> 
> This is probably Lion's Auto Save feature triggering a save because the 
> document has been dirtied.  As Jens pointed out, you haven't shown the code, 
> but I suppose that part may not be done yet if the tutorial you're following 
> hasn't gotten to that point, yet.
> 
> The book may need to be updated for Lion.  You can probably fix things by 
> just returning nil from -dataOfType:error:.
> 
> Regards,
> Ken

I did that example some weeks ago and got a similar error. If I remember 
correctly there is an outlet to the undo/redo part that you have not set right 
that is causing the error (although it looks like it is an autosave error).

Cheers
  Tommy



_______________________________________________

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 arch...@mail-archive.com

Reply via email to