• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
dynamic popupbutton in a table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: What Apple technologie should I use to port to MS and U*ix platform ?
  • Next by Date: Minimal cocoa application
  • Previous by thread: Re: What Apple technologie should I use to port to MS and U*ix platform ?
  • Next by thread: Minimal cocoa application
  • Index(es):
    • Date
    • Thread