Re: NSWindow AutoSave
Re: NSWindow AutoSave
- Subject: Re: NSWindow AutoSave
- From: Charlie Dickman <email@hidden>
- Date: Fri, 22 Jun 2012 13:44:47 -0400
I don't know that this is a secret recipe but it works for me when I include the following 2 lines of code in the awakeFromNib method of the NSview in the window...
[[self window] setFrameUsingName: @"autosaveView"];
[[self window] setFrameAutosaveName: @"autosaveView"];
And I don't know that it's significant but in the init method for the same NSView I declare and initialize the standard defaults.
On Jun 22, 2012, at 12:10 PM, koko wrote:
> I have searched, read and implemented the suggestions found but in no case can I get a non-resizeable window or panel to open in the last position it occupied.
>
> There must be some secret sauce, is anyone willing to share the recipe?
>
> -koko
> _______________________________________________
>
> 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
Charlie Dickman
email@hidden
_______________________________________________
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