• 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: undo without dirty document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undo without dirty document


  • Subject: Re: undo without dirty document
  • From: Frode <email@hidden>
  • Date: Tue, 27 Jun 2006 14:27:50 +0200

Hi!

I manage to find a solution so I post a follow up.

Firstly, when receiving a windowControllerDidLoadNib, I observed that the document's NSWindow and its NSTextView didn't had the same undo manager as MyDocument at this early stage. So adding

- (NSUndoManager *)windowWillReturnUndoManager:(NSWindow *)window {
	return [self undoManager];
}

to my document solved the problem.

Secondly, a break at windowWillReturnUndoManager shows that is it first received when the window sets the initial key view in respons to NIB loading. And my window's initialFirstResponder is a NSTabView, and its first page's initial responder is a NSComboBox.

I remember now that one of the recent changes I added to my program was wiring the initial firstResponder in Interface Builder to be this NSComboBox.

Thanks for your time.
Rog
_______________________________________________
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


References: 
 >undo without dirty document (From: Frode <email@hidden>)

  • Prev by Date: Re: perl string handle equivilents in cocoa
  • Next by Date: Multiple Definitions of symbol _tgammaf (and 30 other symbols)
  • Previous by thread: undo without dirty document
  • Next by thread: shouldSelectTabViewItem called twice
  • Index(es):
    • Date
    • Thread