Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDocument as controller vs. as model



I've seen a couple different examples of a document based application under Cocoa. In some examples I see "NSDocument is the model", whereas in other examples I NSDocument as a controller to the model (model vs. model-controller").

Is this just a stylistic thing or is one way "more correct than the other"?

Thanks,

Brian




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.