• 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: Selecting a cell within NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selecting a cell within NSTableView


  • Subject: Re: Selecting a cell within NSTableView
  • From: Todd Ransom <email@hidden>
  • Date: Tue, 6 Jul 2004 16:43:28 -0600

[tableView editColumn: 0 row:[tableView selectedRow] withEvent: nil
select: NO];

TR

On Jul 6, 2004, at 3:25 PM, Frederick C. Lee wrote:

> Simple question:
>
> How to you programmatically select a specific cell of a NSTableView?
>
> Scenario: only the first column is editable, hence double-clicking on
> the row outside of the first column selects the record.
>
> An alert is triggered if the editable (1st) column needs data. Hence
> the need to programmatically select the first column of the row.
>
> I've tried the NSControl's performClick() but that didn't do anything;
> I need to simulate a double-click to select the first column.
>
> Also, I need the coordinates of the particular cell to select.
>
> This must be a very common feature/procedure. But I haven't yet found
> the (simple?) solution.
>
> Any ideas?
>
> Regards,
>
> Ric.
> _______________________________________________
> 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.
_______________________________________________
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.


References: 
 >Selecting a cell within NSTableView (From: "Frederick C. Lee" <email@hidden>)

  • Prev by Date: Re: erasing, redrawing NSBezierPath into and NSImage problem
  • Next by Date: applicationDockMenu: woes
  • Previous by thread: Selecting a cell within NSTableView
  • Next by thread: Objective-C and JDBC
  • Index(es):
    • Date
    • Thread