• 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: How to create source-list programmatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create source-list programmatically?


  • Subject: Re: How to create source-list programmatically?
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 24 Oct 2013 10:35:32 -0500

On Oct 18, 2013, at 3:48 PM, Hoon Hwangbo wrote:

> So should I always use the IB to make source-list correctly? Is there no *purely programatic* - with only code - way to do that?

You can set up source lists in code.  Search the docs for "selectionHighlightStyle" and "sourcelist", especially the older AppKit release notes from when source list support was initially added.  In particular, you want to do:

    [outlineView setSelectionHighlightStyle:NSTableViewSelectionHighlightStyleSourceList];

Cheers,
Ken


_______________________________________________

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


References: 
 >How to create source-list programmatically? (From: Hoon Hwangbo <email@hidden>)

  • Prev by Date: NSTextField, maximum string length, bindings and NSFormatter
  • Next by Date: Re: NSTextField, maximum string length, bindings and NSFormatter
  • Previous by thread: How to create source-list programmatically?
  • Next by thread: Not documented: NSArray responds to -allObjects
  • Index(es):
    • Date
    • Thread