#824: Calls to #validateUserInterfaceItem: have no effect
---------------------------------+------------------------------------------
 Reporter:  m...@…               |       Owner:  lsansone...@…        
     Type:  defect               |      Status:  new                  
 Priority:  minor                |   Milestone:                       
Component:  MacRuby              |    Keywords:                       
---------------------------------+------------------------------------------

Comment(by martinlagarde...@…):

 I confirm the problem is BridgeSupport.

 To work around this problem, you can either use `nil` instead of false, or
 you can use this additional BridgeSupport file that adds support for
 `validateUserInterfaceItem:`

 '''NSUserInterfaceValidations.bridgesupport''':
 {{{
 #!xml
 <?xml version="1.0"?>
 <!DOCTYPE signatures SYSTEM
 "file://localhost/System/Library/DTDs/BridgeSupport.dtd">
 <signatures version="0.9">
   <depends_on path="/System/Library/Frameworks/AppKit.framework"/>
   <informal_protocol name="NSUserInterfaceValidations">
     <method type="b...@0:4...@8" selector="validateUserInterfaceItem:"/>
   </informal_protocol>
 </signatures>
 }}}

 Then in your main.rb, add the `load_bridge_support_file` function call:

 {{{
 #!ruby
 # [...]
 $:.unshift File.expand_path("#{root}")

 # Workaround for #validateUserInterfaceItem:
 
load_bridge_support_file(root.stringByAppendingPathComponent('NSUserInterfaceValidations.bridgesupport'))
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/824#comment:9>
MacRuby <http://macruby.org/>

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to