• 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
manipulating AB data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

manipulating AB data


  • Subject: manipulating AB data
  • From: email@hidden
  • Date: Thu, 29 Jan 2004 12:43:55 -0800

ok i'm working on a prog that lets the user manipulate AB data for export here is my question what is the best way to format the data for export ie the user says i want to export all email addresses last name and city should i create a master dictionary and cycle through the AB data extracting what i need then format it for output or is there a better way?

id master dict

contains fields to export

first name last name city

then it has a bunch of sub dicts which have object with the key of "last name" or "first name"

then i just cycle through and if a sub dict has the key i'm on i input the data if not i go to next

does this seem the most logical way of doing it? say if i wanted to export the data as tab-delimited data.
_______________________________________________
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: Disabling_Expose_for_some_windows,_some_day?
  • Next by Date: I need help with "Preferences" routines.
  • Previous by thread: Resetting user defaults?
  • Next by thread: I need help with "Preferences" routines.
  • Index(es):
    • Date
    • Thread