• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
When and where to call [NSWindow setRestorationClass]?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Size of a file on disk
  • Next by Date: Calendar Groups in CalCalendarStore
  • Previous by thread: Re: Size of a file on disk
  • Next by thread: Calendar Groups in CalCalendarStore
  • Index(es):
    • Date
    • Thread