[iphone sdk] ABAddressBook question, how to find by numbers?

I know there is a method to find by a certain name, but what if I wanted to find a contact that has a certain number? Looping through all the contacts and checking each would not be a good solution (people can have 1000+ contacts, with 3-4+ numbers each....)
Thanks

I had the same problem. My solution was quite hackish but it works pretty well. On load I drop a background thread that opens the address book, loops through all the contacts extracting the phone numbers and sticks them all in an easily searchable SQLite database. The whole operation takes under half a second for over 100 contacts so it's pretty reasonable. I limit it to running once every 3 days as well.

Similar Messages

  • I lost my iphone 6 and find my iphone did not work , how can find it ?

    I lost my iphone 6 and find my iphone did not work , how can find it ?

    How "did it not work"?
    Did you have it enabled?
    When you use FindMyiPhone, what does it show under Devices?

  • HT204266 I forget the answer to the security question, how to find the answer?

    Dear all, I forget the answer to the security question, how to find the answer? Thanks

    1. See my User Tip for some help: Some Solutions for Resetting
        Forgotten Security Questions: Apple Support Communities.
    2. Here are two different but direct methods:
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contacting Apple for
            support and service.
    3. For other queries about Apple ID see Frequently asked questions about Apple ID.
    4. Rescue email address and how to reset Apple ID security questions
    5. For online assistance use Apple - Support - Express Lane

  • How to find Port numbers used by RMI application

    Hi, hope u all find me a solution, how to find port numbers used in the RMI application, that is port number which the RMI application communicates between RMIserver and RMIclient. ur answers would b highly appreciated

    Currently RMI transport layer does not directly expose any public methods to get the listening ports of the exported RMI objects, but the application can always export RMI server objects at certain designated ports instead of relying on the RMI runtime by specifying them to UnicastRemoteObjcect at the time of exporting.
    RMI transport layer try to optimize the number of listeing sockets by exporting all RMI server objects on a single port if no explicit ports were chosen. If the application is really interested in knowing the listeing ports, it can always specify the client and server socket factories to be used for creating Socket and ServerSocket to the RMI runtime at the time of exporting. When a RMI server object is exported, but the listening socket is not yet created, RMI transport layer invokes the createServerSocket(host, port) of server socket factory by passing the host and port details. If no explicit port is specified, underlying socket implementation choses anonymous port. At this point of time application can log these listeing ports to some log file.
    Similarly when the stub to the remote object is de-serialized in the client address space, it does also contain the client socket factory along with the end point details (host, port and server object ID). RMI runtime in the client address space needs to establish connection with the remote server object, it try to get the socket from client socket factory by invoking createSocket() on the client socket factory. Now the application can call getLocalPort() on the socket before returning it to the RMI transport layer.
    There is a undocumented class RMIStat to dump RMI runtime state information. It provides a lot of static methods to dump RMI state information like object table, transports, threads etc. You can download the source code of this utility from RMI archives, but remember this is not a comman-line utility, you must invoke these static methods as part of the application code.
    -- Srinath Mandalapu

  • Newbie Question: How to find Forms/Reports Server Version

    Hello,
    Is there a way to easily find out what is the patchset installed for the Forms and Reports Server. I know that presently using AS 9i rel1 and Forms 6i, but how do you find out more information on the installed patches on Windows? thanks

    Please see these threads.
    how to find the developer version
    Re: how to find the developer version
    Report Builder version
    Re: Report Builder version
    Form patch set level
    Re: Form patch set level.
    Always search the forum before posting similar questions.
    Thanks,
    Hussein

  • IPhone SDK Beta 4 - How to send emails with attachments?

    Hello everyone!
    This is my first post Please be so kind to point me in the right direction.
    Using the official iPhone SDK Beta 4, I am trying to show the compose email screen not only with a subject and body fields, but also with an attached PDF file that I generated. I know that many apps available in the Installer.app can do that, but can the SDK do that as well?
    Generating a mailto URL doesn't seem to be the answer since the RFC 2368 doesn't support attachments as far as I understand. All my attempts to hard-code a mailto URL that could trick the Mail application into composing a message with an attachment have failed...
    Could you give me a hint or maybe copy paste some code to help me with attaching files to emails?
    Thank you so much in advance,
    Eugene

    I tried the following :
    NSError *error;
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *path = [documentsDirectory stringByAppendingPathComponent:@"export.csv"];
    if ([records writeToFile:path atomically:YES encoding:NSUTF8StringEncoding error:&error] == NO) {
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Export error" message:@"An error occured while writing the file."
    delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
    [alert show];
    [alert release];
    static NSString *email = @"[email protected]";
    NSString *outMailtoPath = [NSString stringWithFormat:@"mailto:%@?subject=Review&body=%@&attachment=%@", email, @"test", path, nil];
    NSURL *url = [NSURL URLWithString: [(NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)outMailtoPath,NULL,NULL,kCFStringEncodingUTF8) autorelease]];
    [[UIApplication sharedApplication] openURL:url]

  • How to find Delivery numbers for a range of Material Documents

    Hi,
    Could anybody please let me know how to find the delivery numbers from a range of material documents based on a given delivery date.
    Regards
    Kasi

    Hi,
    there is an index table for deliveries by material:
    VLPMA
    Select the delivery numers using the material range from VLPMA.
    Regards,
    Clemens

  • MS/UNIX/DB question - How to find MS characters in Unix scripts.

    Hi. I apologise if this is a bit off-topic.
    We have been developing sql scripts on PC's but need to run them from UNIX. We are find Microsoft characters like double spaces followed by a dash convert into little squares and upside down question marks. etc.
    I can find them in the database using:
    SELECT description_text, dump(description_text)
       FROM descriptions
      WHERE regexp_like( description_text, '[^[:print:][:space:]]');And get things like "Adjustment � Service".
    In unix that might appear as "\266" in the middle of a text string. We find them in the db, fix them, and re-deploy.. but this is getting tiresome.
    I want to be able to repeatedly scan all sql scripts in Unix, including files in subdirectories. (there are literally hundreds..)
    We're running SunOS 5.10. I have tried "grep -r {266}" but the -r option isn't valid with my version of grep... :(
    Any suggestions about the easiest/most pragmatic way of doing this?
    Thanks in advance. :)
    Pete
    Edited by: peetmoore on 11-Aug-2009 19:51

    I couldn't get the shell script to work, so just kept playing with command line.
    The closest I have is:   find . -name "*.sql"  | xargs  grep 'xyz' Or using od: find . -name "*" | xargs | od -c | grep 'xyz' But i'm struggling a bit to identify and filter the specifc characters i'm looking for. They appear differently depending on how they're being viewed. (or not at all.) in some cases 2 spaces following by a dash " -" appeared as an update down question mark in Sql and "\266" in the unix script when viewed in vi. I don't have any current examples so it's hard to see what it looks like in od.

  • Simple question - How to find date

    Hi Experts,
    I have a simple question on date. Suppose today is Jan 4, 2010. I have to find out Jan 1, 2007 using Java code.
    I have used following code. This code will work for 2010 and 2011 properly. However it won't work properly after Feb 28, 2012. Please see "dayInMillis*1096 " portion of code. Here 365365366 = 1096.
    How I can avoid this hard coding. Do we have any simple way to get Jan 1, 2007 even without using following code.
         Calendar calendar = Calendar.getInstance();
         int lastDate = calendar.getActualMaximum(Calendar.DATE);
         int firstDate = calendar.getActualMinimum(Calendar.DATE);
         int todayDate = calendar.get(Calendar.DATE);
         int dayofyear = calendar.get(Calendar.DAY_OF_YEAR);
         java.sql.Date currentdate = new java.sql.Date(System.currentTimeMillis());
         long dayInMillis = 1000 * 60 * 60 *24; //1 day
         wdContext.currentContextElement().setFromDate(new Date(System.currentTimeMillis() - dayInMillis*1096 - ((dayofyear-1)*dayInMillis)));
    Please help.
    Regards,
    Gary

    Hi Gary,
    I am not pretty much clear with your question, whatever i have understood, i have found a way to get the previous date given the current date.
    Below is the code for the same.
                           Calendar now = Calendar.getInstance();//Jan 4, 2010
           String nowDateStr = DateFormat.getDateInstance().format(now.getTime());
           System.out.println("date now : " +nowDateStr);
           now.add(Calendar.YEAR, -3);//2007
           now.add(Calendar.DATE, -3);//1st
           now.add(Calendar.MONTH, 0);//No change in month, Jan.
           String changedDateStr = DateFormat.getDateInstance().format(now.getTime());
           System.out.println("date changed : " +changedDateStr);

  • Question: how to find color temperature in a psd?

    assume i assign a color temperature to an image, either in the camera or in bridge. how do i find that color temperature in the psd of the image?

    Thanks for the quick and accurate response. in Win 7, CS5.5, it's file>file info, but i'm certainly not quibbling.

  • Question:how to find administrator password using OSX?

    How can you find administrator password when you lose it caused by an error?

    Forgot Your Account Password
    For Lion/Mountain Lion
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password, OS X Mountain Lion- Reset a login password, and
         OS X Lion- Apple ID can be used to reset your user account password.
    For Snow Leopard and earlier with installer DVD
         Mac OS X 10.6- If you forget your administrator password
    For Snow Leopard and earlier without installer DVD
        How to reset your Mac OS X password without an installer disc | MacYourself

  • [SOLVED] Awesome WM autostart questions/how to find program "class"

    Hi there,
    Right so I'm using Awesome WM and want to auto start programs into specific tags.
    This is the code I have, and everything is working as expected:
    --Autostart Programs
    awful.util.spawn_with_shell("chromium")
    awful.util.spawn_with_shell("skype")
    awful.util.spawn_with_shell("spotify")
    -- {{{ Rules
    awful.rules.rules = {
    -- All clients will match this rule.
    { rule = { },
    properties = { border_width = beautiful.border_width,
    border_color = beautiful.border_normal,
    focus = true,
    keys = clientkeys,
    buttons = clientbuttons } },
    { rule = { class = "Chromium" },
    properties = { tag = tags[1][6] } },
    { rule = { class = "Skype" },
    properties = { tag = [1][3]} },
    { rule = { class = "Spotify" },
    properties = { tag = [1][4] } },
    So what I'm wondering is how do I find out what the class of programs for this section: "{ rule = { class = "  " },"?
    I installed Arch on my chromebook and I've been using a lot of the programs such as Evernote and Trello. I have the chrome app drawer (http://www.omgchrome.com/enable-chrome- … her-linux/).
    I created a shortcut and can auto launch programs such as evernote using the chrome app drawer using the command we can see from the desktop entry:
    awful.util.spawn_with_shell("/usr/bin/chromium --profile-directory=Default --app-id=lbfehkoinhhcknnbdgnnmjhiladcgbol")
    However, the issue is that it always opens on whatever tab I'm using. I cannot find the class to add to the rules.
    None of these work:
    { rule = { class = "chrome-lbfehkoinhhcknnbdgnnmjhiladcgbol-Default.desktop" },
    properties = { tag = tags[1][6] } },
    { rule = { class = "Evernote Web" },
    properties = { tag = tags[1][6] } },
    { rule = { class = "/usr/bin/chromium --profile-directory=Default --app-id=lbfehkoinhhcknnbdgnnmjhiladcgbol" },
    properties = { tag = tags[1][6] } },
    Any suggestions on what I can do to find the "class"?
    Last edited by Gwynplaine (2014-11-14 00:24:01)

    run 'xprop' in a terminal and your cursor will change to a cross.  Click anywhere on the app you want to identify and the class will be sent to the screen (along with a ton of other stuff)
    It's in the xorg-xprop pkg
    Last edited by oliver (2014-11-14 00:16:08)

  • My iphone is lost..how to find?

    My iphone is lost on Monday 24th February in Taxi in Kathmandu nepal, is there any suggestion/idea/way to find the one?pls help me, i cannot afford the loss of my iphone and data..

    The only way to locate/disable/erase any lost/stolen iPhone/iPod Touch is through Find My Phone or a similar app. However, this requires that Find My Phone be setup/activated, on your phone, before it was lost/stolen. You would then login at iCloud.com & try to locate it. This requires the phone be turned on & have an Internet connection. There is no other way to locate a lost/stolen iPhone. Apple can't/won't help you, nor will your carrier. Report the loss to the Police, your carrier & Insurance company. Change all of your passwords, especially your Apple ID/iCloud password NOW!
    If your carrier offers Blacklisting & they Blacklist the phone, it will be unusable as a phone.
    If locked with a passcode, and running iOS 7.0, then phone cannot be re-activated or the passcode removed without knowing your Apple iD/Password. It will be nothing but a useless paperweight.
    If not running iOS 7.0, the phone can be forced into recovery mode & restored.

  • Simple "Find" question -- How to find values in cells with formulas?

    Sorry if this is a stupid question but I don't find the answer. I have a table with values that are all computed via complex formulas. I want to FIND, say, when the value is 19. I can't find a way to do it: If I use the "find" command and type 19, the program finds when 19 is written INSIDE the formulas, e. g., it finds the cell where a formula is thus defined:
    =Table Correct Responses :: A19
    but does NOT find the cell with VALUE 19.
    Tried different syntax combinations without success. Any idea?
    Cheers,
    l.

    My two cents:
    Select the entire table.
    Cells Inspector.
    Define a rule like the one I uses here.
    It will highlight the cells whose value matches the condition.
    Yvan KOENIG (from FRANCE lundi 26 mai 2008 17:53:33)

  • JavaMail Question: How to find IP address of email sender?

    Hi,
    I currently have a program that fetches email from a pop3 server and processes the email text.
    I want to filter out emails to process based on IP address of the sender.
    Can you please tell me whether it is possible to obtain the IP address of the sender using JavaMail?
    If yes, how? If not, what else can I use?
    Thanks,
    nitrousFiz

    Fayezin wrote:
    I have checked the RECEIVED headers closely. It seems that the last IP is of my mail server, not my machine from which the email was sent. Excellent. You have done the experiment. Now you know what IP addresses you can get.
    Is there a way to get the sender's machine IP or do I have to settle for the email server IP?So you did the experiment. You have the results. They already told you the answer to that.
    Here's what you need: an understanding of e-mail's architecture. As you already know, it's the servers that send the messages around the Internet. The servers have their own ways of deciding whether to trust an e-mail client. They may use authentication or lists of approved relayers or something else, or they may blindly trust everyone, but it's up to the initial server to decide whether to trust a client.
    It is NOT up to the receiving server to decide whether to trust a client of another server. That's not its business. The receiving server only has the option of deciding whether to trust other servers. In particular your desire to process e-mails from specific locations only is in conflict with the basic architecture of e-mail.
    So, I don't know where that requirement came from but if it's really aimed at the client who is sending the e-mail then you can't do that. It would be best to go back and find out why you have that requirement and how that can be implemented within the existing e-mail architecture.

Maybe you are looking for

  • Flash Player does NOT work with Mozilla Firefox

    I have Mozilla Firefox on my computer which uses Windows XP 32-bit and the flash player (newest version) simply does not work.  I have successfully followed ALL instructions for making it work but nothing has changed.  I have an .SWF file that I wish

  • Need help to open palm V files on 64 bit Win 7 i7

    I have the synced Palm V files on a backup hard drive which I am trying to access on a new laptop, which has an i7 processor with 64-bit windows 7. I tried to install the 4.1.4 desktop software but it errored out: Internal Error 2738.  I find pages a

  • HT204135 Hi! Okay I am about to purchase a printer for my MacBook Pro w/retinal display. I would like to know which

    Can someone tell me which printer would be most compatible and easiest to install? I have never owned a wireless printer and feel intimidated by the very thought of connecting a printer to my MacBook Pro with Retinal display and Mountain Lion. I feel

  • Using "in clause" for more than one collumn

    Hallo, for the following statement, I got the error "FEHLER in Zeile 16: ORA-00920: Ungultiger relationaler Operator". What is wrong on it? SELECT 'ALTER TABLE ' || c.owner || '.' || c.table_name || ' MODIFY(' || '"' || c.column_name || '"' || c.data

  • Need help with actionscript (flash professional)

    Ok so its been a while since I've used flash and i need a little bit of help. I've searched through the help books and tried to figure it out on my own but im stuck. I'm making a website for my music page using flash professional on Mac OSX. I'm tryi