[Rubycocoa-devel 726] can't access fields of a CFRange object

Back to archive index

Fujimoto Hisa hisa****@fobj*****
Thu Feb 8 11:47:46 JST 2007


Hi

found a bug to access a field of a structure.

irb(main):011:0> x = OSX::CFRange.new(3,4)
=> #<OSX::CFRange:0x45d46c>
irb(main):012:0> x.location
RuntimeError: Can't retrieve data for field 'location'
	from (irb):12:in `location'
	from (irb):12
irb(main):013:0> x = OSX::NSRange.new(3,4)
=> #<OSX::NSRange:0x4592cc>
irb(main):014:0> x.location
=> 3
irb(main):015:0>

metadata in CoreFoundation.xml seems good.

   <struct name='CFRange' encoding='{? 
=&quot;location&quot;i&quot;length&quot;i}'/>

thanks
--
hisa




More information about the Rubycocoa-devel mailing list
Back to archive index