Re: Address Book Phone formats
Re: Address Book Phone formats
- Subject: Re: Address Book Phone formats
- From: Jean Le Clerc <email@hidden>
- Date: Fri, 13 Aug 2004 11:22:01 -0400
Hi!
1. You are absolutely right, and I humbly apologize - I'll be more
careful where I send my requests in the future.
2 & 3. Thanks - that sure points me in the right direction - just after
I sent the message this morning, I thought about "digging" in the
preferences of the ABook directly, but I was still looking for a way to
do that...
I'll leave the thread alone now, and take it to cocoa-dev instead if I
need more help...
Thanks!
On Aug 13, 2004, at 11:02 AM, Fritz Anderson wrote:
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/
Jean Le Clerc, email@hidden
Logiciels Malus Softwares
http://www.malus.ca/
Join the Sambucus User Group at http://groups.yahoo.com/group/sambucus/
_______________________________________________
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.