• 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 only works in main window of application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Undo only works in main window of application (From: Wayne Pascoe <email@hidden>)
 >Re: Undo only works in main window of application (From: Ryan Britton <email@hidden>)
 >Re: Undo only works in main window of application (From: Wayne Pascoe <email@hidden>)
 >Re: Undo only works in main window of application (From: Ryan Britton <email@hidden>)

  • Prev by Date: Re: Helper Tool on FireWire
  • Next by Date: Re: Folder Action the Cocoa Way
  • Previous by thread: Re: Undo only works in main window of application
  • Next by thread: NSUrlConnection doesn't work in NSEventTrackingRunLoopMode
  • Index(es):
    • Date
    • Thread