From: Jonathan P. <jp...@dc...> - 2005-06-01 11:27:43
|
On 31 May 2005, at 15:59, Mark Hubbart wrote: > def toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar > (toolbar, itemid, insert) > if itemid == "install item toolbar item" > Does this code work? The condition above is likely to always be false, since itemid is an NSString, not a ruby string: irb> "Foo" == "Foo" => true irb> OSX::NSString.stringWithString("Foo") == "Foo" => false irb> OSX::NSString.stringWithString("Foo").to_s == "Foo" => true |