[MacRuby-devel] Including Bridge Support into App

James Chen ashchan at gmail.com
Fri Feb 24 16:05:22 PST 2012


Sorry Kevin,

The above code was actually loading extra bridge support file (Security in
this case). I have misunderstood your question.

Guys I'm very sorry about this interruption.

James

On Sat, Feb 25, 2012 at 8:19 AM, James Chen <ashchan at gmail.com> wrote:

> Kevin,
>
> Even with the -bs option, MacRuby app might still not be able to load the
> bridge support preview properly on 10.6. Here's what I do for Gmail Notifr:
>
>
> dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
>
>
> load_bridge_support_file "#{dir_path}/BridgeSupport/Security.bridgesupport" if NSAppKitVersionNumber < 1138
>
>
> 1138 is the version number for 10.7, on which it doesn't have problem.
>
> The above lines are put in rb_main.rb file. You can see the full file if
> interested:
>
>  https://github.com/ashchan/gmail-notifr/blob/master/rb_main.rb
>
> Hope this works for you.
>
> Cheers,
> James
>
> On Sat, Feb 25, 2012 at 4:56 AM, Kevin Colyar <kevin at colyar.net> wrote:
>
>> Anyone know if there's a way to include Bridge Support Preview 3 into my
>> MacRuby app so users before 10.7 doing need to install Bridge
>> Support separately?
>>
>> --
>> Kevin Colyar
>> http://kevin.colyar.net
>>
>>
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20120225/4c2560f9/attachment-0001.html>


More information about the MacRuby-devel mailing list