Re:(no subject) getting an NSUndoManager in an OCUnit test case
Re:(no subject) getting an NSUndoManager in an OCUnit test case
- Subject: Re:(no subject) getting an NSUndoManager in an OCUnit test case
- From: Daniel Steward <email@hidden>
- Date: Fri, 28 Apr 2006 13:48:10 -0600
OK
I went back and played with it some more and got it to work, I'm not
sure why it's working now when it didn't before but I'll take it.
It may be that I failed to #import <Cocoa/Cocoa.h> before but I could
swear that I had - maybe I just imported foundation - dunno.
On Apr 28, 2006, at Friday9:15 AM, Daniel Steward wrote:
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
_______________________________________________
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