Creating multi-platform application

Discussion in 'Mac Programming' started by EggWhite, Feb 23, 2015.

  1. EggWhite macrumors member

    Joined:
    Aug 28, 2009
    #1
    Hi, I am coming from a windows c# background using Visual Studios, and want to make an app for both iOS and Mac that will have a lot of shared code. In Visual Studios I would create a solution with a project for each interface (Web, console, windows app) and then one or more code libraries that would contain all the main logic that wasn't part of the interface and everything would work great.

    I am trying to read up on how to do this with XCode and I am confused what is the best way to do this. I have been searching but haven't found much in the wait of guide or tutorials, but it may be I am searching for the wrong keywords since terminology may be very different.

    Could anyone point me in the right direction of a guide that will help me get the project setup in the best way.
     
  2. iSee macrumors 68040

    iSee

    Joined:
    Oct 25, 2004
    #2
  3. EggWhite thread starter macrumors member

    Joined:
    Aug 28, 2009
    #3
    Thank you, that will help me out. Is there an equivalent to class library that only holds code and can't be deployed separately and is just for the logic and data layer?

     
  4. mfram macrumors 65816

    Joined:
    Jan 23, 2010
    Location:
    San Diego, CA USA
    #4
    Probably the term you want to look for is 'framework'.
     
  5. Senor Cuete macrumors regular

    Joined:
    Nov 9, 2011
    #5
    Correct Approach

    Your idea of using the respective IDE's for the different applications and using shared code libraries for the core functionality is the correct one because you will get the best possible user experience for each platform. However people that I know had a terrible time doing this because the code libraries for the PC were developed in languages that are not supported by XCode, for example BASIC. This could be a problem.
     
  6. theSeb, Feb 24, 2015
    Last edited: Feb 24, 2015

    theSeb macrumors 604

    theSeb

    Joined:
    Aug 10, 2010
    Location:
    Poole, England
    #6
    I don't think you read the question. There are no libraries in Windows that were developed in BASIC. He is not trying to make an application that is cross-platform between OS X and Windows.
     
  7. EggWhite thread starter macrumors member

    Joined:
    Aug 28, 2009
    #7
    Thank you everyone for your help, I have been doing some reading and it seems like what I am wanting to do is possible with a similar structure to what I am used to in VS.

    And yes this would be a Mac and iOS app and planning to try out Swift. Just a side project for fun.
     

Share This Page