On Oct 1, 2011, at 15:14 , Nick wrote:

> Unfortunately I do not have Apple developer's account.

When I try to access the videos while logged out, it offers a free "Apple 
Developer" registration, which is apparently different from a "Mac Developer" 
or "iOS Developer" registration, both of which are paid. It's all a bit 
confusing, but you might be able to sign up to see the videos without having to 
pay anything.

> Do I understand correctly that this kind of behavior can be achieved only by 
> encoding/decoding every element of NSDocument manually in these methods I 
> described in the original post?

There's no secret freeze-dried document state that can be used to restore 
everything automatically. Certain properties that are known at the NSDocument 
level, such as the window size and position and the file URL, will get 
remembered automatically. Some of your document's state, that which you 
normally save with the document, will get "restored" because the document is 
being re-opened. Everything else you have to encode yourself in one of the 
'encodeRestorableStateWithCoder' methods.

What other possible approach did you have in mind? Cocoa can't tell the 
difference between app-specific [#1] transient non-restorable state, [#2] 
persistent document state, and [#3] non-document restorable state. The document 
file gives you #2; the NSWindowRestoration.h methods give you #3; everything 
else is #1.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to