Re: Select tablecell on creation through arrayController

2009-02-26 Thread Ron Lue-Sang
Chances are you're calling add: on the arrayController and then assuming that the newly added object is added to the array immediately. I'm pretty sure the documentation says that that's an incorrect assumption. If the value absolutely positively has to be there right away, use addObject:. Th

Re: Select tablecell on creation through arrayController

2009-02-25 Thread Quincey Morris
On Feb 25, 2009, at 19:12, Walker Argendeli wrote: The code is now this, which works- kindof: [notebookController add:sender]; [notebookTableView editColumn:0 row:[notebookTableView selectedRow] withEvent:nil select:YES]; Only problem is, for the second line, I actually have to kick off a

Re: Select tablecell on creation through arrayController

2009-02-25 Thread Walker Argendeli
The code is now this, which works- kindof: [notebookController add:sender]; [notebookTableView editColumn:0 row:[notebookTableView selectedRow] withEvent:nil select:YES]; Only problem is, for the second line, I actually have to kick off a timer...: [NSTimer scheduledTimerWithTimeInterval:.

Re: Select tablecell on creation through arrayController

2009-02-25 Thread Corbin Dunn
On Feb 25, 2009, at 2:11 PM, Walker Argendeli wrote: 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

Re: Select tablecell on creation through arrayController

2009-02-25 Thread Kyle Sluder
On Wed, Feb 25, 2009 at 5:11 PM, Walker Argendeli wrote: > I have a table with one column [...snip...] > [tableView editColumn:1 row:[tableView selectedRow] withEvent:nil > select:YES]; You are aware that arrays are 0-indexed, right? --Kyle Sluder __

Select tablecell on creation through arrayController

2009-02-25 Thread Walker Argendeli
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