FROM : joe OneNinetyTwo
DATE : Sun Aug 13 23:24:08 2006
I had NSMutableArray's of my model objects inside
MyDocument. I was viewing these model objects with
an NSTable in the window of MyDocument.nib. I have
implemented Undo, and had everything working just
fine.
Then I decided to move the NSMutableArray's of my
model objects into a class called DataSet. I alloc
and init my model class DataSet inside MyDocument init
with
- (id) init
{
self = [super init];
if (self) {
dataSet = [[DataSet alloc] initWithUndoManager:
[self undoManager]];
}
return self;
}
Inside DataSet class I send the
prepareWithInvocationTarget message to the undoManager
to load the stack, as before.
Except now, the Undo and Redo menu items are disabled,
and I can no longer undo and redo. Can anyone
please tell me what I'm doing wrong here?
Thanks,
Philip
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
DATE : Sun Aug 13 23:24:08 2006
I had NSMutableArray's of my model objects inside
MyDocument. I was viewing these model objects with
an NSTable in the window of MyDocument.nib. I have
implemented Undo, and had everything working just
fine.
Then I decided to move the NSMutableArray's of my
model objects into a class called DataSet. I alloc
and init my model class DataSet inside MyDocument init
with
- (id) init
{
self = [super init];
if (self) {
dataSet = [[DataSet alloc] initWithUndoManager:
[self undoManager]];
}
return self;
}
Inside DataSet class I send the
prepareWithInvocationTarget message to the undoManager
to load the stack, as before.
Except now, the Undo and Redo menu items are disabled,
and I can no longer undo and redo. Can anyone
please tell me what I'm doing wrong here?
Thanks,
Philip
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
| Related mails | Author | Date |
|---|---|---|
| joe OneNinetyTwo | Aug 13, 23:24 | |
| joe OneNinetyTwo | Aug 14, 03:16 |






Cocoa mail archive

