Binding a pop-up menu to a dictionary in a tableColumn
Binding a pop-up menu to a dictionary in a tableColumn
- Subject: Binding a pop-up menu to a dictionary in a tableColumn
- From: John Lombardo <email@hidden>
- Date: Tue, 8 Jun 2004 18:09:40 +0800
The following is the data structure I'm using to generate a single
record in a tableView. I've used binding to get pop-up menus working in
tableViews and that's simple enough, however those used an array of
strings to populate the menu, rather than an array of dictionaries.
Is is possible to use the communicationtypedescription key from the
communicationtype field to create the content?
2004-06-08 17:59:32.958 Atrades[11183] communicationsArray: (
{
communicationtype = (
{"communicationtype_id" = 1; communicationtypedescription =
Phone; },
{"communicationtype_id" = 2; communicationtypedescription =
Fax; },
{"communicationtype_id" = 3; communicationtypedescription =
Mobile; },
{"communicationtype_id" = 4; communicationtypedescription =
Email; },
{"communicationtype_id" = 5; communicationtypedescription =
Web; },
{"communicationtype_id" = 6; communicationtypedescription =
Chat; }
);
communicationtypedescription = Phone;
contactdetail = 0755361041;
pocname = Annette;
}
)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.