• 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
Re: MVC and NSBezierPath encoding?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >MVC and NSBezierPath encoding? (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Re: Closing alert sheet
  • Next by Date: Re: -[NSURL path] returning empty string for relative file URL
  • Previous by thread: Re: MVC and NSBezierPath encoding?
  • Next by thread: Fwd: Xcode 2.2 is now available
  • Index(es):
    • Date
    • Thread