• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: First Responder (was "Re: Enable the Copy Menu")
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: First Responder (was "Re: Enable the Copy Menu")


  • Subject: Re: First Responder (was "Re: Enable the Copy Menu")
  • From: Lorenzo <email@hidden>
  • Date: Tue, 02 Sep 2003 12:28:25 +0200

Hi,
thank you, I have 3 objects in my window. A NSTextFiels, a NSTableView, and
a subclass of NSView I create programmatically.

I tried to do what you suggested with the NSTableView

[aTextField setNextKeyView:aTableView];

but it didn't work. Also, earlier, in Interface Builder, I tried to make a
"nextKeyView" connection between aTextField and myTableView. But it didn't
work as well.

Please note, even without this call, if I click on a row of aTableView, then
I press the TAB key, the selection goes to aTextField. Fine. But if now I
press again the TAB key, the selection doesn't go to aTableView.

I tried more to add this to MYTableView subclass, unsuccessfully.
- (BOOL)acceptsFirstResponder { return YES; }

Any idea?


Best Regards
--
Lorenzo
email: email@hidden


>> Now, since there is a NSTextField in my Window too, I would like to
>> select
>> my object typing the TAB key. So any time I type the TAB key, the
>> selection
>> switches from the NSTextField to myObject, then to the NSTextField
>> again.
>> Do you know ho to get this work?
>>
> Try NSView's
>
> setNextKeyView:
>
> - (void)setNextKeyView:(NSView *)aView
>
> Inserts aView after the receiver in the key view loop of the receiver's
> NSWindow.
>
> -Neil
_______________________________________________
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.

  • Follow-Ups:
    • Re: First Responder (was "Re: Enable the Copy Menu")
      • From: Neil Earnshaw <email@hidden>
References: 
 >Re: First Responder (was "Re: Enable the Copy Menu") (From: Neil Earnshaw <email@hidden>)

  • Prev by Date: Re: Double Click app crash debugging?
  • Next by Date: plug-in problem
  • Previous by thread: Re: First Responder (was "Re: Enable the Copy Menu")
  • Next by thread: Re: First Responder (was "Re: Enable the Copy Menu")
  • Index(es):
    • Date
    • Thread