• 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
NSUndoManager but Undo and Redo Menu Items are Disabled?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSUndoManager but Undo and Redo Menu Items are Disabled?


  • Subject: NSUndoManager but Undo and Redo Menu Items are Disabled?
  • From: joe OneNinetyTwo <email@hidden>
  • Date: Sun, 13 Aug 2006 14:24:08 -0700 (PDT)

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
 _______________________________________________
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: NSUndoManager but Undo and Redo Menu Items are Disabled?
      • From: joe OneNinetyTwo <email@hidden>
  • Prev by Date: Re: How to get default editors without NSArrayController copies?
  • Next by Date: Re: Nib file loads correctly, but window does not appear onscreen
  • Previous by thread: Solved: NSFileManager creates shell at destination but won't copy file
  • Next by thread: Re: NSUndoManager but Undo and Redo Menu Items are Disabled?
  • Index(es):
    • Date
    • Thread