• 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
initialFirstResponder not working for NSTableView/NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Settings via plist
  • Next by Date: connect() issues
  • Previous by thread: Subclassing NSLayoutManager for terminal emulator application?
  • Next by thread: connect() issues
  • Index(es):
    • Date
    • Thread