• 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
over-riding keyDown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

over-riding keyDown


  • Subject: over-riding keyDown
  • From: John James <email@hidden>
  • Date: Thu, 21 Apr 2005 10:43:40 -0400

I have a non-main window that has a few user write-able text fields. It has a button
which puts the model into a mode ("running") during which I want it to use my own keyDown to intercept keyevents. My keyDown is in my overridden NSWindowController which is a delegate for the given window we are talking about. It never gets called.


I tried to bind the "editable" property and the "enable" property of the textfields to a BOOL which is true when I am not in the "running" state. This seems to prevent the editing of the fields when we are in the "running mode but "does not allow my keyDown to be called.

This used to work in a different window when I had the first responder a NSTableView. Unfortunately there are no tableviews in this window. That probably was a bad design as the user could leave the cursor in an editable field and the desired behavior would not work.

any suggestions?

_______________________________________________
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


  • Prev by Date: Re: Click & Hold on NSButton
  • Next by Date: RE: NSTextView and layout manager or cells - how to be most efficient?
  • Previous by thread: Re: Disable text field as label
  • Next by thread: Re: over-riding keyDown
  • Index(es):
    • Date
    • Thread