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