Using Lion's "Resume" for storing the last application state
Using Lion's "Resume" for storing the last application state
- Subject: Using Lion's "Resume" for storing the last application state
- From: Nick <email@hidden>
- Date: Sat, 01 Oct 2011 19:18:08 +0300
Hello
Are there any simple examples available that demonstrate how to use
NSWindowRestoration protocol?
What I am trying to do is to create a simple NSDocument based application
with an NSTextView and a button to set the textview's background color. When
the application is quit and launched again, I need the windows to be placed
"where they were", the text entered into NSTextView be the same as it was,
and the color of NSTextView be the same as it was before the app was closed.
By default, only windows' positions/sizes are preserved. How can I
preserve/restore the text and the color of NSTextView?
Thank you!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden