Re: Address Book Phone formats
Re: Address Book Phone formats
- Subject: Re: Address Book Phone formats
- From: Fritz Anderson <email@hidden>
- Date: Fri, 13 Aug 2004 10:02:00 -0500
1. This isn't an Xcode question. Better to ask on cocoa-dev or
OmniGroup's macosx-dev.
2. index = [(NSNumber *)CFPreferencesCopyAppValue
(@"ABPhoneFormat-Enabled", @"com.apple.AddressBook") intValue];
array = (NSArray *) CFPreferencesCopyAppValue
(@"ABPhoneFormat-PhoneFormatter", @"com.apple.AddressBook");
The index'th item in array will then be the user's chosen format.
However, I get +1 (###) ###-#### for the result, when the actual format
used omits the +1; I don't know whether the format is unused, or is
modified inside Address Book to suppress the local country code.
3. The above being CF...Copy functions, I really should have done a
CFRelease of the returned values when I was done with them.
-- F
On 13 Aug 2004, at 5:24 AM, Jean Le Clerc wrote:
> All right, I give up, and excuse me if this is blatantly easy... The
> Address Book has preferences for formatting phone and fax numbers...
> Do we have access to the selected formatter as programmers? I'd like
> to format the phone numbers exactly like in the Address Book,
> respecting the user's choice of formatter...
>
--
Fritz Anderson
Consulting Programmer Chicago, Illinois
http://resume.manoverboard.org/
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.