[MacRuby-devel] NSEvent MacRuby (updated)

Eloy Duran eloy.de.enige at gmail.com
Fri Nov 19 12:52:11 PST 2010


Just to be sure, did you receive Thibault's response? http://lists.macosforge.org/pipermail/macruby-devel/2010-November/006424.html

On 19 nov 2010, at 21:48, András Zalavári wrote:

> Hi, thanks for the reply!!!
> I1m using 
> MacOS1.6.3 &
> MacRuby 1.7.1
> And yes I have install Bridge Support preview. The funny thing is thet with tha same version, system, etc the code is working on my iMac. but still does not on my macbook. 
> 
> Abny idea or suggestions? how to fix.
> 
> On Tue, Nov 16, 2010 at 7:47 PM, Eloy Duran <eloy.de.enige at gmail.com> wrote:
> You can check which macruby version you have, like so:
> 
> % macruby -v
> MacRuby 0.8 (ruby 1.9.2) [universal-darwin10.0, x86_64]
> 
> Also:
> * which OS versions do you have?
> * did you install the BridgeSupport preview pkg?
> 
> Eloy
> 
> On 15 nov 2010, at 13:51, András Zalavári wrote:
> 
>> (I'm not sure if the previous mail was sent otherwise sorry for the multiple posts)
>> 
>> Hello, I'm new to MacRuby. I found an unexpected behavior of NSEvent.
>> 
>> first of all in Cocoa [NSEvent mouseLocation] would return an NSPoint, with the mouse position. MacRuby NSEvent.mouseLocation return an NSPoint, but without the appropriate values.
>> 
>> 
>> irb(main):001:0> framework 'cocoa'
>> 2010-11-15 13:45:35.880 macruby[669:903] +[NSATSGlyphGenerator initialize] invocation.  The class is deprecated.
>> => true
>> irb(main):002:0> NSEvent.mouseLocation
>> => #<NSPoint x=NaN y=NaN>
>> 
>> 
>> 
>> it does not even work within a mouseUp method, with an NSEvent instance.
>> 
>> I tried the same code on an iMac, and it returns the appropriate code, as a CGPoint.
>> so there must be differences between the two.
>> I even got this warning Message NSATSGlyphGenerator on the MacBook, which I dont on the iMac
>> 
>> Please help figure out the solution!
>> 
>> 
>> Thanks
>> Andras Zalavari
>> 
>> 
>> 
>> I'm using  Macbook, and MacRuby 7.0... or 7.1?
>> how to check the version of MacRuby
>> 
>> t?
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> 
> _______________________________________________
> 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/20101119/231fe98d/attachment.html>


More information about the MacRuby-devel mailing list