Re: Making menu bar application's window key
Re: Making menu bar application's window key
- Subject: Re: Making menu bar application's window key
- From: Daniel Jalkut <email@hidden>
- Date: Sat, 05 Nov 2005 01:54:14 -0500
On a related note - I downloaded your beta and noticed that your menu
bar icon only responds to clicks inside the actual checkmark graphic.
I recommend changing this so that it responds to clicks anywhere
within its designated rectangle. It can be hard to click it as it is ...
Daniel
On Nov 5, 2005, at 1:17 AM, Justin Williams wrote:
Greetings,
I am adding keyboard access to my menu bar based to-do list
application so that users can bring the application forward no
matter what application they are in.
When the user presses their hot key or clicks the menu bar icon to
launch the application, the application launches as it should and
posts a notification letting me know that the window has
application's main window has dropped down.
From here the user should be able to use the arrow keys to navigate
the outline view and manipulate data. Unfortunately, the previous
application they were working in still has the focus of the keyboard.
When the notification posts letting me know the main window has
dropped this code is executed:
-(IBAction)checkOffActivated:(id)sender {
[oWindow makeKeyAndOrderFront:self];
[oOutlineView selectRow:1 byExtendingSelection:YES];
}
While the row is selected in my column view, the oWindow window
still doesn't have the focus of the keyboard until I click the
mouse on it. If you would like to see this in action (its
somewhat difficult to explain) you can download this beta of the
application:
http://www.carpeaqua.com/co35a1.zip
To summarize, I don't understand why calling makeKeyAndOrderFront
isn't giving my window the focus as it should.
Any suggestions are welcomed. Thanks.
__________________________________________________
Justin Williams email@hidden
work: www.maczealots.com play: www.carpeaqua.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden