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

RaiseMan Exception


  • Subject: RaiseMan Exception
  • From: Todd Heberlein <email@hidden>
  • Date: Thu, 29 Dec 2011 12:52:47 -0800

I'm getting an exception thrown that I am trying to figure out.

I'm working through "Cocoa Programming for Mac OS X" fourth edition, and added the first undo code in chapter 151 -- the Undo code for adding and removing Person objects. Testing seems to work fine, except when I do repeated Undo and Redo menu commands very rapidly. At some point when I click on the "Edit" menu the program crashes.

For example, I click on "Add Employee" twice, and then repeated go to
	Edit --> Undo Add Person
	Edit --> Redo Add Person

Crash

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?

Thanks,

Todd

PS. Using
	Xcode 4.2 (Build 4D199)
	Mac OS 10.7.2
	Mac Book Air (MacBookAir3,2)
_______________________________________________

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: Todd Heberlein <email@hidden>
  • Prev by Date: Re: Template Images in Table Cells
  • Next by Date: Re: RaiseMan Exception
  • Previous by thread: UIToolbar, can't access buttons added in IB
  • Next by thread: Re: RaiseMan Exception
  • Index(es):
    • Date
    • Thread