U
Une bévue
i'm starting within RubyCocoa, although i've been using Cocoa-Java, i
want to setup the items of an NSPopUpButton programmatically.
the related named ib_outlets is called ":choixTheme"
if i list all the associated methods by :
[email protected]
ctmethods.each { |m| p "choixTheme #{m}"}
i never get even the "titleOfSelectedItem" nor "indexOfSelectedItem"
why ?
if i try :
@choixTheme.addItem("Unbelievable")
i get an error :
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/ob
jc/oc_wrapper.rb:17:in `NSApplicationMain': NSApplicationMain -
RBException_OSX::OCMessageSendException - NSPopUpButton#addItem: -
methodSignature is nil. (OSX::OCException)
then, what's the correct way to setup all the items of a NSPopUpButton
programmatically ?
want to setup the items of an NSPopUpButton programmatically.
the related named ib_outlets is called ":choixTheme"
if i list all the associated methods by :
[email protected]
ctmethods.each { |m| p "choixTheme #{m}"}
i never get even the "titleOfSelectedItem" nor "indexOfSelectedItem"
why ?
if i try :
@choixTheme.addItem("Unbelievable")
i get an error :
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/ob
jc/oc_wrapper.rb:17:in `NSApplicationMain': NSApplicationMain -
RBException_OSX::OCMessageSendException - NSPopUpButton#addItem: -
methodSignature is nil. (OSX::OCException)
then, what's the correct way to setup all the items of a NSPopUpButton
programmatically ?