Help with NSPopUpButtonCell and data sources needed
Help with NSPopUpButtonCell and data sources needed
- Subject: Help with NSPopUpButtonCell and data sources needed
- From: Simon Topliss <email@hidden>
- Date: Thu, 5 Feb 2004 21:09:30 +0000
I can't find any examples of using the new NSPopUpButtonCell in Xcode
and a search of the archives didn't turn up anything.
I have a table view on a tab view with 3 columns; Script Name, Status
and Action.
I've dragged a popup button cell on the Action column and named it
"Action Popup". It needs to list 3 options; {"Launch", "Update",
"Help"}.
I've created a data source for the table. The data source works
correctly if I don't try to set the popup button to anything, so I know
that's OK.
set dataSource to make new data source at end of data sources with
properties {name:"Scripts"}
make new data column at end of data columns of dataSource with
properties {name:"Script Name"}
make new data column at end of data columns of dataSource with
properties {name:"Status"}
make new data column at end of data columns of dataSource with
properties {name:"Action"}
-- this where i need to add a data item for the Action Popup
set data source of table view "table view" of scroll view "scroll view"
of tabViewItem to dataSource
How do I create a data item for the Action Popup? And how do I add
things to it?
I've tried just about everything I can think of. Has anyone
successfully managed this?
Thanks,
Simon
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.