• 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
Addressbook api
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Addressbook api


  • Subject: Addressbook api
  • From: Mark Steinberg <email@hidden>
  • Date: Thu, 5 Sep 2002 15:55:10 -0400

Does anyone have any examples of adding a property to the addressbook?

This is not the way to do it ;-)

ABPerson *person;
int theInteger = 0;
person = [[ABPerson alloc] init];
NSMutableDictionary *addedProperties = [[NSMutableDictionary alloc]
init];

[addedProperties setObject: kABIntegerProperty forKey:kPMOid];
[ABPerson addPropertiesAndTypes:addedProperties];
[person setValue:theInteger forProperty:kPMOid];

I know this isn't right but I dont' know how to pass kABIntegerProperty
so that it gets added to the dictionary.
I also know that setValue:theInteger isn't right either but if the
dictionary is expecting and integer how can I pass it?

TIA

Mark
--
Mark Steinberg
Textile Technologies LLC
http://www.textiletech.com
_______________________________________________
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.

  • Follow-Ups:
    • Re: Addressbook api
      • From: Mark Steinberg <email@hidden>
    • Re: Addressbook api
      • From: Henri Lamiraux <email@hidden>
  • Prev by Date: Re: Glyphs without a unicode representation?
  • Next by Date: Re: Launching an App without NSWorkspace?
  • Previous by thread: Re: Drawing text in NSView
  • Next by thread: Re: Addressbook api
  • Index(es):
    • Date
    • Thread