What's your favourite RAD tool for OS X?

Discussion in 'Mac Programming' started by witness, Sep 27, 2005.

  1. witness macrumors 6502

    Joined:
    Apr 7, 2005
    Location:
    Austria
    #1
    I was just wondering what Tools/IDE's OS X developers here like to use for Rapid Application Development (apart from X Code)?

    I've had a play with RealBasic, which seem pretty cool, and of course there are loads of Java IDE's. Are there any others?

    I'm especially interested in those that compile to native machine code that don't require runtimes (like Mono or Java). Cross platform development would be good too, that's plus for RealBasic I guess.
     
  2. caveman_uk Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #2
    I've used both xcode/IB and realbasic. I'd say realbasic's is the easiest to pick up and use straight away as it took me a while to 'get it' with xcode and IB. The secret I think with xcode and IB is to learn not to fear the NIB ;)

    Although I think RealBasic's IDE is better I found the actual language lacking and sometimes very inefficient in an effort to be as easy as possible to use.

    Any IDE has got to be better than Visual C++ v6. Definately not RAD.
     
  3. witness thread starter macrumors 6502

    Joined:
    Apr 7, 2005
    Location:
    Austria
    #3
    I used VC++ for years, and I got on quite well with it.

    The thing that I don't like about X Code is that it's not strictly an IDE, the I is missing. You have you open all kinds of different tools to achieve different parts of the development process, which is not what I would call integrated.

    Perhaps I'm doing something wrong, but there must be a better way without having to resort to a VB clone.
     
  4. caveman_uk Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #4
    'all kinds of different tools'? Admittedly you are using a separate compiler, linker etc but apart from the jump between xcode to IB you'd hardly notice. xcode wraps the other tools. Indeed. I rarely quit IB when xcode is running so the transition is quick. It would be better if they were part of the one app but it's not a big deal. Xcode is aware of changes made by IB and if you change something in IB then go back to xcode you are prompted to save the changed nib(s) along with the source code files.
     
  5. witness thread starter macrumors 6502

    Joined:
    Apr 7, 2005
    Location:
    Austria
    #5
    Maybe I'll have to give X Code / IB a bit more time.
     
  6. logicat2001 macrumors regular

    Joined:
    Apr 16, 2003
    Location:
    Minneapolis, MN
    #6
    XCode is aware of changes made by IB because the IB generates the actual objects, not a code template from which those objects get generated later. The resulting nib file is the binary data that is used at run time.

    The consideration when bouncing between XCode and IB is how to add IBOutlets and IBActions. If you're starting from scratch and are clear on how you're going to design your class, you can easily add the outlets and actions in IB, then use IB to generate your class files, and finish the implementation in XCode. However, if you've already generated your class from IB, or are adding outlets and actions to a class whose header has already been added to a nib, or are writing an app that's anything more than a third-party tutorial, you've got a choice to make.

    Two options:
    - Hand code the new IBOutlets and IBActions, then prompt IB to re-read the file headers; all the new outlets and actions will now be visible in IB. To do this, I go to the Classes tab of my nib file, right-click the file in question and choose "Read name_of_file.h."

    - Use IB to add the new IBOutlets and IBActions and re-generate the source files. Upon selecting the save location for these files, you'll be prompted to overwrite or merge the code. Of course, if you've been busily writing code in XCode, you do not want to overwrite.

    Personally I prefer to poke IB with a stick and re-read my file headers. It's clean and simple, and completely non-destructive.

    Best,
    Anton
     
  7. HiRez macrumors 603

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #7
    You can also drag .h files from Xcode to your IB Nib window, I find this to be fastest (using Exposé with hot corners enabled, of course).
     
  8. logicat2001 macrumors regular

    Joined:
    Apr 16, 2003
    Location:
    Minneapolis, MN
    #8
    I know you can do this when first adding a class to the nib, but it doesn't work beyond that, i.e. after you've already added a class, instantiated an object from that class, and have now updated the original class .h.

    I just tried it to be sure, but wasn't able to update my class. Do you experience different behavior?

    Best,
    Anton
     
  9. HiRez macrumors 603

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #9
    Yes, drag-and-drop is actually the only way I ever do it. But, I always determine my outlets and actions in Xcode first, then transfer them to IB, never the other way (but I continue to update my Nibs in this way throughout development). I wonder if that has anything to do with it? Maybe going IB->Xcode blocks it out for some reason.
     
  10. caveman_uk Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #10
    Nope it always works for me when I add new outlets to a header. I just save the updated header then drag it across to the nib and the instance is updated. It doesn't work if you haven't saved the new header first. That's caught me out before.

    Also I never create headers in IB...always in xcode.
     
  11. caveman_uk Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #11
    What I originally meant was if you edit a nib in IB but haven't saved it, xcode will note that it's been changed but not saved and prompt you to save it. I don't know if IB does the ACTUAL saving but it is xcode that prompts...not IB.
     
  12. logicat2001 macrumors regular

    Joined:
    Apr 16, 2003
    Location:
    Minneapolis, MN
    #12
    Thanks to all for the comments; you've smoothed out my workflow! I can happily drag-and-drop over the course of a project, without issue.

    I apparently hadn't saved the file for my last attempt.

    Excellent,
    Anton
     

Share This Page