Re: Custom NSView subclass + binding in IB
Re: Custom NSView subclass + binding in IB
- Subject: Re: Custom NSView subclass + binding in IB
- From: Tim Lucas <email@hidden>
- Date: Tue, 15 Feb 2005 16:23:28 +1100
On 15/02/2005, at 3:57 PM, Daniel Yankowsky wrote:
Hi all!
I'm relatively new to Cocoa programming. I'm trying to mess with
Cocoa bindings.
uh oh
I have a custom subclass of an NSView. I want to bind a slider in
my window to a property that I created of that view called "hue".
However, I can't seem to convince IB to display this property in the
bindings inspector page.
You missed mmalc's list resources post by 1 minute. Its not easy, but
check out the "Graphics Bindings" example here:
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
I have read some allusions to the fact that you need to create an IB
Palette to show bindings for a custom NSView subclass in IB. Is this
true? If so, isn't that pretty lame?
You don't need to do that... though it isn't simple (let alone easy).
See "Graphics Bindings" above (specifically JoystickView.m)
- tim lucas
http://www.toolmantim.com
_______________________________________________
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