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

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.


  • Follow-Ups:
    • Re: Forwarding events
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: NSValueTransformer - Object Reference
  • Next by Date: Re: Cocoa semantics
  • Previous by thread: Trying to print an image and it gets butchered
  • Next by thread: Re: Forwarding events
  • Index(es):
    • Date
    • Thread