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

acceptFirstResponder


  • Subject: acceptFirstResponder
  • From: Craig Bakalian <email@hidden>
  • Date: Wed, 6 Nov 2002 11:59:25 -0500

Hi,
I am writing a simple music notation program. I have not implemented yet. I am still designing(notes, boxes, lines drawn all about...) The following is only a possibility:
A view may create subviews which are measures of music(a subclass of NSView). The user can create measures. When they are on the superview the empty measures need to be "set in focus" to receive keyboard and other edit events. Yet, a measure must be the only responder to keyboard and other edit commands, while the rest reside on the superview asleep. So, I figure that the user can mouse down the measure to set it as a firstResponder.
Once it is a first responder, it would receive the keyDown events before the other measures. Is this possible, or would the mouse down event need to set other measures in the superview (stored in a NSMutableArray) to not receive keyDown events? If this is possible, do I need to make a MeasureManager.m that would be a delegate of the First Responder of the .nib file. Or, how do I set a subclass of NSView to be exclusively in focus of keyDown events?

Craig Bakalian
_______________________________________________
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.

  • Prev by Date: Re: Move a file to the Trash
  • Next by Date: Re: NSTextField and Formatters
  • Previous by thread: Re: To all cocoa developers - new cocoa dev forum
  • Next by thread: Weirdness with NSTableView's scroll bars
  • Index(es):
    • Date
    • Thread