say want add method somewhere allows parsing of nsstring nscolor, method printing out nscolor nsstring; nsstrings have same syntax of svg's color attribute. should adding these 2 methods? should write new class "nscolorparser" , "nscolorprinter" , add methods there or create new category nscolor, adding methods "colorfromsvgattribute:" , "svgattributevalue"?
wherever makes sense you. should class methods if on utility class. seems factory on nscolor reasonable getting nscolor nsstring. if adding these nscolor, instance method nsstring representation work fine. make sure autorelease objects return if use names in post.
-lee
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment