#1010: NSPoint/CGpoint =>NaN --------------------------------------+------------------------------------- Reporter: zalavariandris@… | Owner: lsansonetti@… Type: defect | Status: new Priority: trivial | Milestone: MacRuby 0.8 Component: MacRuby | Keywords: NSPoint, CGPoint, 32Bit, NaN, NSEVent --------------------------------------+------------------------------------- Old description:
NSEvent.mouseLocation result in an NSPoint without the corresponding values. I have the same bug when getting the position of a CALayer.
irb(main):003:0> NSEvent.mouseLocation => #<NSPoint x=NaN y=NaN>
irb(main):007:0> layer=CALayer.new => #<CALayer:0x1b7a100> irb(main):008:0> layer.position => #<CGPoint x=NaN y=NaN>
Macruby 0.8 | Ruby 1.9.2 MacOSX 01.6.5 (32bit )
New description: NSEvent.mouseLocation result in an NSPoint without the corresponding values. I have the same bug when getting the position of a CALayer. {{{ irb(main):003:0> NSEvent.mouseLocation => #<NSPoint x=NaN y=NaN> irb(main):007:0> layer=CALayer.new => #<CALayer:0x1b7a100> irb(main):008:0> layer.position => #<CGPoint x=NaN y=NaN> }}} Macruby 0.8 | Ruby 1.9.2 MacOSX 01.6.5 (32bit ) -- Comment(by martinlagardette@…): From a comment from a closed bug: {{{ $> arch -i386 macruby -e 'framework "Cocoa"; p NSMakeSize(400, 400)' }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1010#comment:1> MacRuby <http://macruby.org/>