(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?
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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
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@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@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
Just to be sure, did you receive Thibault's response? http://lists.macosforge.org/pipermail/macruby-devel/2010-November/006424.htm... 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@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@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
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
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
Well... Yes my macbook is a 32 bit system... So there not going to be a solution fro my problem in the near future. Anyway I made a kind of workaround... Thank you for your help! anyway I hope the bug will be solved.
Hi Andras, Let's try to get this fixed in the upcoming release. Could you file a ticket in our trac? (if not already done, I just had a quick glance at it so far). Thanks, Laurent On Nov 21, 2010, at 7:49 AM, András Zalavári wrote:
Well... Yes my macbook is a 32 bit system... So there not going to be a solution fro my problem in the near future. Anyway I made a kind of workaround...
Thank you for your help! anyway I hope the bug will be solved.
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
To fix it would be so nice, becouse it come out at so many places in my code, that deals with the mouse. I have the same problem with getting the position of a CALayer. So it must be connected with CGPoint/NSPoint as Thibault sad I send the bug on the tracker. Thans a lot!!!!!
Hi Andras, I think the problem is fixed in trunk, as r4952. Please give it a try or tonight's nightly build and let me know if it works for you. We don't test MacRuby very well for i386, this explains that the issue has not been found before. Laurent On Nov 25, 2010, at 3:57 AM, András Zalavári wrote:
To fix it would be so nice, becouse it come out at so many places in my code, that deals with the mouse. I have the same problem with getting the position of a CALayer. So it must be connected with CGPoint/NSPoint as Thibault sad
I send the bug on the tracker.
Thans a lot!!!!! _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hi Laurent! I have downloaded the nightly build, and it works perfectly! Thank you very much. It's nice to have a great support behind MacRuby. It feels much better to rely on a product that has this fast responsible support. Thanks a lot! Andras
participants (4)
-
András Zalavári
-
Eloy Duran
-
Laurent Sansonetti
-
Thibault Martin-Lagardette