• 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
Start Editing Table Cell After NSArrayController Insert
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Multi-keystroke text input issue
  • Next by Date: Re: New Spotlight Info
  • Previous by thread: Re: Multi-keystroke text input issue
  • Next by thread: Filtering out all invisible files in a file system browser
  • Index(es):
    • Date
    • Thread