• 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
Binding a pop-up menu to a dictionary in a tableColumn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Rasterizing an NSString to a bitmap
  • Next by Date: Re: Checksums and best way to get'em
  • Previous by thread: Re: performClose for carbon window?
  • Next by thread: Best Practice for implementing NSUndoManager?
  • Index(es):
    • Date
    • Thread