• 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
How to load hierarchic data into OutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to load hierarchic data into OutlineView


  • Subject: How to load hierarchic data into OutlineView
  • From: Takaaki Naganoya <email@hidden>
  • Date: Sun, 26 Feb 2017 15:51:24 +0900

I could not find the way to load hierarchic data into NSOutlineView via NSTreeController.
Does anyone know about it?

<AppleScript>
script AppDelegate
property parent : class "NSObject"


-- IBOutlets
property theWindow : missing value


property theTreeController : missing value
property theOutlineView : missing value


property theData : {{cell1:”1”, cell2:”2”}, {cell1:”3”, cell2:”4”}}—Now, this loads flat (non-hierarical) data


on applicationWillFinishLaunching:aNotification
end applicationWillFinishLaunching:


on applicationShouldTerminate_(sender)
return current application's NSTerminateNow
end applicationShouldTerminate:


on clicked_(sender)
set aTotal to theOutlineView's numberOfRows()
log aTotal



end clicked:
end script
</AppleScript>

--
Takaaki Naganoya
email@hidden
http://piyocast.com/as/



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to load hierarchic data into OutlineView
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: How to hide PDFView's scroll bar
  • Next by Date: Re: How to load hierarchic data into OutlineView
  • Previous by thread: Re: How to hide PDFView's scroll bar
  • Next by thread: Re: How to load hierarchic data into OutlineView
  • Index(es):
    • Date
    • Thread