Re: setFrameUsingName , setFrameAutosaveName
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.