MVC and NSBezierPath encoding?
MVC and NSBezierPath encoding?
- Subject: MVC and NSBezierPath encoding?
- From: Andrew Merenbach <email@hidden>
- Date: Thu, 10 Nov 2005 12:25:10 -0800
I have a program that displays polygons in a view. The user can
rotate these polygons, resize them, change their colours, and change
their line widths. I created my polygon class--GMPolygon--as a
subclass of NSBezierPath, and this has been marvellous: I extended
the features; added rotation and vertex methods; and added more
methods for calculations (angle sum, et cetera). Saving to a file
has proven relatively painless, but I am wondering whether I am going
about it the right way.
Would a proper coding pattern for this project have only the data for
the items encoded, rather than NSBezierPath subclasses?
Many thanks,
Andrew
_______________________________________________
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