[Impromptu] NSTableview in Impromptu

Andreas Körner andi at jaak.de
Thu Sep 24 11:44:44 GMT 2009


Okay, I continued testing:

Using an ArrayController with a NSPopupButton worked particularly:

(define *popup* (objc:call *content-view* "viewWithTag:" 2))
(objc:call *popup* "unbind:" "content")
(objc:call *popup* "bind:toObject:withKeyPath:options:" "content"  
*arrayController* "arrangedObjects" 0)

did work, but did not display any text (logical). binding contentArray  
to "arrangedObjects.song" did not work raising the same error...

(objc:call *popup* "bind:toObject:withKeyPath:options:" "contentArray"  
*arrayController* "arrangedObjects.song" 0)
:ERROR: [<NSPopUpButton 0x1004570> valueForUndefinedKey:]: this class  
is not key value coding-compliant for the key Value.

Now, do I completely misunderstand cocoa Bindings?

A Simple Test with

(define dict (objc:list->nsdictionary (list (cons "a" "b") (cons "c"  
"d"))))
(print (objc:call dict "valueForKey:" "a"))

worked as expected (returning "b")

What am I making wrong???
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.moso.com.au/pipermail/impromptu/attachments/20090924/a1297f92/attachment.htm 


More information about the Impromptu mailing list