Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Making new data source rows from Cocoa



I'm experienced at mixing ASS with Cocoa and even Perl, but I've been unable to figure out how to make new entries in a data source from Cocoa. That is, I want to do this in Cocoa:

make new data row at end of the data rows of theDataSource

I'm able to access the table view and data source objects to Cocoa, but I don't know the selector to use, as in:

call method "myCocoaRoutine:" with parameter theTableView

-(void)myCocoaRoutine:(NSTableView *)theTableView
{
id theDataSource;
dataSource = [theTableView dataSource];
[dataSource makeNewDataRow]; // <-- what is the proper selector?
...
}

Jeff
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.