<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: iPhone Development SDK &#8211; Working with the Address BookRight</title>
	<atom:link href="http://duivesteyn.net/2010/01/26/iphone-development-sdk-working-with-the-address-bookright/feed/" rel="self" type="application/rss+xml" />
	<link>http://duivesteyn.net/2010/01/26/iphone-development-sdk-working-with-the-address-bookright/</link>
	<description></description>
	<lastBuildDate>Tue, 31 Aug 2010 05:57:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: admin</title>
		<link>http://duivesteyn.net/2010/01/26/iphone-development-sdk-working-with-the-address-bookright/comment-page-1/#comment-14</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 19 Feb 2010 14:20:39 +0000</pubDate>
		<guid isPermaLink="false">http://duivesteyn.net/?p=105#comment-14</guid>
		<description>Michael, you are indeed correct. 
To alter the controller to use kABPersonLastNameProperty change PeoplePickerNavigationController to the following:

	//contactFirst = [(NSString *)ABRecordCopyValue(person, kABPersonFirstNameProperty) stringByAppendingString:@&quot; &quot;];	
	//contactLast =  (NSString *)ABRecordCopyValue(person, kABPersonLastNameProperty);
	//contactName = [contactFirst stringByAppendingString:contactLast];
	contactName = (NSString *)ABRecordCopyCompositeName(person);
	contactCompany = (NSString *)ABRecordCopyValue(person, kABPersonOrganizationProperty);</description>
		<content:encoded><![CDATA[<p>Michael, you are indeed correct.<br />
To alter the controller to use kABPersonLastNameProperty change PeoplePickerNavigationController to the following:</p>
<p>	//contactFirst = [(NSString *)ABRecordCopyValue(person, kABPersonFirstNameProperty) stringByAppendingString:@" "];<br />
	//contactLast =  (NSString *)ABRecordCopyValue(person, kABPersonLastNameProperty);<br />
	//contactName = [contactFirst stringByAppendingString:contactLast];<br />
	contactName = (NSString *)ABRecordCopyCompositeName(person);<br />
	contactCompany = (NSString *)ABRecordCopyValue(person, kABPersonOrganizationProperty);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Stelly</title>
		<link>http://duivesteyn.net/2010/01/26/iphone-development-sdk-working-with-the-address-bookright/comment-page-1/#comment-9</link>
		<dc:creator>Michael Stelly</dc:creator>
		<pubDate>Mon, 15 Feb 2010 04:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://duivesteyn.net/?p=105#comment-9</guid>
		<description>Just a note about using ABRecordCopyValue from Apple&#039;s Address Book Programming Guide, page 11:

Note: This function ABRecordCopyValue is used to get any property from a person record or a group record; it is used here to show the most general case. However, in actual applications, the function ABRecordCopyCompositeName is the recommended way to get a person’s full name to display. It puts the first and last name in the order preferred by the user, which provides a more uniform user experience.

Hope that helps. I happened upon your blog when searching for help using the personViewController:shouldPerformDefaultActionForPerson:property:identifier:

I can&#039;t figure out how to launch the email app when a user selects the email property of the record.</description>
		<content:encoded><![CDATA[<p>Just a note about using ABRecordCopyValue from Apple&#8217;s Address Book Programming Guide, page 11:</p>
<p>Note: This function ABRecordCopyValue is used to get any property from a person record or a group record; it is used here to show the most general case. However, in actual applications, the function ABRecordCopyCompositeName is the recommended way to get a person’s full name to display. It puts the first and last name in the order preferred by the user, which provides a more uniform user experience.</p>
<p>Hope that helps. I happened upon your blog when searching for help using the personViewController:shouldPerformDefaultActionForPerson:property:identifier:</p>
<p>I can&#8217;t figure out how to launch the email app when a user selects the email property of the record.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
