getting an NSUndoManager in an OCUnit test case
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