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

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


  • Follow-Ups:
    • Re: MVC and NSBezierPath encoding?
      • From: "John C. Randolph" <email@hidden>
    • Re: MVC and NSBezierPath encoding?
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: howto mix objc/c++ in a nice way?
  • Next by Date: Fwd: Xcode 2.2 is now available
  • Previous by thread: Re: Using Objective-C From JavaScript
  • Next by thread: Re: MVC and NSBezierPath encoding?
  • Index(es):
    • Date
    • Thread