• 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
getting an NSUndoManager in an OCUnit test case
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting an NSUndoManager in an OCUnit test case


  • Subject: getting an NSUndoManager in an OCUnit test case
  • From: Daniel Steward <email@hidden>
  • Date: Fri, 28 Apr 2006 09:15:28 -0600

OOPS - no subject the first time.


I'm trying to add some test cases to look at undo/redo in my OCUnit tests. I don't want to start the application to do this, I just want to test the data model. What I've discovered is that using [[NSUndoManager alloc] init] in the context of a running application produces the desired NSUndoManager. The same code running in a test case will produce an NSDictionary.


I'd be most gratefull for any suggestions on how to get a working NSUndoManager in my test case. It is in the foundation framework after all - it should be usable anyplace. I've searched all over the place for answers with no luck.

Dan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re:(no subject) getting an NSUndoManager in an OCUnit test case
      • From: Daniel Steward <email@hidden>
  • Prev by Date: Re: Should Cocoa Apps have splash screens at all ?
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: What kind of network protocol used by "Shared Printer/Fax"
  • Next by thread: Re:(no subject) getting an NSUndoManager in an OCUnit test case
  • Index(es):
    • Date
    • Thread