Make a cell editable programmatically
Make a cell editable programmatically
- Subject: Make a cell editable programmatically
- From: Norio <email@hidden>
- Date: Mon, 9 Jun 2008 22:33:50 +0900
Hi,
I'd like to make a cell of an NSTableView to be in an editing state
programmatically, without click or double-click on the cell.
The NSTableView is bound to an NSArrayController. I could bind them in IB
and when you press Add button (its target is the NSArrayController and its
action is NSArrayController 's add: , the row surely increases and is
selected. At this point I'd like the cell to be in the editing state, which
means a cursor-blinking state.
What I did was to made a subclass of NSArrayController and overrode add:
method, which called super add: method at the beginning and then
editColumn:row:withEvent:select:
with event argument nil. But nothing seemed to be happened.
Would you tell me what API I should use for this purpose?
Any suggestions or advices would be very appreciated.
Nor
_______________________________________________
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