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>
|