Custom bindings in an IB palette
Custom bindings in an IB palette
- Subject: Custom bindings in an IB palette
- From: Hauke Klein <email@hidden>
- Date: Tue, 12 Oct 2004 16:26:24 +0200
I'm writing an Interface Builder palette for a custom class. This class
has a binding,
and I'm trying to use this binding in the bindings inspector in IB. The
class calls
+exposeBinding: in it's initialization code and the binding appears in
the inspector.
I'm able to open the tab, but immediately after changing a value the
tab disappears
and all entries in the inspector become disabled.
Using NSLog(), I can see that -bind:toObject:keyPath:options: is
called, in fact
it's called two times, both times immediately followed by -unbind:, but
that's
probably normal. Everything works as expected when the binding is done
in
code, so IB seems to expect something I don't know about. The
controller object
of the binding is a NSArrayController, this seems to be important but I
don't know
why.
Unfortunately, the usual palette examples do not include objects with
custom
bindings. Does anybody know about some example code for IB palettes with
bindings, and it is even possible to have something like the 'value'
binding
of NSTableColumn for custom classes?
Thanks for your patience, Hauke.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden