Re: select Button
Re: select Button
- Subject: Re: select Button
- From: "John Q." <email@hidden>
- Date: Wed, 1 Jan 2003 23:21:34 +0100
Thank you Nicholas!!
I have check this last week, but when I test the interface in the
interface builder,
it does not work!! I don4t know why!! I have read the same what you4ve
said in the documentation from apple.
But I will check this out once more!!
I hope it will run!!
Next I will check out the funktion from Andrew!!
"- (void)sendEvent:(NSEvent *)anEvent {
if (([anEvent type] == NSKeyDown) &&
([[self delegate]
respondsToSelector:@selector(keyDownInWindow:)]) &&
([[self delegate] keyDownInWindow:anEvent] == TRUE)) {
return;
}
[super sendEvent:anEvent];
}
"
To Jean-Oliver from the list:
Do you know something about taborder in microsoft systems?
Windows is stupid but the taborder is great!! You can make a taborder
and navigate with the tab or courser keys through Buttons, textfields
and so on.
You need no mouse to navigate a program!!
On the cocoa gui is it according to the ADC possible thats the same
what Nicholas told me!!
But it is not running on my system!!
I would make it twice like the manual from Nicholas and hope it will
work!!
Thank all of you for helping fast!!
Raphael
Am Dienstag, 31.12.02 um 18:17 Uhr schrieb Nicholas Riley:
On Tue, Dec 31, 2002 at 05:25:01PM +0100, John Q. wrote:
Hi guys!!
I4m new in the list and start to program with cocoa!!
In my projekt I must have one not normaly thing for a mac!!
I would like a program wich must use buttons selection!!
I would like to jump from button to button with the courser keys!!
And if i press enter the funktion get called!!
Just subclass NSButton, intercept key events and manually set the
first responder. Cocoa already has support for a key loop that
includes buttons, it just is navigated with tab, shift-tab and the
space bar to invoke, rather than the arrow keys and return/enter as
you requested.
I need this selection for some drawers too!! If the drawer comes out
the first button
must be selected!!
You can do this by manually setting the first responder to a button in
the drawer.
--
=Nicholas Riley <email@hidden> |
<http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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.