Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SkyStreak

macrumors newbie
Original poster
Jun 13, 2007
4
0
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?
 

Krevnik

macrumors 601
Sep 8, 2003
4,101
1,312
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.