• 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
Re: Address Book Phone formats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Address Book Phone formats
      • From: Jean Le Clerc <email@hidden>
References: 
 >Address Book Phone formats (From: Jean Le Clerc <email@hidden>)

  • Prev by Date: How do you remove a file from a target???
  • Next by Date: Re: Address Book Phone formats
  • Previous by thread: Address Book Phone formats
  • Next by thread: Re: Address Book Phone formats
  • Index(es):
    • Date
    • Thread