Re: Edit Newly Inserted Row Via Bindings
Re: Edit Newly Inserted Row Via Bindings
- Subject: Re: Edit Newly Inserted Row Via Bindings
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 14 Jun 2005 23:13:39 -0700
On Jun 14, 2005, at 10:03 PM, Todd Ransom wrote:
I had the same problem and could not figure out a way to do it
without using a table data source. Since I did not want to do that
I settled on the following for my one column table:
- (void)tableViewSelectionDidChange:(NSNotification *)aNotification {
NSTableView *tv = [aNotification object];
[tv editColumn: 0
row:[tv selectedRow]
withEvent: nil
select: YES];
}
If you use a custom array controller and provide an outlet to the
table view, you could also override addObject:
- (void)addObject:(id)object
{
[super addObject:(id)object];
[tableView editColumn:0
row:[self selectionIndex]
withEvent: nil
select: YES];
}
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden