Forwarding events
Forwarding events
- Subject: Forwarding events
- From: Rick Bischoff <email@hidden>
- Date: Sat, 17 Jul 2004 13:01:11 -0500
Hello,
Earlier I posted a question to which I have received no response-- so I
will ask a similar question in the hopes somebody knows the answer.
The situation:
Window A: contains a single NSView subclass-- does not contain any
place to type, only handles mouse events.
Window B: contains a text-field into which users can type in commands.
When Window A is active and a keyDown message is sent to my NSView
subclass, I [windowB makeKeyAndOrderFront:self] and then I [windowB
makeFirstResponder:inputTextField] and then I invoke the keydown
message on the text-field: [inputTextField keyDown:theEvent];
Everything works except for the last keyDown message-- I hear a system
beep, windowB is in the foreground and the text field is the first
responder. -- It does not respond normally to the keyDown message.
Why not?
Rick Bischoff
_______________________________________________
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.