is it possible to call iphone api in mac programing?

Discussion in 'iPhone/iPad Programming' started by chinnu, Nov 2, 2009.

  1. macrumors newbie

    Joined:
    Oct 27, 2009
    Location:
    Australia
    #1
    is it possible to call iphone api in mac programing?
    thanks in advance.
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    No
     
  3. macrumors 603

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #3
    Only for running on the SDK iPhone Simulator on a Mac. Otherwise, the Cocoa and Cocoa Touch libraries available have different APIs.
     
  4. macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #4
    Based on your questions, it seems like you are trying to get a Mac and iPhone to talk to each other. If this is the case, check out PhoneView before you re-invent the wheel.
     
  5. thread starter macrumors newbie

    Joined:
    Oct 27, 2009
    Location:
    Australia
    #5
    exactly,you are 100% correct.
    i'm trying to develop that kind of application.
    is phoneview app developed using iphone sdk?
    plz tell me how to develop application like phoneview.
    which api's i need to use.
    is it possible to get source code of phoneView app?
    thanks alot guys.
     
  6. macrumors 68020

    Joined:
    Oct 12, 2006
    #6

    I would imagine no.
     
  7. macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #7
    Actually the answer to your first question is 'partially.' Foundation classes are available on the Mac and iPhone OS. So NSArray, NSURLConnection and others are available on Mac and iPhone. UIKit isn't available on Mac, only on iPhone. Mac has AppKit, which is a desktop version of UIKit.

    There are a lot of strategies for transferring files between iPhone and desktop computer. If you want to sync some kind of files between both platforms or you want some kind of automated transfer then you need to write code that works on the desktop as well as the device. If you want the transfer to be under the user's control then you might only need to write device-side code.
     
  8. macrumors 604

    Joined:
    Mar 26, 2008
    Location:
    West Suburban Boston Ma
    #8
    Phoneview is a commercial application and they are not going to simply give you their source code for any reason. Do you even have the iPhone SDK? How much experience do you have programming?
     

Share This Page