• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Make a cell editable programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: IBPlugin error
  • Next by Date: TDD/BDD testing methodologies?
  • Previous by thread: Re: IBPlugin error
  • Next by thread: TDD/BDD testing methodologies?
  • Index(es):
    • Date
    • Thread