Iphone SDK question (newbie)

I am new and just got my first Mac computer..
I am porting an application over which is using C and C++ to the iphone
The main problem will be that 1) it uses pthreads, 2) and sockets (winsock to be exact)
It looks like there are some socket available.
Also I had a look at the objective C and it does not seem easy to learn, but eventually I will need to use some for UI.
Would it be worth while to focus on the C++ efforts and target the program on OS X first then go to the iphone? .. and to get myself familiar to Xcode.. I am only used to visual studio.
Thanks in advance.

Hi Cal, and welcome to the Dev Forum!
Both OS/X and iPhone are built on a "Darwin" layer that includes all of BSD and more. The easiest way to access those docs is to bring up the Terminal app (man sockets, man pthread, etc.).
If you have some C, the learning curve for Obj-C is only steep for the first few days. You probably won't need a book devoted to Obj-C, but you should definitely have either Hillegass or Mark & LaMarche, preferably both, to ease you into Obj-C, Cocoa, and the iPhone.
I think Obj-C is a little harder if you're heavily into C++, or--worse yet--C# since you may need to unlearn a few habits, but not to worry. You'll love Obj-C and never want to see another Windows platform after the first few weeks.
If your target is iPhone, I'd go straight there, except for the times when the best books on a subject (such as animation) are written for OS/X. In fact all the Hillegass projects are for OS/X, but some of the Cocoa is explained better there than anyplace else.
But I would not recommend starting to port your app to iPhone tomorrow. Instead take the time to do some of the projects in Mark & LaMarche, then play with some of the sample apps at the Dev Center. By then you'll pretty much know what your code's interface to Cocoa will look like.
Hope that helps!
\- Ray

