Re: receiving key equivalent events
Re: receiving key equivalent events
- Subject: Re: receiving key equivalent events
- From: Chuck Soper <email@hidden>
- Date: Sun, 13 Jun 2004 00:59:02 -0700
I think the only way to do this is to subclass NSApplication and override:
- (void)sendEvent:(NSEvent *)anEvent
but this seems like an overkill. Does anyone know the solution to
what I've described below?
Chuck
At 12:20 PM -0700 6/12/04, Chuck Soper wrote:
Hello,
I have an inspector window similar to the one in Interface Builder
(IB). It has a NSPopUpButton menu with command key equivalents of 1,
2, 3, and so on. My inspector window only responds to command key
equivalents when it is front most (this makes sense to me).
Using command key equivalents, how can I change the current menu
item of inspector window's NSPopUpButton menu when when another
window in front most? The other window is an NSWindowController
subclass. I think that this is a very straightforward question, but
I haven't been able to find the answer. I think that I have to catch
the event in my window controller or perhaps my application delegate
then send a message to the inspector window to select new item in
its NSPopUpButton menu. Any ideas?
Thanks,
Chuck
_______________________________________________
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.