Running a program not in a bundle.

Discussion in 'Mac Programming' started by SkyStreak, Jun 15, 2007.

  1. SkyStreak macrumors newbie

    Joined:
    Jun 13, 2007
    #1
    For a few reasons, during the development phase, I'd like to run my program without it being in a bundle. There are 2 problems I've run into when doing this. 1) I can't modify the top menubar. Either by setting the NSMenu directly or loading a NIB. 2) I can't get mouseMove events. Mouse button and drag events work fine. MouseMove is hosed.

    The above work fine if I run the program from a bundle.

    So. Is there something I can do in my code to make things work when not run from a bundle?
     
  2. Eraserhead macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #2
    Why? What's wrong with Building the full application?
     
  3. Krevnik macrumors 68040

    Krevnik

    Joined:
    Sep 8, 2003
    #3
    Another question is why do you expect it to work at all? Especially from Cocoa which is a more complete framework?

    Cocoa has built-in functionality that depends on the bundle your app is in. If it isn't in a bundle, stuff will be broken unless you override parts of the Cocoa framework which is nasty, nasty business.
     

Share This Page