• 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
Perform additional action when window receives any mouse- or keyDown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Perform additional action when window receives any mouse- or keyDown


  • Subject: Perform additional action when window receives any mouse- or keyDown
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 16 Feb 2010 09:48:17 -0800

At times, I attach an attached window to a document window.  I would like this window to go away whenever the user clicks anything in the window, kind of like a tooltip.

So I subclassed the window, overrode -sendEvent:, invoke super and post a notification for which my window controller registers, and in the notification handler I examine the event type.  It works, but this seems quite heavy-handed to get something so simple.  Did I miss a more lightweight way to do this?

Thanks,

Jerry Krinock

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Perform additional action when window receives any mouse- or keyDown
      • From: Kyle Sluder <email@hidden>
    • Re: Perform additional action when window receives any mouse- or keyDown
      • From: "Paul Sanders" <email@hidden>
  • Prev by Date: Re: Question about zipping files
  • Next by Date: Re: Perform additional action when window receives any mouse- or keyDown
  • Previous by thread: NSPredicate Binding Problem
  • Next by thread: Re: Perform additional action when window receives any mouse- or keyDown
  • Index(es):
    • Date
    • Thread