Re: Executing nextKeyView from NSDrawer to NSWindow
Re: Executing nextKeyView from NSDrawer to NSWindow
- Subject: Re: Executing nextKeyView from NSDrawer to NSWindow
- From: Tim James <email@hidden>
- Date: Tue, 15 Apr 2003 13:28:15 -0700 (PDT)
Although I haven't found a good solution, I have found a workaround. (This
seems to be a trend in Cocoa programming). When trying to go to the main
window from the NSDrawer's window, I trap the tab key, and manually call
makeFirstResponder with the appropriate destination view on the main window.
Hacky, but it works. Any better suggestions?
>
I've been trying to get the tab key change the keyboard focus through three
>
items in my Cocoa application. I want it to start in the NSTableView. When
>
tab is pressed, it should go to another table view that is in an drawer
>
attached to my main window (where the NSTableView is located). Another tab
>
should put the focus on an NSTextField in the main window. The final tab
>
should send the focus back to the first-mentioned table view.
>
>
So far, all the tabbing works properly except getting from the table view in
>
the drawer to the table view in the main window.
>
>
I believe this has something to do with the fact that the drawer has it's own
>
window associated with it (privately) and that each window has its own
>
nextKeyView loop, and since I set the loop up in IB, it only sets it within
the
>
main window's key loop, and not within the drawer's window's key loop.
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
_______________________________________________
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.