Similar Messages

  • IPhone SDK question. Problems with Addressbook and Addresses.

    I know the api is closed as of beta but I have serious problems adding street, zip and city terms to the multivalue address property. I am doing an application for release around the new model of iphone and any information about how to use the address property would be great. I can say, phone numbers I can add as many as I like as of now its only addresses I have problems with, and sadly I can't find information anywhere, including the SDK documentation how to write these properties to a record.
    I hope any of you can help me or give me a number I can call for help directly from apple.
    Thank you in advance.
    /Klaus

    I still wonder about this, but I got a new issue and that is adding a "default" photo to the address record I am creating.
    I try load my application icon from the application resources to add it to the addressbook record.
    NSString* imageName = [[[NSBundle mainBundle] pathForResource:@"Icon.png" ofType:nil]];
    NSData *iconData = [[NSData alloc] initWithContentsOfFile:imageName];
    ABPersonSetImageData(person, [[iconData bytes]], nil);
    Ugh the iconData gets allocated and initedWithContentsOfFile imageName. And yes it loads. Offtopic, how to mark segments as code so no fancy functions strip text and whitespace from my code exampes on the forum?
    But get bad access when I try add the image to the record. I know there was some articles on blogs about this last week, but seems like they been pulled off now.

  • IPhone SDK question...

    Hi,
    Where can I find anything in the SDK that allows me to see/modify/update the SYSTEM PREF Bundle??
    thanks,
    tob

    Hi Rogalon,
    I see that you can scramble your OWN app's prefs bundle... but I want access to the SYSTEM bundle (i.e. lets say I want to ENABLE or DISABLE the WiFi.)
    thanks,
    tob

  • IPhone sdk

    I just bought an iPhone 3g. I want to
    get into programming on my MacBook
    Pro, for my iPhone. I was looking into
    the apple website, and I saw a download
    for iPhone sdk. On the download they
    List some of the tools you will get with
    the dowload. My question is, I already
    have the developer tools, on my
    computer. And some of the tools are
    Like Xcode and interface builder. Which
    I know I have, on my MacBook pro.
    I don't know if I have the iPhone
    simulator, though would this come with
    the developer tools? I don't want two
    versions of Xcode on my computer.
    Is there a way to just download certain
    programs from the iphone sdk?
    Any help would be appreciated.

    I don't believe there are any iPhone tools on the install disks. You should get the latest builds from http://developer.apple.com/

  • IPHONE SDK FOR DEVELOPERS.

    Hi Mates,
    After many trials, I managed to download the iPhone SDK. I have the following folders :
    AccelerometerGraph,
    BubbleLevel,
    CryptoExercise,
    HelloWorld,
    PVRTextureLoader,
    SpeakHere,
    TouchCells,
    UICatalogue.
    I am not sure if all the folders were downloaded well.
    I have some problems to start. I have Windows Vista. Can the iPHone SDK run under Vista or does it require Mac OS.
    Thanks to help.
    Judex.

    Thanks for the "friendly" note, but as a "friendly" reminder to you - this is a user to user help forum that is primarily composed of "average joe" users of the iPhone. And what I mean by that is, this is not a computer programmer's forum.
    Nothing personal against the OP for this thread, but he missed the minimum system requirements for the SDK provided at Apple's website where the SDK can be downloaded. Based on this alone, and I could very well be wrong, but I venture to say that he is not a computer programmer, or is not a programmer by profession.
    I certainly could have worded my reply differently to be 100% accurate in regards to technical details for the computer programmer and anal retentive type, which I venture to say these discussions are not primarily composed of.
    I included the part about the iPhone running an optimized version of OS X in regards to Apple's minimum system requirements for the SDK primarily to keep it simple since I expected - "why doesn't Apple utilize resources to support Windows with the SDK?"
    Most people who ask that question are not computer programmers as a hobby or by profession either.
    To keep it simple for what is likely the majority here, which probably does not include many computer programmers by profession - Apple could port the SDK to Windows, but since Apple sells computers and other hardware including iPods and the iPhone, along with their own software, Apple chose to support an Intel Mac running Leopard only for the iPhone and iPod Touch SDK - with both the iPhone and the iPod Touch running an optimized version of OS X.
    Thanks for the note and clarification.

  • IPhone SDK 3.1: Problem compiling first Hello World App

    Hi,
    I am new to XCode, Mac OS and iPhone Development.
    I had already installed the earlier iPhone SDK (version prior to the latest 3.1) into my Mac OS 10.6. I was not able to run
    the hello world program through xCode as while opting for Build and Run, the simulator it was giving me an error saying that it cannot find the right SDK.
    I had assumed that the old SDK is not compatible with the new Mac OS 10.6 (Snow Leopard). I had then uninstalled the old
    iPhone SDK using Terminal tool, using the command line given in the xCode uninstall guide.
    Installed the latest iPhone SDK (version 3.1), and then tried to compile the hello world app through xCode. Now I am getting the following error:
    *error: can't exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2' (No such file or directory*)
    I had located the above mentioned directory and could not find the file: "gcc-4.2" as mentioned in the error. Instead
    executable files like "i686-apple-darwin10-gcc-4.2.1" are present there.
    My Project Settings are:
    Project Format - xcode 3.2 -compatible
    Base SDK - iPhone Simulator 3.1
    Compiler Version - System Default (GCC 4.2)
    I am totally confused here, as I don't know how to correctly set up the ENV, as I thought the iPhone installer SDK does that automatically.
    Please help me out.
    Thanks in advance for your time,
    JC.
    Error Messages:
    Build helloworldxc of project helloworldxc with configuration Debug
    ProcessPCH /var/folders/P-/P-zMg0EzHree36VYyqKEvU+TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/helloworldxcPrefix-gylsydenhucpkgfnujlgvzvhfhzd/helloworldxcPrefix.pch.gch helloworldxc_Prefix.pch normal i386 objective-c com.apple.compilers.gcc.4_2
    cd "/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc"
    setenv LANG en_US.US-ASCII
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x objective-c-header -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -D_IPHONE_OS_VERSION_MINREQUIRED=30000 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1 .sdk -fvisibility=hidden -mmacosx-version-min=10.5 -gdwarf-2 -iquote /Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/Deb ug-iphonesimulator/helloworldxc.build/helloworldxc-generated-files.hmap -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/helloworldxc-own-target-headers.hmap -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/helloworldxc-all-target-headers.hmap -iquote /Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/Deb ug-iphonesimulator/helloworldxc.build/helloworldxc-project-headers.hmap -F/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/Debug-iphonesimulato r -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/Debug-iphonesimulato r/include -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/DerivedSources/i386 -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/DerivedSources -c /Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/helloworldxc_Prefix.pch -o /var/folders/P-/P-zMg0EzHree36VYyqKEvU+TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/helloworldxcPrefix-gylsydenhucpkgfnujlgvzvhfhzd/helloworldxcPrefix.pch.gch
    while compiling hellowworldxc_Prefix.pch,
    error: can't exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2' (No such file or directory)

    Could you let me know as where is the xcode setting through which it is looking for the compiler in the following path ? This path is probably wrong (Pls refer to the error messages)
    I'm not sure this will be of any help to you -- I'm not sure if it's the answer you're looking for, since I don't really know enough on the subject. However, this may answer your question, or at least maybe help you find the answer for yourself, so it's worth a shot. Try going to Edit Project Settings in the Project menu, and once the Project Settings open, select the Build tab. Search through this and see if you find any preferences along the lines of what you are looking for. In particular I would try the sections toward the bottom about the GCC 4.0 compiler. Sorry if this was a waste of time, but I wanted to try...

  • IPhone SDK build version

    Hello everyone. I'm fairly new to Mac programming and the Xcode environment so I hope one of you can answer my silly question: How can I tell which build version of the iPhone SDK I have installed?

    Hey jerberrs,
    Is there a way to tell at compile time what the SDK version is? I have both 2.0 and 2.1 installed and I am looking for a way to conditionally compile based on the version of the SDK.

  • Iphone sdk iTunes

    I am a bit new to this forum so I hope not to commit any major faux pas' in this post:
    I am just reading the iPhone sdk documents, and trying to wrap my head around the possibilities.
    I am trying to figure out if there is a way to access the music that the user has on their device. Is it possible to read that XML from a users iTunes directly, or somehow interact with the file system to find all of their music?
    Thanks for any and all guidance. Much will be appreciated and returned.

    Same question. Is there any way to ask the user to select a song that's on the iPhone?

  • IPhone SDK Uninsallation

    Hey everyone.
    I've been trying to uninstall the iPhone SDK from my system using the directions in the PDF file that comes with the SDK. When I go into Terminal, I type in:
    $ sudo <Xcode>/Library/uninstall-devtools --mode=all
    When I type in this (or if I directly copy/paste), the following error appears:
    -bash: Xcode: No such file or directory
    Any ideas? I'm not so good with the Terminal side of OS X, so I'm coming to you guys.

    I was having the same problem. Thanks for the helpful answer. Here's another couple of questions. It has now removed everything, but the "developer" directory remains. Is this directory part of the Mac OS system default install or was it created by the iphone SDK? Can it be removed? it still has a bunch of files in it.

  • Tick Boxes in iPhone SDK

    Hello,
    I'm not sure if this is the right place to post this question, but I'm wondering where on the net I could find decent tutorials on tick boxes for the iPhone SDK. The application I'm working on requires them as a main UI feature.
    Thanks

    You probably want the developer mailing lists for programming assistance http://search.lists.apple.com/?q=iphone&cmd=Search%21
    There are various google groups if you google a bit.

  • Round triangle in iPhone SDK

    Hi,
    I'm a newbie to iPhone app development. How do you draw a rounded triangle using iPhone SDK? CGRect draws the normal rectangle.
    Thanks.

    to your comment.. you have to code that triangle either way if we're talking about diff screen devices down the road.. still just as simple to resize an image resource unless it's already a built-in iPhone/touch resource.. which if that were the case I'm with you all the way!
    john

  • Listcontrol Equivalent in iPhone SDK

    Hi,
    Iam newbie to iPhone OS.I need to design a Screen which should have a bar, it can be a Navigation Bar. And the View attached to bar should have a
    List control or Tree control functionality.
    Can any one explain me the possible approaches I can follow with the available controls in the iPhone SDK?
    Thanks
    Satya

    File a bug report if you can reproduce a problem that relates to Apple.
    bugreport.apple.com

  • Pinch/Flick Gesture Events in iPhone SDK

    just a simple question to the iPhone SDK.
    is there a simple possibility to read a pinch or flick gesture without programming and interpreting a multitouch sequence myself?
    Im looking for methods i can simply override like OnPinch or OnFlick.
    Ive searched for quite a while and cant find anything like this although im sure it must be available.

    There is no built in function to read a pinch or a flick. You have to implement it yourself using:
    - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    Depending what you want to do it may require some math to accomplish what you want to do. I had to dig into some old school books to make it work.

  • Which Macs will run the IPhone SDK

    I Got spooked.
    'Turns out my PowerPC processor won't allow the IPhone SDK to install even though it doesn't give me any message indicating so.
    So I have to buy another machine and want to make sure it will run the IPhone SDK
    How about Intel Atom Processor N270 1.6GHz single core?
    Thank you so much. Answers to other questions have been very helpful.
    Jerry

    Sorry Orange,
    You answered about the duel core. I am now asking about a different machine. I am hoping to get answers about several so that it can also be helpful to others.
    Thanks tod,
    That's helpful. Since I am running 10.5.5 on a real Mac and it won't take IPhone SDK now I am wondering just what will take it.
    So now I know the Intel® Atom Processor® N270 in the Dell Inspirion minis won't.
    Will the IPhone SDK only run in a machine built by Apple and after they started to use Intel?
    Jerry

  • IPhone SDK:  What are my options for getting help?

    I am an experienced programmer, but new to the mac and iphone. I've installed the sdk, but am not able to build the sample programs. I see from this forum that others have had the same problem, but I don't see an answer. I understand that there are many helpful people on this forum, but what do I do if I can't get my question answered? Should I spend the $99 to enroll and be able to get an answer?
    BTW, my question is about not being able to target the iphone or simulator, and getting an "ibtool cannot open files of this type" error, even though I've installed the iphone and simulator sdks. More at http://discussions.apple.com/thread.jspa?messageID=8559012.
    I appreciate any help, whether it's with my build problem or advice on where I should turn to for help.

    gvsguy wrote:
    Should I spend the $99 to enroll and be able to get an answer?
    If you're really using a G5 iMac, I doubt you'll get much help from Apple. The iPhone SDK is only supported on Intel Macs, so they probably wouldn't be able (or not very willing) to help. Google is more likely to be helpful, assuming someone has found a way to use the iPhone SDK on PPC Macs at all.
    charlie

