• 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: Catching mouse-clicks outside UI elements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Catching mouse-clicks outside UI elements (From: Marten van Gelderen <email@hidden>)
 >Re: Catching mouse-clicks outside UI elements (From: p3consulting <email@hidden>)

  • Prev by Date: Re: Semi-OT - shift-tab behavior broken for edit fields?
  • Next by Date: Bug in NSApplication?
  • Previous by thread: Re: Catching mouse-clicks outside UI elements
  • Next by thread: Does an enumerator retain the last object?
  • Index(es):
    • Date
    • Thread