discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entering NSTableView cell programmatically


From: Wolfgang Lux
Subject: Re: Entering NSTableView cell programmatically
Date: Sat, 10 Oct 2020 11:59:29 +0200


> Am 09.10.2020 um 16:17 schrieb Andreas Höschler via Discussion list for the 
> GNUstep programming environment <discuss-gnustep@gnu.org>:
> 
> Hi all,
> 
> I create an NSTableView, provide a dataSource and delegate, call 
> 
>    [tableView noteNumberOfRowsChanged] 
> 
> and would then like to programmatically go into a specific cell (row/column) 
> and activate it for editing. This is for a dummy user app in which the user 
> is to be led from field to field to not get lost. 
> 
> I just realised that I have never done something like that and actually have 
> no clue how to accomplish this!? Any idea?

Call editColumn:row:withEvent:select: on the table view for the cell that you 
want to edit. The event argument can be nil in this case. If the select flag Is 
YES, the content of the cell will be selected when you start editing (usually a 
good idea).

Wolfgang


reply via email to

[Prev in Thread] Current Thread [Next in Thread]