Maybe you are looking for

  • Converting ms publisher 2007 files to pdf in acrobat x pro

    I really could use help with my project.  I have a publisher 2007 file which I converted to pdf in Acrobat x pro.  The links won't work.  There are 4 links.  2 to external web sites and 2 are email links.  I tried setting the links in publisher then

  • How to eliminate empty tags in out put XML file in IDOC to File scenario

    Hi Experts, I am doing IDOC to File scenario. My Out put XML is in to FTP is as below <ITEMS>     <item>           <A>asdf<A>           <B>GHIJ<B>     </item>     <item>           <A>123<A>           <B>G098<B>     </item> </ITEMS> <ITEMS/>   - > Mea

  • Vendor return via delivery, material sales view needed?

    Hi, We wish to retur material to vendor via Delivery process Return PO --> Delivery -->  Goods issue We ticketed 'Return to Vendor' checkbox, we created ship-to customer and saved Vendor now my question is Do we need create material master sales view

  • Keyframe Warp Stabilizer

    I'm going to end up doing this the hard way, but I thought I'd ask to see if a workaround exists--I haven't found one anywhere online. I am stabilizing a jib shot for a series I'm working on--the move on the jib is fluid and perfect, there is just a

  • File Manager Mark/Unmark

    While using E63 File Manager and you want to mark many files (say 40 out of 90 files), do you have to use the menu ? Is there any button or combination of 2 buttons for Mark/Unmark command ? Thank you. E63-1 (410.21.010) 3110c (07.21) Padsticker http