Window Identifier on Restoration
Window Identifier on Restoration
- Subject: Window Identifier on Restoration
- From: Dong Feng <email@hidden>
- Date: Sun, 18 Dec 2011 21:42:30 +0800
The document says:
When re-creating each window, Cocoa passes the window’s unique identifier
string to the restoration class. You are responsible for assigning
identifier strings to your windows prior to preserving the window state.
Your restoration class can use these identifiers to determine which window
and associated objects it needs to re-create. The contents of an identifier
string can be anything you want but should be something to help you
identify the window later. For example, you might assign the string
“preferences” as the unique identifier of your application’s preferences
window.
But what's the API to assign a unique ID to a window?
Thanks,
Dong
_______________________________________________
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