Binding to NSPoint
Binding to NSPoint
- Subject: Binding to NSPoint
- From: Colin Cornaby <email@hidden>
- Date: Fri, 5 Jan 2007 08:57:18 -0800
Hi,
I'm trying to figure out what is the best way to bind to an NSPoint.
So far I've come up with two ideas:
1) Subclass NSValue. Create a NSValue subclass from an NSPoint, and
then have point specific accessors and mutators in the NSValue
subclass for x and y, and then bind to the corresponding key paths.
2) Create an NSValue from the NSPoint. Then have two custom
NSValueTransformers, one for x, one for y. I'm not sure how I could
create an NSValueTransformer for both x and y in the same subclass.
I'm sure someone else has run into this. What's the cleanest way of
going about this?
Thanks,
Colin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden