|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Thanks Shawn,
I've been studying this document you mentioned. It leads to a lot of new information... NSDocuments, undo, scripting, archivers, serialisers, window controllers...
Looks like I have a choice of:
1) Getting to grips with all that, which mostly means studying the API and finding a good tutorial. (I haven't found an NSDocument or NSUndoManager tutorial). I'm thinking when my model implements an NSCoder protocol, I'm still going to have to manually code references to each object variable! I'll have to refactor my design also because its all written around saving the interface the C way, generally my most despised task.
2) Just manually code references to a few object variables, and do it the C style way.
So really, if I wanted to get the job done, I'd use the C-style way. If I wanted to learn about Cocoa, I'd do it the Cocoa way. I think I'm going to do it the Cocoa way. I wonder why I can't find any tutorials on NSDocument, NSUndoManager and the rest? It seems there is a steep learning curve with the API at first.
| References: | |
| >Re: Simplifying this code? (From: "Theodore H. Smith" <email@hidden>) | |
| >Re: Simplifying this code? (From: Shawn Erickson <email@hidden>) | |
| >Re: Simplifying this code? (From: "Theodore H. Smith" <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.