[MacRuby-devel] [MacRuby] #824: Calls to #validateUserInterfaceItem: have no effect
MacRuby
ruby-noreply at macosforge.org
Thu Aug 5 16:15:12 PDT 2010
#824: Calls to #validateUserInterfaceItem: have no effect
---------------------------------+------------------------------------------
Reporter: mred@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords:
---------------------------------+------------------------------------------
Comment(by martinlagardette@…):
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="B16 at 0:4 at 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/>
More information about the MacRuby-devel
mailing list