PDA

View Full Version : is it possible to call iphone api in mac programing?




chinnu
Nov 2, 2009, 06:16 AM
is it possible to call iphone api in mac programing?
thanks in advance.



robbieduncan
Nov 2, 2009, 06:50 AM
No

firewood
Nov 2, 2009, 12:02 PM
Only for running on the SDK iPhone Simulator on a Mac. Otherwise, the Cocoa and Cocoa Touch libraries available have different APIs.

jeremy.king
Nov 2, 2009, 12:19 PM
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 (http://www.ecamm.com/mac/phoneview/instructions.html) before you re-invent the wheel.

chinnu
Nov 2, 2009, 11:49 PM
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.

Matthew Yohe
Nov 3, 2009, 12:02 AM
is it possible to get source code of phoneView app?
thanks alot guys.


I would imagine no.

PhoneyDeveloper
Nov 3, 2009, 09:26 AM
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.

old-wiz
Nov 3, 2009, 11:03 AM
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?