Select tablecell on creation through arrayController
Select tablecell on creation through arrayController
- Subject: Select tablecell on creation through arrayController
- From: Walker Argendeli <email@hidden>
- Date: Wed, 25 Feb 2009 17:11:32 -0500
I have a table with one column, that's bound to an array controller.
It calls add: on the array controller when I hit a plus button.
Problem is, I want the textFieldCell to be selected on creation. I
rewired the plus button to call a method in a custom class. The first
thing the custom class does is call the array controller's add
method. This works fine. Then, I had some custom code based off code
I used in old (non-bindings) apps. It doesn't work though, console
logs *** -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)
Anyone understand what's going one, or have any code that would make
it work?
[notebookController add:sender];
[tableView editColumn:1 row:[tableView selectedRow] withEvent:nil
select:YES];
Thanks,
- Walker Argendeli
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden