[MacRuby-devel] programatic binding (undefined bind method on NSTextField)

Alex Greif alex at greifdesign.net
Tue Sep 27 14:29:18 PDT 2011


The following code prints false twice
So it seems that the protocol is not applied correctly.
Is this a bug or do I need some other require/framework statements?
BTW the result is the same if i use "framework 'Cocoa'"

-------- code -------------
framework 'AppKit'

puts NSObject.alloc.init.conformsToProtocol
Protocol.protocolWithName('NSKeyValueBindingCreation')

puts NSTextField.alloc.initWithFrame([1,2,3,4]).conformsToProtocol
Protocol.protocolWithName('NSKeyValueBindingCreation')





More information about the MacRuby-devel mailing list