acceptFirstResponder
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.