On 04.09.2008, at 10:10, Gerriet M. Denkmann wrote:
6. Other?

So: is there some commonly agreed upon right strategy?
Are there some official guidelines for document window sizes?


You can save the size of your window in some plist in your document using -stringWithSavedFrame and restore it using -setFrameFromString:. That would be per-document. The one issue this has is that the user would have to save the document each time to make this stick. So just moving a window dirties the document.

It's a little hard to do this using an NSDocument, but a common approach is to use a resource or xattributes to attach the window positions to a file without touching the actual document. That way, diff and similar tools won't think it's changed, and if the position gets lost during internet transfer, that's not too bad, as it's not vital information.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to