Installers for Cocoa Applications

Discussion in 'Mac Programming' started by vnraju, Oct 22, 2007.

  1. vnraju macrumors newbie

    vnraju

    Joined:
    Jun 27, 2007
    #1
    hi.....can anyone help.......how we can create installers for our cocoa apps.......
    any suggetions will be appreciated......
    thanx in advance.......
     
  2. MongoTheGeek macrumors 68040

    MongoTheGeek

    Joined:
    Sep 13, 2003
    Location:
    Its not so much where you are as when you are.
    #2
    Most cocoa apps shouldn't need installers. Just create a disk image for the users to drag and drop. Installers always make me edgy.

    If you really want to build an installer take a look at PackageMaker. It is in the developer tools, under utilities.
     
  3. valiar macrumors regular

    Joined:
    Mar 14, 2006
    Location:
    Washington, DC
    #3
    Best (and properly written) Cocoa apps should *not* need an installer.
    Avoid using one if you can at all...
     
  4. MongoTheGeek macrumors 68040

    MongoTheGeek

    Joined:
    Sep 13, 2003
    Location:
    Its not so much where you are as when you are.
    #4
    Only reason I can think that you would want one is to install a shared framework that is used by a bunch(5+) applications, or fonts perhaps.
     
  5. Krevnik macrumors 68030

    Krevnik

    Joined:
    Sep 8, 2003
    #5
    In which case, this is still a bad idea, IMO.

    Shared frameworks that aren't externally maintained are a recipie for trouble if you try to install them yourself. This is why most devs will just ship a copy of a library with each product to know that Product A can use v1 of the framework, and Product B can use v2, and won't accidentally cause problems with Product A.
     
  6. MongoTheGeek macrumors 68040

    MongoTheGeek

    Joined:
    Sep 13, 2003
    Location:
    Its not so much where you are as when you are.
    #6
    I was thinking of a company like PlayFirst with a number of different games built on the same engine, or the old infocom games.

    Yes, every game would ship with the engine, but the installer would check to see if the version of the engine installed is at least X.

    Its less important now-adays because the media attached to the games outbulks the games themselves.
     
  7. Krevnik macrumors 68030

    Krevnik

    Joined:
    Sep 8, 2003
    #7
    Wasn't even important in the Infocom games where the app itself was the interpreter with a resource in the resource fork for the interpreted game data.

    And since you can store frameworks in the app bundle, installers should be avoided, even if you have libraries.
     
  8. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #8
    This is what Apple does with iWork. Keynote, Numbers, and Pages all have the same frameworks within their app bundles.
     

Share This Page