initialFirstResponder not working for NSTableView/NSTextView
initialFirstResponder not working for NSTableView/NSTextView
- Subject: initialFirstResponder not working for NSTableView/NSTextView
- From: Peter Robinson <email@hidden>
- Date: Wed, 26 Feb 2003 18:09:58 +0000
I have a window containing only an NSTableView, which normally
responds to the arrow keys by changing the selected row. However,
the arrow keys don't work until the user clicks on the table.
The window and table are instantiated from a nib and I set the
NSTableView as the window's initialFirstResponder (in IB). It's
displayed by calling -makeKeyAndOrderFront:.
I have the same problem with windows containing a non-editable
NSTextView: the arrow keys scroll the NSTextView, but only after it's
been clicked.
Why does the table (or text view) not respond to key presses until it
is clicked on? How do I fix it?
Thanks,
Peter
_______________________________________________
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.