• 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 across multiple nibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSUndoManager across multiple nibs


  • Subject: NSUndoManager across multiple nibs
  • From: "Matt Ball" <email@hidden>
  • Date: Thu, 30 Mar 2006 18:49:31 -0500

I am working on a document-based app which has a main window with a
view for drawing in, and a palette with a tableview displaying the
various layers. I am implementing undo support in it right now, and
I've run into a snag.

Actions generated by anything in the main window undo fine. However,
any actions generated by the layers palette do not get added to the
undo stack. In my layersController class, I have:
- (NSUndoManager *)undoManager {
	return [[[NSApp delegate] currentDocument] undoManager];
}

where currentDocument is a pointer to the current document in my
AppController class. Does anyone know what I need to do to get actions
in the layers palette to add themselves to the document's undoManager?
I've already overridden the panel's delegate's
windowWillReturnUndoManager: but it didn't help; I can undo actions
generated in the document window while the layers palette is key, but
actions in the layers palette itself still don't register.

Any help would be appreciated.

Thanks,
Matt Ball
 _______________________________________________
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

  • Prev by Date: Re: NSView adjustScale: View is scaled but the image remains the same.
  • Next by Date: NSUserDefaults persistent domains
  • Previous by thread: Re: Working with Unicode
  • Next by thread: Re: NSUndoManager across multiple nibs
  • Index(es):
    • Date
    • Thread