Re: [MacRuby-devel] Is CoreText Fully Support

2010-10-17 Thread Matt Aimonetti
Hopefully the new BridgeSupport will help you solve this issue.

- Matt

On Thu, Oct 7, 2010 at 7:28 PM, dianhui nie  wrote:

> Ok. I'll do this later when i was home : )
>
> On Oct 8, 2010, at 10:17 AM, Laurent Sansonetti wrote:
>
> Hi,
>
> Could you reduce the problems to simple .rb scripts and attach them to a
> new ticket?
>
> We are working on a new version of BridgeSupport which will add missing
> metadata (I believe it will fix your CoreText problems), but we will need to
> verify.
>
> In the interim, you can wrap CoreText APIs in Objective-C classes, them
> call them from MacRuby directly.
>
> Laurent
>
> On Oct 7, 2010, at 7:41 AM, 聂殿辉 wrote:
>
> Hi
>  I'm doing some work with CoreText with macruby ,and i had some question
>
> 1.  CTline and some other `struct` does not have a ruby class ,the
> ctline.class is  __NSCFType
> , not like the CGRect struct,in macruby ,the class is CGRecct ,so i can
> reopen the class ,and add some help methods.
> 2.  the CTRunGetStringRange should return a CFRange but it return a class
> named Boxed
>
> can i wrap the CoreText in macruby ? and some suggestions ??
>
> thanks
> ___
> 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
>
>
>
> ___
> 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] Launch an app from the command line

2010-10-17 Thread corey johnson
On Sat, Oct 16, 2010 at 11:46 AM, Dave Baldwin
 wrote:
> Assuming you have a valid app then
>
> open name.app

That is where I'm running into problems. How do I compile my app into
a .app file without xcode or xcodebuild? I would think it should be
possible directly from the command line with the `macruby` command.

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-17 Thread Matt Aimonetti
MacRuby itself doesn't provide you with this feature, however you can look
into HotCocoa and see how it's done.

- Matt

On Sun, Oct 17, 2010 at 4:49 PM, corey johnson  wrote:

> On Sat, Oct 16, 2010 at 11:46 AM, Dave Baldwin
>  wrote:
> > Assuming you have a valid app then
> >
> > open name.app
>
> That is where I'm running into problems. How do I compile my app into
> a .app file without xcode or xcodebuild? I would think it should be
> possible directly from the command line with the `macruby` command.
>
> 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] Launch an app from the command line

2010-10-17 Thread Jeff Cohen
Hi Corey,

I could be wrong - I'm pretty new to MacRuby myself - but my understanding
is that MacRuby is an only an interpreter, equivalent to other Ruby
implementations.  To get a fully-compiled Mac binary, you still need to use
a compiler like XCode to generate a .app file.

Jeff

On Sun, Oct 17, 2010 at 6:49 PM, corey johnson  wrote:

> On Sat, Oct 16, 2010 at 11:46 AM, Dave Baldwin
>  wrote:
> > Assuming you have a valid app then
> >
> > open name.app
>
> That is where I'm running into problems. How do I compile my app into
> a .app file without xcode or xcodebuild? I would think it should be
> possible directly from the command line with the `macruby` command.
>
> 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] Launch an app from the command line

2010-10-17 Thread Dave Baldwin

On 18 Oct 2010, at 00:49, corey johnson wrote:

> On Sat, Oct 16, 2010 at 11:46 AM, Dave Baldwin
>  wrote:
>> Assuming you have a valid app then
>> 
>> open name.app
> 
> That is where I'm running into problems. How do I compile my app into
> a .app file without xcode or xcodebuild? I would think it should be
> possible directly from the command line with the `macruby` command.

Have a look at the rakefile here

/Developer/Examples/Ruby/MacRuby/Sketch/Rakefile 

This will show you what you need to do to make a MacRuby app without xcode.

Dave.


> 
> 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