[MacRuby-devel] [MacRuby] #767: Some minor issues with framework constants

MacRuby ruby-noreply at macosforge.org
Wed Jun 30 01:49:37 PDT 2010


#767: Some minor issues with framework constants
----------------------------+-----------------------------------------------
 Reporter:  jazzbox@…       |       Owner:  lsansonetti@…        
     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/>



More information about the MacRuby-devel mailing list