• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Binding to NSPoint
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Crash from deep in quartz
  • Next by Date: NSURLDownload resumeData
  • Previous by thread: Crash from deep in quartz
  • Next by thread: NSURLDownload resumeData
  • Index(es):
    • Date
    • Thread