[MacRuby-devel] NSEvent MacRuby (updated)

Eloy Duran eloy.de.enige at gmail.com
Tue Nov 16 10:47:48 PST 2010


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20101116/cdd1dd8a/attachment.html>


More information about the MacRuby-devel mailing list