Re: Undo Mysteries
Re: Undo Mysteries
- Subject: Re: Undo Mysteries
- From: Tim Hart <email@hidden>
- Date: Tue, 15 Jun 2004 15:45:10 -0600
Not enough information here to completely answer your question.
NSWindow will forward messages it can't handle to it's delegate. If you've registered a delegate to your NSWindow, that could be one possibility.
Text fields also have their own undo manager, and may be involved in handling the message. You'd really need to provide a bit more information regarding the controls in the window, and information on the window's delegate ( if one is set ), before your question can be completely answered.
On Tuesday, June 15, 2004, at 02:48PM, Gerriet M. Denkmann <email@hidden> wrote:
>
I have a (non-document based) application with undo.
>
Everything works, but I do not understand why.
>
>
The Undo menu item sends undo: to the first responder.
>
[ NSApp targetForAction: @selector(undo:) ] returns NSWIndow.
>
But NSWIndow does not have a undo: method in its header file.
>
>
So: who is really responding to this message?
>
>
Gerriet.
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.