Hi There,

I have an NSOutlineView and what I want to happen is that when a row is
added I want the row that has been added to Start Editing immediately
like when you double click on a row.

I have had a go using the code below (but as I'm not that Confident with Cocoa) 
it did not work.

- (IBAction)add:(id)sender {
    [treeController add:@"New Item"];
    [outlineView rowForItem:(id)@"New Item"];
    [outlineView editColumn:0 row:1 withEvent:nil select:YES];
}

The action is connected to the Add button in the Outline View.
What have I done wrong?

Thanks,
Josh.




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to