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 <ashc...@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 <ke...@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@lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>>
>
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to