Re: Undo only works in main window of application
Re: Undo only works in main window of application
- Subject: Re: Undo only works in main window of application
- From: Wayne Pascoe <email@hidden>
- Date: Mon, 26 Jun 2006 00:02:07 +0100
On 25 Jun 2006, at 23:29, Ryan Britton wrote:
Nope. The method is in the NSWindow delegate informal protocol.
Just hook up the window's delegate outlet to the controller that's
going to feed it the undo manager and it should work. Since
NSPanel is a subclass of NSWindow, you'll be able to use the same
method.
Ah, excellent.
I just tried this, and setting the delegate to the NSArrayController
didn't seem to work. However, setting it to the AppDelegate seems to
work perfectly.
Thanks a bunch!
--
Wayne Pascoe (gpg --keyserver www.co.uk.pgp.net --recv-keys 79A7C870)
I'm from Iowa. I just work in space. Admiral
Kirk - Star Trek IV
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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