Skip navigation.
 
mlRe: select Button
FROM : John Q.
DATE : Wed Jan 01 23:21:34 2003

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_removed>> |
> <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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlselect Button John Q. Dec 31, 17:25
mlRe: select Button Jean-Olivier Lanct… Dec 31, 18:47
mlRe: select Button David Remahl Dec 31, 19:13
mlRe: select Button Andrew Jan 1, 00:48
mlRe: select Button John Q. Jan 1, 17:42
mlRe: select Button John Q. Jan 1, 23:21
mlRe: select Button David Rio Vierra Jan 2, 06:38