API calls

Discussion in 'Mac Programming' started by Peebee, Aug 25, 2008.

  1. Peebee macrumors newbie

    Aug 25, 2008
    Hi all,

    I'm new to this forum.
    I'm here because I want to port one of my Windows applications to Mac OS X
    It's the client side program of a remote admin program (www.remotepass.com) and I need all sorts of api calls to peek into the system.
    I only bought a few books recently (Maxc OSX Internals and Cocoa programming for MAC OS X) but they don't help much :D
    I don't know if this is the correct forum, but any help is appreciated.
    I also need a MAC to write the software. :)
    Is ther some guide available to select a Mac ?(for programming only)


  2. liptonlover macrumors 6502a

    Mar 13, 2008
    I can't help you too much because I'm not the most experienced one here in any measure, but I can answer a few questions.

    This is the correct part of the correct forum. Everyone here is very helpful and you'll get answers quickly.

    You're going to need an intel mac. A laptop or mac-mini hooked up to a monitor will work, but if you can afford a bigger desktop computer the screen size is helpful. You'll probably have a lot of windows open, especially while you're learning.

    I have a bazillion bookmarks for programming documents and websites. Here they all are:

    More specific things you may want to try is cocoalab's becomeanxcoder tutorial... it's the first link in the list above. Their tutorial is great and assumes you have no programming knowledge so anyone can use it. It's a little outdated but not too hard to figure out the differences.
    I don't remember where to register but there's the cocoa-dev developers mailing list. That's useful, just make sure you ask the right questions. They don't like C questions and stuff like that.
    Google is one of your best friends. I have trouble finding information there, but I know it can be done because the people here usually answer my questions with a google search of theirs.

    Good luck!
  3. gnasher729 macrumors P6


    Nov 25, 2005
    You can basically pick an Macintosh that is being sold today. They all have plenty of power for any software development that you would be doing. You can download the complete MacOS X software development tools from Apple, start at developer.apple.com.

    You might look at a MacMini for the lowest cost if you have a keyboard and monitor available to have the lowest possible cost. I would probably recommend a MacBook; you can attach a monitor that you have as a second monitor, and you can go for the cheapest model then buy RAM and a bigger harddrive elsewhere to get a very powerful machine. That way it is also very suitable to run both MacOS X and Windows and/or Linux, either by dual-booting or by running them simultaneously.
  4. Cromulent macrumors 603


    Oct 2, 2006
    The Land of Hope and Glory
    That's nothing :).
  5. Peebee thread starter macrumors newbie

    Aug 25, 2008
    That's a lot to read !
    I'm not even sure which programming language to use.
    In Windows, I mostly use Delphi which is true RAD and OOP.
    Cocoa uses objective-C and that's a completely different approach.
    I thinks it's gonna take a while before I make my final desision ...


  6. lee1210 macrumors 68040


    Jan 10, 2005
    Dallas, TX
    If you want to write a modern OS X application, there is not much of a decision. You'll have to use Objective-C/Cocoa for at least the GUI part of the app. There is a bridge for Python now, so that is also an option, though you'll still probably need to touch a little Objective-C.

    Other than the GUI, you can use whatever you'd like for the backend as long as you can link it with Objective-C. That could be plain C, C++, Fortran, Java via JNI, and I'm sure quite a few others that I am not familiar with. But again, if you are needing to get into the guts of OS X (not just the BSD-like, POSIX-y part) you'll have to do it with Cocoa.

    The other option is Carbon using C/C++, but this API is quickly falling by the wayside, so it would really be best to just start with Cocoa now.


    P.S. With Interface Builder you do have a lot of "visual" control over the GUI design and connections, and XCode provides a decent editor and good integration with the compilers used and Interface Builder. I don't know if there's an official definition of RAD (What's rapid, exactly?), but Objective-C is definitely an Object-Oriented language, and Cocoa is built around that.
  7. liptonlover macrumors 6502a

    Mar 13, 2008
    I did have more... but I weeded out a lot that I don't use as much.

    If you're from an OOP background already, ObjC shouldn't be too hard for you to learn... I got into it from BASIC. (Which I still regret having learned...)

    Can you really get deep into the system with just ObjC and Cocoa? I thought that always required you to be a hacker pretty much...
  8. Peebee thread starter macrumors newbie

    Aug 25, 2008

    There are alternatives though and there's one that interest me besides cocoa: FreePascal.
    You can compile applications for all operating systems with it.
    Interfacing wit C calls is no problem.
    This way, I could port the program to other operating systems also (Linux and Solaris)

    As for RAD, I don't expect any language to be the same as Delphi as it is Ultra-RAD. You have thousands of components available and you can write your own without problems. You can get a full GUI application that connects to an Oracle DB with all detailed table views in a few minutes.

    But this all is irrelevant here and I need a decision to make ...
    Most important is to know all OS-specific api calls to set/change/contol the OS and I hope that this is the best place to find this information.


  9. Cromulent macrumors 603


    Oct 2, 2006
    The Land of Hope and Glory
    The best place for that information is http://developer.apple.com/mac/ to be honest. While I'm sure people here would be only too happy to help out with specific problems, teaching the entirety of Mac OS X's APIs to you might be a little more than most members are prepared to do :).

Share This Page