Xcode or cocoa?

Discussion in 'iOS Programming' started by Pajamaxllama, Oct 15, 2013.

  1. Pajamaxllama macrumors newbie

    Joined:
    Oct 15, 2013
    #1
    Im not a perfect programmer. I am making an app for my science fair project and it has to be able to collect information from the stocks app from apple. Im a beginner and i need something easy to learn. The interface of the app will be simple and i have 6 months until the science fair. So thats why i need to know which would suit me better? Its ok if i at least get it to like beta or alpha stage for the science fair even though i cant imagine it taking 6 months to complete (P.S i have a apple developers license)
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    What's your question?

    I don't think it's possible to get any data from the Apple stocks app.

    However, it's probably possible to get data from web apps on the internet. Maybe yahoo or google has a stocks web API. Ask Mr. Google about "stocks web api"

    A web API is a way to get data from a web app by http queries. Look for a REST API. Needless to say you'll want a free one. What would life be like without free ones?
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #3
    Are you trying to decide if you should use Xcode or Cocoa? You should do some research into what they are so you can understand why your question doesn't really make sense. It's like asking if you should use a frying pan or chicken to make a meal.

    P.S. iOS apps use Cocoa Touch.
     
  4. Pajamaxllama thread starter macrumors newbie

    Joined:
    Oct 15, 2013
    #4
    I know what they are, but i was reading forums and they said things about using xcode or cocoa touch, and carbon
     
  5. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #5
    Again, you should look into these things because they aren't options you have.
    - Carbon is an old OS X API which I believe was entirely removed at least a year ago after having been deprecated for several. (Or is it still just deprecated? I seem to recall it being removed as of Lion or ML...)
    - Xcode is an IDE. You almost certainly want to use it to make an iOS app, although there are other, far less common ones, you could pick from.
    - Cocoa Touch is an API. It comes from Appls for iOS devices. Pretty unanimously used by iOS developers.
    - Cocoa (no Touch) is the current OS X API.
     
  6. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #6
    And to complete the picture Objective-C is a language used to write the code in XCode that interfaces with the Cocoa Touch APIs
     
  7. Duncan C macrumors 6502a

    Duncan C

    Joined:
    Jan 21, 2008
    Location:
    Northern Virginia
    #7
    To summarize what others have told you in positive statements:

    It's not an either/or question.

    You should use

    • Xcode (development tool)
    • Objective C (Programming language)
    • Cocoa Touch (iOS application framework)

    Note that apps cannot interact with other apps. You will not be able to collect information from the Stocks app, unless Apple has built the Stocks app specifically with a facility for doing so, and as far as I know they have not.

    What you probably need to do is to find a server-based stock service and write an app that collects information from that service.

    Beware that interacting with a server is pretty advance stuff, and you have your work cut out for you learning Xcode, Objective C, Cococa Touch, and the specific things you will need to build your app in 6 months.

    (Based on your question I can tell you know almost nothing about iOS development.)
     
  8. Pajamaxllama thread starter macrumors newbie

    Joined:
    Oct 15, 2013
    #8
    Your correct i dont know much because im a window kind of person. And thankyou for your response i just need to at least get it to collect information from a stocks server and thats mainly it and then i will program the rest from there!
     
  9. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #9
    XCode is the equivalent of Visual Studio
    Objective C is the equivalent of C#
    Cocoa or Cocoa Touch is the equivalent of MFC (or whatever the modern version of that is)
     
  10. Duncan C macrumors 6502a

    Duncan C

    Joined:
    Jan 21, 2008
    Location:
    Northern Virginia
    #10
    Well explained
     

Share This Page