• 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 10:34:30 -0400

On May 31, 2008, at 4:27 AM, Rick Mann wrote:

After adding a new entity to my tree controller, how can I programmatically open the first column (a text cell)

Again, this is confusing - "entity" is not the same as "instance". Also, I assume by 'column' you mean that of a table view or outline view.


for editing and select the contents, so that it's easy to create a new entity and start editing the values?

NSTableView and NSOutlineView have a method - editColumn:row:withEvent:select: ... Make sure your tree controller has fetched and rearranged its objects (and if your view is an outline view, the corresponding "item" for your new instance is fully expanded), then call the -editColumn:row:withEvent:select: method.


--
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>
References: 
 >Opening column for edit after adding to tree controller? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Defaulting new entity fields to be same as current selection?
  • Next by Date: Re: RESTful API's - Easy way to interact?
  • Previous by thread: 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