• 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
making NSTableView firstResponder programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

making NSTableView firstResponder programmatically


  • Subject: making NSTableView firstResponder programmatically
  • From: Michael Johnston <email@hidden>
  • Date: Sat, 29 Jun 2002 20:30:24 +0200

I can't seem to make an NSTableView firstResponder with IB or programmatically.

[[self window] makeFirstResponder:myTableView]; returns true, but the tableview does not actually get the focus, the next view on the keyview loop does. And when I selectRow and editColumn after calling makeFirstResponder, weird things happen (the selected row disappears)

I would really like to implement the following: when a user hits return while in a textField, a tableview becomes firstResponder, with the first row selected and in edit mode.

selectRow and editColumn works fine if the tableview is already firstresponder because it has been clicked on, but I can't seem to find any way to make the tableview firstresponder programmatically.

The only thing I've found with google is another person with the same problem a couple months ago, but no answer. Has anyone solved this?

Thanks,
Michael

On Wednesday, June 19, 2002, at 05:03 AM, Renaud Boisjoly wrote:

Thanks for responding Charles,

For some reason, It doesn't seem to work either. I've done the following:

[[self window] makeFirstResponder:textView];

where textView is my textView (duh)...

is this the right way to call this?

Thanks

Renaud
_______________________________________________
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: making NSTableView firstResponder programmatically
      • From: Michael Johnston <email@hidden>
References: 
 >Re: initialFirstResponder and subclass of NSTextView (From: Renaud Boisjoly <email@hidden>)

  • Prev by Date: [Solved] Specifying primitive types in NSCoders ... Thanks
  • Next by Date: Re: ARGH Re: Accessor method article preview
  • Previous by thread: Re: initialFirstResponder and subclass of NSTextView
  • Next by thread: Re: making NSTableView firstResponder programmatically
  • Index(es):
    • Date
    • Thread