When and where to call [NSWindow setRestorationClass]?
When and where to call [NSWindow setRestorationClass]?
- Subject: When and where to call [NSWindow setRestorationClass]?
- From: Oleg Krupnov <email@hidden>
- Date: Thu, 01 Sep 2011 18:23:30 +0300
Hi,
I am implementing the Lion's User Interface Preservation, and must be
overlooking something. The Mac OS X Application Programming Guide
says:
"Every window is expected to identify a class that knows about the
window and can act on its behalf at launch time. This class is known
as the restoration class of the window and its job is to do whatever
is necessary to create the window when asked to do so by Cocoa."
I looked into Interface Builder, but couldn't find it.
There is -[NSWindow setRestorationClass:] method for this, but when
and where should I call it from code?
What is the recommended way of doing this?
Thanks.
_______________________________________________
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