• 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
Re: NSWindow AutoSave
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSWindow AutoSave (From: koko <email@hidden>)

  • Prev by Date: Re: NSWindow AutoSave
  • Next by Date: Re: sandbox question about copying from bundle
  • Previous by thread: Re: NSWindow AutoSave
  • Next by thread: Lion permission problems
  • Index(es):
    • Date
    • Thread