Re: Editing in a tableview without selecting

2009-11-02 Thread Ben Haller
On 1-Nov-09, at 11:37 PM, Graham Cox wrote: On 02/11/2009, at 1:04 PM, Ben Haller wrote: I think I will have to construct a test case to see if I can reproduce this in a simple, isolated way. If that test case reproduces the problem, then I will post it somewhere and follow up on the

Re: Editing in a tableview without selecting

2009-11-02 Thread Ben Haller
On 1-Nov-09, at 11:44 PM, Kyle Sluder wrote: On Sun, Nov 1, 2009 at 9:42 AM, Ben Haller bhcocoa...@sticksoftware.com wrote: - (void)tableView:(NSTableView *)aTableView setObjectValue: (id)anObject forTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex You might want to

Re: Editing in a tableview without selecting

2009-11-02 Thread Ben Haller
On 2-Nov-09, at 1:43 AM, Kyle Sluder wrote: On Sun, Nov 1, 2009 at 9:42 AM, Ben Haller bhcocoa...@sticksoftware.com wrote:\ The only unusual thing about this tableview is that I set it up in code instead of in IB, so I assume the root of the problem is in my programmatic setup code. But

Re: Editing in a tableview without selecting

2009-11-02 Thread Graham Cox
On 02/11/2009, at 10:46 PM, Ben Haller wrote: There are a variable number of them per window, of a variable size and layout, depending upon data. (There are a variable number of objects being observed by the user, each of which gets a tableview, and each object has a variable set of

Re: Editing in a tableview without selecting

2009-11-02 Thread Ben Haller
On 1-Nov-09, at 9:04 PM, Ben Haller wrote: On 1-Nov-09, at 6:01 PM, Graham Cox wrote: On 02/11/2009, at 4:42 AM, Ben Haller wrote: But where? I've been hunting for a -setEditable:YES method somewhere that I need to call, but I haven't found it... Have you tried -setEditable:YES on the

Re: Editing in a tableview without selecting

2009-11-02 Thread Ben Haller
On 2-Nov-09, at 9:26 AM, Graham Cox wrote: On 02/11/2009, at 10:46 PM, Ben Haller wrote: There are a variable number of them per window, of a variable size and layout, depending upon data. (There are a variable number of objects being observed by the user, each of which gets a tableview,

Editing in a tableview without selecting

2009-11-01 Thread Ben Haller
Hi all. I've got an NSTableView that I'd like to be editable. Even if I return YES from -tableView:shouldSelectRow: and YES from tableView:shouldEditTableColumn:row:, however, editing does not actually commence. The row selects, and I've confirmed with logs that both delegate methods

Re: Editing in a tableview without selecting

2009-11-01 Thread Ben Haller
On 1-Nov-09, at 12:42 PM, Ben Haller wrote: Hi all. I've got an NSTableView that I'd like to be editable. Even if I return YES from -tableView:shouldSelectRow: and YES from tableView:shouldEditTableColumn:row:, however, editing does not actually commence. The row selects, and I've

Re: Editing in a tableview without selecting

2009-11-01 Thread Scott
I'm new to Obj-c / Cocoa but this was helpful in figuring out editable table views I was trying to create with IB. Maybe it can help you in your case. http://www.idevgames.com/forum/showpost.php?p=94784postcount=3 I know I wasn't putting a dictionary object into an array with the same

Re: Editing in a tableview without selecting

2009-11-01 Thread Ben Haller
On 1-Nov-09, at 4:22 PM, Scott Waters wrote: I'm new to Obj-c / Cocoa but this was helpful in figuring out editable table views I was trying to create with IB. Maybe it can help you in your case. http://www.idevgames.com/forum/showpost.php?p=94784postcount=3 I know I wasn't putting a

Re: Editing in a tableview without selecting

2009-11-01 Thread Graham Cox
On 02/11/2009, at 4:42 AM, Ben Haller wrote: But where? I've been hunting for a -setEditable:YES method somewhere that I need to call, but I haven't found it... Hi Ben, Have you tried -setEditable:YES on the textfield cell you're using for the table column? (Inherited from NSCell). I'm

Re: Editing in a tableview without selecting

2009-11-01 Thread Ben Haller
On 1-Nov-09, at 6:01 PM, Graham Cox wrote: On 02/11/2009, at 4:42 AM, Ben Haller wrote: But where? I've been hunting for a -setEditable:YES method somewhere that I need to call, but I haven't found it... Hi Ben, Have you tried -setEditable:YES on the textfield cell you're using for

Re: Editing in a tableview without selecting

2009-11-01 Thread Graham Cox
On 02/11/2009, at 1:04 PM, Ben Haller wrote: I think I will have to construct a test case to see if I can reproduce this in a simple, isolated way. If that test case reproduces the problem, then I will post it somewhere and follow up on the list... Well, setting up a table view in IB,

Re: Editing in a tableview without selecting

2009-11-01 Thread Kyle Sluder
On Sun, Nov 1, 2009 at 9:42 AM, Ben Haller bhcocoa...@sticksoftware.com wrote: - (void)tableView:(NSTableView *)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex You might want to double-check that you didn't typo this in your data

Re: Editing in a tableview without selecting

2009-11-01 Thread Kyle Sluder
On Sun, Nov 1, 2009 at 9:42 AM, Ben Haller bhcocoa...@sticksoftware.com wrote:\  The only unusual thing about this tableview is that I set it up in code instead of in IB, so I assume the root of the problem is in my programmatic setup code.  But where?  I've been hunting for a -setEditable:YES