ASKDataSource in Interface Builder 3.0

I’m trying to rebuild a project I had originally created a while back. The original project used interface builder and an NSScrollView with an ASKDataSource to populate the table. When I’m trying to do this again in Interface Builder 3, I don’t see the same ASKDataSource object in the library to add to my project. Has that been replaced with a different object?

Thanks,
Dave

data source:

I believe it’s preferred to handle the data source programmatically.

OK, but…I don’t understand how to associate a data source to my table view. I understand how to access data from the data source, but don’t I still have to “create” the data source?

Thanks,
Dave

Sorry, I think I found what you were talking about. That link to the manual was great, but of course, the part that I need doesn’t display right, much of the information is “hidden” by the overlapping navigation frame.

Dave

I’m still having some problems with this. Below is what I have, but when I run the application, the rows don’t populate with my test data. Any input on what I’ve got wrong would be greatly appreciated.

on launched theObject
	set dataSource to make new data source at end of data sources with properties {name:"Page Que"}
	
	tell dataSource
		make new data column at end of data columns with properties {name:"Page"}
		make new data column at end of data columns with properties {name:"Status"}
		make new data column at end of data columns with properties {name:"Proof"}
		make new data column at end of data columns with properties {name:"Colors"}
		make new data column at end of data columns with properties {name:"File Path"}
	end tell
	
	set parentItem to make new data item at end of data items of dataSource
	set contents of data cell "Page" of parentItem to "sample"
	set contents of data cell "Status" of parentItem to "--"
	set contents of data cell "Proof" of parentItem to "test"
	set contents of data cell "Colors" of parentItem to "--"
	set contents of data cell "File Path" of parentItem to "--"
	
	set parentItem to make new data item at end of data items of dataSource
	set contents of data cell "Page" of parentItem to "a"
	set contents of data cell "Status" of parentItem to "b"
	set contents of data cell "Proof" of parentItem to "c"
	set contents of data cell "Colors" of parentItem to "d"
	set contents of data cell "File Path" of parentItem to "e"
	
	set data source of table view "List" of scroll view "List" of tab view item "Que" of tab view "Tabs" of window "main" to dataSource
	
end launched

I figured out my issue…it should read like below. I replaced data item with data row and data items with data rows

on launched theObject
   set dataSource to make new data source at end of data sources with properties {name:"Page Que"}
   
   tell dataSource
       make new data column at end of data columns with properties {name:"Page"}
       make new data column at end of data columns with properties {name:"Status"}
       make new data column at end of data columns with properties {name:"Proof"}
       make new data column at end of data columns with properties {name:"Colors"}
       make new data column at end of data columns with properties {name:"File Path"}
   end tell
   
   set parentItem to make new data row at end of data rows of dataSource
   set contents of data cell "Page" of parentItem to "sample"
   set contents of data cell "Status" of parentItem to "--"
   set contents of data cell "Proof" of parentItem to "test"
   set contents of data cell "Colors" of parentItem to "--"
   set contents of data cell "File Path" of parentItem to "--"
   
   set parentItem to make new data row at end of data rows of dataSource
   set contents of data cell "Page" of parentItem to "a"
   set contents of data cell "Status" of parentItem to "b"
   set contents of data cell "Proof" of parentItem to "c"
   set contents of data cell "Colors" of parentItem to "d"
   set contents of data cell "File Path" of parentItem to "e"
   
   set data source of table view "List" of scroll view "List" of tab view item "Que" of tab view "Tabs" of window "main" to dataSource
   
end launched

THANK YOU SO MUCH!!!
I’ve been grumpy about this for very long!

Jazz