making NSTableView firstResponder programmatically
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.