• 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
Re: Opening column for edit after adding to tree controller?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening column for edit after adding to tree controller?


  • Subject: Re: Opening column for edit after adding to tree controller?
  • From: "I. Savant" <email@hidden>
  • Date: Sat, 31 May 2008 16:31:10 -0400

The problem is, I don't know how to determine to which row that newly-added object corresponds in the table view.

If you're targeting Leopard, you can force the tree controller to - fetch: (so it's updated) then I believe you can ask the outline view for its -rowForItem: ... if you're targeting Tiger, it's not as straightforward due to proxy objects.


I suppose it's the current-selected row, since it's set up to select on add.

That's one way, so long as you force a fetch first.

--
I.S.


_______________________________________________

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


  • Follow-Ups:
    • Re: Opening column for edit after adding to tree controller?
      • From: Rick Mann <email@hidden>
    • Re: Opening column for edit after adding to tree controller?
      • From: Rick Mann <email@hidden>
References: 
 >Opening column for edit after adding to tree controller? (From: Rick Mann <email@hidden>)
 >Re: Opening column for edit after adding to tree controller? (From: "I. Savant" <email@hidden>)
 >Re: Opening column for edit after adding to tree controller? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Finding the largest value in an NSTreeController?
  • Next by Date: Re: Opening column for edit after adding to tree controller?
  • Previous by thread: Re: Opening column for edit after adding to tree controller?
  • Next by thread: Re: Opening column for edit after adding to tree controller?
  • Index(es):
    • Date
    • Thread