Re: Providing bindings support
Re: Providing bindings support
- Subject: Re: Providing bindings support
- From: Scott Anguish <email@hidden>
- Date: Mon, 15 Dec 2003 03:41:33 -0500
On Dec 15, 2003, at 1:49 AM, Chris Hanson wrote:
Does anyone know of any documentation that will give you a crash
course on making a view that supports bindings. I'm actually just
subclassing an nstextview and would like to add some additional
bindings but am unsure how to do so.
In your NSTextField subclass itself, you'll need to use a +initialize
class method to register your bindings with
+[NSObject(NSKeyValueBindingCreation) exposeBinding:].
You'll also have to create an Interface Builder palette containing
your NSTextField subclass. This is because there's currently no other
way (to my knowledge anyway) to tell Interface Builder that a class
has a particular binding.
This is correct, you need to make a palette and ensure that it is
loaded.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.