[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Save window position programmatically
On 3/1/02 5:10 PM, John Carter at john@xxxxxxxxx wrote:
> I have a two things to add in defence of the Apple policy of saving window
> defaults in the user defaults.
>
> 1) MVC - The document should be independent of the visualisation mechanism.
> It's a design thing.
> 2) Network. I'm designing an app at the moment where the document will stored
> in a central repository and shared. It would be pants if each time the user
> changes the placement of a window that the the file would need to updated.
> What of read-only files or shared files. (Hey you moved my window!!!).
>
> Hey David Rehring, Give up will you. I have never heard of any system which
> saves it's window positioning as part of the document.
> regards
Welcome to Macintosh.
I'm not saying that it should always be stored with the document, because
there are some circumstances where it can't be.
I'm saying that the 'preferred' mechanism should not break when the user
does simple everyday operations like duplicating, renaming and/or moving a
file. Most files that 'everyday' users have are 'owned' by them and are
modifiable by the user [they may be marked as read-only by the file system,
but that never stopped ProjectBuilder from updating the file(of course, not
with the file position)...].
As a 'second-level' position saving mechanism, say for files outside the
user's home folder and/or that can't be modified, sure, save the path to the
document and the file's onscreen-position. But it's lame to use this as the
primary mechanism...
Later,
--
David Rehring Psychos do not explode when light hits
Senior Software Engineer them, no matter how crazy they are...
Atimi Software, Inc.
www.atimi.com And totally insane guy!