• 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
Child Windows and Mouse Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Child Windows and Mouse Events


  • Subject: Child Windows and Mouse Events
  • From: Greg <email@hidden>
  • Date: Tue, 15 Feb 2005 09:41:32 +1000

Hi,
I have a child window that displays an image on it. In the image view subclass I overide mouseDown to close the window when the mouse is clicked inside the windows bounds, but I am having trouble trying to listen for mouse clicks outside the window. I have tried the delegate methods windowDidResignMain: and windowDidResignKey: but have had no luck.


Basically what I am after would be what NSComboBox does while the table view is showing and you click anywhere except in the table view and it closes the window.

Any help is greatly appreciated.

Greg

_______________________________________________
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


  • Follow-Ups:
    • Re: Child Windows and Mouse Events
      • From: j o a r <email@hidden>
  • Prev by Date: Re: adding contextual menu items to an NSTextView subclass menu
  • Next by Date: Re: Child Windows and Mouse Events
  • Previous by thread: RE: Vertically centering the disclosure triangle in and outline view subclass cell
  • Next by thread: Re: Child Windows and Mouse Events
  • Index(es):
    • Date
    • Thread