#767: Some minor issues with framework constants
----------------------------+-----------------------------------------------
Reporter: jazz...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: minor | Milestone: MacRuby 0.7
Component: MacRuby | Keywords:
----------------------------+-----------------------------------------------
Issue 1:
{{{
$ macruby -e "framework 'AddressBook'; p KABEmailMobileMeLabel"
unknown: [BUG] cannot locate symbol for BridgeSupport constant
`kABEmailMobileMeLabel'
MacRuby 0.7 (ruby 1.9.2) [universal-darwin10.0, x86_64]
Abort trap
}}}
I think that's because this constant is defined in the Mac OS X v10.6 SDK
only.
Issue 2:
{{{
$ macruby -e "framework 'Foundation'; p KCFAllocatorUseContext"
Segmentation fault
}}}
I ran into this when iterating over the constants in a framework:
{{{
oc = Object.constants
framework 'Foundation'
(Object.constants - oc).each do |c|
puts "#{c} = #{eval(c).inspect}"
end
}}}
In MacRuby 0.5 KCFAllocatorUseContext isn't accessible!
--
Ticket URL: <http://www.macruby.org/trac/ticket/767>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel