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 protected]) 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 [email protected]
