• 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: Adding Type-ahead to tableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding Type-ahead to tableView


  • Subject: Re: Adding Type-ahead to tableView
  • From: Daryn <email@hidden>
  • Date: Tue, 26 Nov 2002 19:21:58 -0600

On Tuesday, November 26, 2002, at 06:24 PM, Jan Van Tol wrote:
Everything works great, except for one thing. When ever I hit return to push the default button in my window, it just beeps at me. How can I work this so that the return key will act normally?

Something similar to this should work:

- (void)insertNewline:(id)sender {
int row = [self selectedRow];
if (row != -1) {
[self editColumn:0 row:row withEvent:nil select:NO];
}
}


And a second question: Right now, in myTableView, I'm using [[self dataSource] tableData] to get the array that my table is displaying. tableData is a method I implemented in myTableView's data source. It seems silly to me to have to get the data like that, there must be some way to access what my table is displaying directly from myTableView.
Failing that, what's the best way to get an array containing the contents of myTableView?

Use the datasource's tableView:objectValueForTableColumn:row:? An array is your chosen implementation detail, so there is no standard way to obtain an array of the table's objects.

Daryn
_______________________________________________
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: Adding Type-ahead to tableView
      • From: Jan Van Tol <email@hidden>
References: 
 >Adding Type-ahead to tableView (From: Jan Van Tol <email@hidden>)

  • Prev by Date: Re: Vermont Recipes vs Building Cocoa Applications
  • Next by Date: [OT] Building a dynamic library
  • Previous by thread: Adding Type-ahead to tableView
  • Next by thread: Re: Adding Type-ahead to tableView
  • Index(es):
    • Date
    • Thread