Re: MVC and NSBezierPath encoding?
Re: MVC and NSBezierPath encoding?
- Subject: Re: MVC and NSBezierPath encoding?
- From: "John C. Randolph" <email@hidden>
- Date: Fri, 11 Nov 2005 05:43:57 -0800
On Nov 10, 2005, at 12:25 PM, Andrew Merenbach wrote:
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?
I don't think I quite understand your question. When you archive any
instance, you have to send [super encodeWithCoder:] first. What do
you mean by "only the data for the items"?
-jcr
John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.
_______________________________________________
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