cascading documents
cascading documents
- Subject: cascading documents
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Tue, 8 Oct 2002 17:31:12 +0200
I have a document based application.
Setting the Auto Save Name in InterfaceBuilder does not work for
document windows.
This is ok, as there will probably be many document windows, so it is
not clear, which one should put its position into the defaults database.
So I do in my windowControllerDidLoadNib: method:
[ documentWindow setFrameAutosaveName: @"Some Name" ]
this works ok (of course only for the first window).
But sometimes (and I can not figure out, when and why) the
NSWindowController _windowDidLoad method then calls
cascadeTopLeftFromPoint: which then puts my window into the top left
corner of the screen.
This happens more often, when the last window position was near the
lower border of the screen.
Why cascading, when there is no other document present?
Also the second document window is not opened cascaded from the first,
but relativ to the top left corner of the screen.
If cascading is meant to be done to relative to fixed screen positions,
then why is the first window sometimes moved, sometimes not?
Gerriet.
_______________________________________________
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.