[MacRuby-devel] Launch an app from the command line

2010-10-16 Thread corey johnson
I'm trying to figure out how to launch a macruby app (with a cocoa UI)
from the command line without relying on xcode or xcodebuild. The
problem i'm running into is that the NSBundle.mainBundle is not being
set when I run the app from the command line. I've tried using this:

macruby -C. myApp.rb

But that doesn't set the bundle to the current directory and I get this error:

No Info.plist file in application bundle or no NSPrincipalClass in
the Info.plist file, exiting

Is it possible to run a macruby app from the command line? Should I be
using macrubyc to do this?

Thanks,
Corey
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Launch an app from the command line

2010-10-16 Thread Dave Baldwin

On 16 Oct 2010, at 19:04, corey johnson wrote:

> I'm trying to figure out how to launch a macruby app (with a cocoa UI)
> from the command line without relying on xcode or xcodebuild. The
> problem i'm running into is that the NSBundle.mainBundle is not being
> set when I run the app from the command line. I've tried using this:
> 
>macruby -C. myApp.rb
> 
> But that doesn't set the bundle to the current directory and I get this error:
> 
>No Info.plist file in application bundle or no NSPrincipalClass in
> the Info.plist file, exiting
> 
> Is it possible to run a macruby app from the command line? Should I be
> using macrubyc to do this?
> 

Assuming you have a valid app then 

open name.app

will run the the named app from the command line.  e.g.

open mail.app

will run the mail app the same as double clicking on the icon.

Dave.



> Thanks,
> Corey
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] NSArray constructor broken?

2010-10-16 Thread Perry E. Metzger
On Fri, 15 Oct 2010 16:30:58 -0700 Laurent Sansonetti
 wrote:
> Hi Perry,
> 
> The fix will ship in the next release (likely 0.8). As it may not
> happen soon, I recommend to grab a nightly build in the meantime.

It would seem to be significant enough a bug to patch in the released
version, wouldn't it?

Perry
--
Perry E. [email protected]
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel