On 7/23/12 5:42 PM, Fritz Anderson wrote:
Perhaps I'm missing something — is writing the preferences file very
time-consuming? If not, why not write it whether you need to or not? Or
whenever a preferences value changes, which is what you'd do with
NSUserDefaults?

Thanks for your suggestion. Writing is fast, so I guess I could write in -close. I'd prefer not to write if it's not necessary and it seems I can detect that case reliably because -canCloseDocumentWithDelegate::: will be called if there are unsaved changes and -close is called from within -canCloseDocumentWithDelegate::: in that case. That could break in the future, though.

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to