From: Wolfgang K. <kit...@ka...> - 2010-03-19 07:45:39
|
I run into an other challenge with the bridge: When initializing a subclass of NSViewController, the bridge claims, that super:initWithNibName:bundle: is a missing method. Here an sample irb session: >> require 'osx/cocoa' => true >> include OSX => Object >> class VC < NSViewController >> def init >> super_initWithNibName_bundle('dummy',nil) >> end >> end => nil >> vc = VC.alloc.init OSX::OCMessageSendException: Can't get Objective-C method signature for selector 'super:initWithNibName:bundle:' of receiver #<VC:0x8093c60c class='VC' id=0x101edeb30> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `ocm_send' from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `method_missing' from (irb):5:in `init' from (irb):8 >> I can verify the presence of the initWithNibName:bundle: method >> VC.superclass => OSX::NSViewController >> VC.objc_instance_methods.sort ...,"infoForBinding:", "init", "initWithCoder:", "initWithNibName:bundle:", "insertText:",... What is my fault? Best regards Wolfgang Kittenberger |