On Aug 1, 2016, at 7:09 PM, Alex Kac <[email protected]> wrote:
> 
> I have a popover that can be detached and turned into a window. When the 
> window is resized, its size/position is saved. Great! However I want the 
> popover to be the same size as the detached window when the user reopens that 
> popover. 
> 
> Is there safe/compatible code to read in a window’s auto-save size so I can 
> apply it to another window?

-[NSWindow setFrameUsingName:]

If you need it, there's also the frameAutosaveName to query a window's frame 
autosave name.

Cheers,
Ken


_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to