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

Re: Perform additional action when window receives any mouse- or keyDown


  • Subject: Re: Perform additional action when window receives any mouse- or keyDown
  • From: "Paul Sanders" <email@hidden>
  • Date: Tue, 16 Feb 2010 22:14:05 -0000

Yes, I think I go along with that.  It lets you handle all the
events you choose to handle in one place.

Paul Sanders.

----- Original Message -----
From: "Kyle Sluder" <email@hidden>
To: "Jerry Krinock" <email@hidden>
Cc: "Cocoa Developers" <email@hidden>
Sent: Tuesday, February 16, 2010 9:56 PM
Subject: Re: Perform additional action when window receives any
mouse- or keyDown


On Tue, Feb 16, 2010 at 9:48 AM, Jerry Krinock <email@hidden>
wrote:
> 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?

Actually that seems like precisely the right thing to do. In
fact, I
would go so far as to post the notification in all circumstances
unless it is specifically the kind of event your attached window
should process.

--Kyle Sluder
_______________________________________________

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



_______________________________________________

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

References: 
 >Perform additional action when window receives any mouse- or keyDown (From: Jerry Krinock <email@hidden>)
 >Re: Perform additional action when window receives any mouse- or keyDown (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Perform additional action when window receives any mouse- or keyDown
  • Next by Date: Validation error after setting the value of a boolean attribute
  • Previous by thread: Re: Perform additional action when window receives any mouse- or keyDown
  • Next by thread: Appropriate -setWantsLayer: timing
  • Index(es):
    • Date
    • Thread