[MacRuby] #1114: Unable to use CATextLayer.font= which expects a CFTypeRef
MacRuby
ruby-noreply at macosforge.org
Thu Jan 13 15:32:10 PST 2011
#1114: Unable to use CATextLayer.font= which expects a CFTypeRef
-------------------------------------+--------------------------------------
Reporter: eloy.de.enige@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.9
Component: MacRuby | Keywords:
-------------------------------------+--------------------------------------
This is with BS preview 2.
{{{
% macirb
irb(main):001:0> framework 'QuartzCore'
=> true
irb(main):004:0> framework 'AppKit'
=> true
irb(main):005:0> font = NSFont.systemFontOfSize(NSFont.systemFontSize)
=> #<NSFont:0x200b25300>
irb(main):006:0> layer = CATextLayer.new
=> #<CATextLayer:0x200b22f80>
irb(main):007:0> layer.font = font
TypeError: expected instance of Pointer, got `#<NSFont:0x200b25300>'
(NSFont)
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1114>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list