Re: Catching mouse-clicks outside UI elements
Re: Catching mouse-clicks outside UI elements
- Subject: Re: Catching mouse-clicks outside UI elements
- From: p3consulting <email@hidden>
- Date: Tue, 2 Dec 2003 12:33:02 +0100
On 2 dic. 2003, at 10:53, Marten van Gelderen wrote:
Dear Pascal,
Thanks for the tip(s). I will surely look into them. But I would like
to understand why my code is not working. The only differences I see
is that my panel is a NSPanel, and my document windows are NSWindow's.
My delegate class for the panel is a NSWindowController which inherits
from NSResponder. My delegate class for the document window(s) is
NSDocument which inherits directly from NSObject (no NSResponder
inbetween). After a year I still have difficulties with some
subtleties of the multiple document architecture (sigh). This must be
it, but I sure have some difficulty understanding it.
Should not be your "NSWindowController which inherits from NSResponder"
be in the responder chain also ?
with something like
[[self window] setNextResponder:self] ;
Pascal Pochet
email@hidden
_______________________________________________
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.