• 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: "Tony S. Wu" <email@hidden>
  • Date: Fri, 13 Sep 2002 07:38:28 -0700

Nope.
I don't use NSWindowController on my document window.
I control it with my controller, which inherits from NSDocument.
However, I think even if you use NSWindowController it should work fine as
well.

Tony S. Wu
email@hidden

"Nope, this world ain't perfect. But at least I know it's not because of
me."


James DiPalma at email@hidden wrote:

> 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.
_______________________________________________
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.

References: 
 >Re: setFrameUsingName , setFrameAutosaveName (From: James DiPalma <email@hidden>)

  • Prev by Date: Re: No regions, reason for Cocoa's inefficient window resizing?
  • Next by Date: Re: Exception handling: confused by syntax
  • Previous by thread: Re: setFrameUsingName , setFrameAutosaveName
  • Next by thread: No regions, reason for Cocoa's inefficient window resizing?
  • Index(es):
    • Date
    • Thread