• 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: setFrameUsingName , setFrameAutosaveName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setFrameUsingName , setFrameAutosaveName


  • Subject: Re: setFrameUsingName , setFrameAutosaveName
  • From: James DiPalma <email@hidden>
  • Date: Fri, 13 Sep 2002 10:21:12 -0400

You might have trouble if your document window uses an NSWindowController. My projects follow Ondra's suggestions and they save/restore a window's frame correctly.

NSWindowController has its own/duplicate method of setting window frame names. From memory, NSBundle causes an NSWindow to get initialized, setting its autosave name; then, in setWindow: or something NSWindowController overwrites that autosave name (potentially with a @"").


-jim


Ondra Cada:

Andreas Mayer:
This worked for me in an other project:

[documentWindow setFrameAutosaveName:@"SomeWindow"];
[documentWindow setFrameUsingName:@"SomeWindow"];

Haven't tried in 10.2, but (a) it should work without the second line just as well, (b) if you set the window name in IB, it should work without any code at all.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: setFrameUsingName , setFrameAutosaveName
      • From: "Tony S. Wu" <email@hidden>
References: 
 >Re: setFrameUsingName , setFrameAutosaveName (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: NSUserDefaults and NSArray
  • Next by Date: Re: Exception handling: confused by syntax
  • Previous by thread: Re: setFrameUsingName , setFrameAutosaveName
  • Next by thread: Re: setFrameUsingName , setFrameAutosaveName
  • Index(es):
    • Date
    • Thread