Start Editing Table Cell After NSArrayController Insert
Start Editing Table Cell After NSArrayController Insert
- Subject: Start Editing Table Cell After NSArrayController Insert
- From: Phil Larson <email@hidden>
- Date: Tue, 9 Nov 2004 03:55:25 -0800
I searched through the archives and couldn't find a solution to this. I
have my NSArrayController to automatically select new rows after an
insert, but I would also like it to start editing that row. Same as
adding a New Group in XCode or new playlist in iTunes. The first thing
I tried was simply observing my source array for any changes, however
when this is called the table has not yet refreshed and the new row
isn't selected or even displayed yet. So that doesn't work.
I am using indexed accessors so I can set flags in the insertObject
method called itemWasAdded, and lastInsertIndex, and then check these
in the tableview's selectionDidChange delegate, but that doesn't seem
like a very clean way. It doesn't work though.
Is there a better way of getting this behavior?
Phil Larson
_______________________________________________
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