Hi András,

From these two lines, I am guessing you are running on a 32-bits system :-).

The first warning, about NSATSGlyphGenerator, can be safely ignored. This is 
because MacRuby, when registering classes in the runtime, has no choice but to 
"wake-up" classes (like the ones in Cocoa that you import) for runtime sake. 
However, the NSATSGlyphGenerator is deprecated, and even though you are not 
using it, MacRuby wakes it up, which is why it is saying "hey! I should not be 
there !".
This has been reported to the appropriate team, and this warning should 
disappear "by itself" in the future with further updates of the system.

As for the NSPoint issue, this is a known 32-bits issue.
See: https://www.macruby.org/trac/ticket/415#comment:10
However this ticket has been closed, and the i386 issue with it.
If I remember correctly, 32 bits compatibility is not high priority right now, 
but if you really want, you can file a bug.
If you do, please do specify that you are on a 32 bits system :-)

-- 
Thibault Martin-Lagardette



On Nov 15, 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@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