dynamic popupbutton in a table
dynamic popupbutton in a table
- Subject: dynamic popupbutton in a table
- From: "Ahmet Taha Sakar" <email@hidden>
- Date: Thu, 8 Mar 2007 02:44:38 -0800
Hello,
I'm trying to do something that I think it should be fairly easy, but I
guess I'm missing a key point. I have created a table in IB and added two
nspopupbuttoncell to the table. My goal is to have text options in one
nspopupbuttoncell column, and a image options in one nspopupbuttoncell
column. I have also created a controller, and connected datasource and
delegate to the class. If I have used regular text colums, then I can
popula with these functions:
_usersDataSource is NSMutableArray and it is filled with NSDictionaries.
- (int) numberOfRowsInTableView:(NSTableView *)aTableView
{
return [_usersDataSource count];
}
- (id) tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
{
return [[_usersDataSource objectAtIndex:rowIndex]
objectForKey:[aTableColumn identifier]];
}
What is the code to create the text nspopupbutton and image nspopupbutton.
I'm new to cocoa so any help will be greatly appriciated.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden