• 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: RaiseMan Exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RaiseMan Exception


  • Subject: Re: RaiseMan Exception
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 29 Dec 2011 15:42:44 -0600

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

_______________________________________________

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

  • Follow-Ups:
    • Re: RaiseMan Exception
      • From: Tommy Grav <email@hidden>
References: 
 >RaiseMan Exception (From: Todd Heberlein <email@hidden>)
 >Re: RaiseMan Exception (From: Todd Heberlein <email@hidden>)
 >Re: RaiseMan Exception (From: Todd Heberlein <email@hidden>)

  • Prev by Date: Re: Template Images in Table Cells
  • Next by Date: Re: RaiseMan Exception
  • Previous by thread: Re: RaiseMan Exception
  • Next by thread: Re: RaiseMan Exception
  • Index(es):
    • Date
    • Thread