• 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
Re: Custom NSView and NSUndoManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom NSView and NSUndoManager


  • Subject: Re: Custom NSView and NSUndoManager
  • From: Jim Correia <email@hidden>
  • Date: Thu, 10 Nov 2005 07:31:08 -0500

On Nov 10, 2005, at 5:58 AM, Benjamin Dunton wrote:

I was thinking about this some more this morning, and with what you are saying, tell me if this makes since. I have a text view in the application as well, and after calling [self setAllowsUndo] in the awakeFromNib:, undo/redo works. I am thinking that if I get the undo manager from the text views delegate (which also happens to be my window controller), that things might start working?

Does your window controller own its own undo manager?

If your window doesn't, it probably should at this point, and you should make yourself the window's delegate and return it from

- (NSUndoManager *)windowWillReturnUndoManager:(NSWindow *)window;


Jim _______________________________________________ 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: Custom NSView and NSUndoManager SOLVED
      • From: Benjamin Dunton <email@hidden>
References: 
 >Custom NSView and NSUndoManager (From: Benjamin Dunton <email@hidden>)
 >Re: Custom NSView and NSUndoManager (From: Jim Correia <email@hidden>)
 >Re: Custom NSView and NSUndoManager (From: Benjamin Dunton <email@hidden>)

  • Prev by Date: Re: newbie nsdocument question
  • Next by Date: Re: looking for ways to monitor text entered into a textfield
  • Previous by thread: Re: Custom NSView and NSUndoManager
  • Next by thread: Re: Custom NSView and NSUndoManager SOLVED
  • Index(es):
    • Date
    • Thread