Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6733027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:43:13+00:00 2026-05-26T10:43:13+00:00

The Mac OS X Human Interface Guidelines says in their section about windows: Note

  • 0

The Mac OS X Human Interface Guidelines says in their section about windows:

Note that if a user opens, moves, and closes a document window without making any other changes, you should save the new window position but you should not modify the file’s date stamp.

How are we supposed to do this? If I have a document-based application and I want to save documents’ windows’ positions and sizes in their files—without touching their date stamps—I override dataOfType:error, etc. But, as far as I can tell, all of these automatically modify the file’s date stamp.

There’s only one way I see to do this, and it’s kind of a hack: use NSFileManager to temporarily save the file’s old date stamp, save the window’s position in the file, and then use setAttributes:ofItemAtPath:error to change it back.

Is there a better way? Surely if it’s a common task…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:43:13+00:00Added an answer on May 26, 2026 at 10:43 am

    How about saving the window’s position in NSUserDefaults instead of the document?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Mac used the opposite byte order to Windows. But is that still true for
My mac has folders Shared and Public folders. Their permissions are drwxr-xr-x+ for Public
The Mac build of my (mainly POSIX) application spawns a child thread that calls
(Mac)Vim seems to be picking up /usr/bin/python instead of the one that's at the
Mac OS 10.6, Cocoa project, 10.4 compatibility required. (Please note: my knowledge of regex
Mac OSX Finder has a search feature that darkens everything but the part that
.mac{margin-left:auto; margin-right:auto;} .table{.mac; color:red;} I want to be able to do that, it doesn't
Mac OS X (Cocoa) NSSetUncaughtExceptionHandler Windows SetUnhandledExceptionFilter Is there a platform independent way to
Given: Mac with either Parallels or VMWare A virtual machine with Windows installed. A
On mac os x, I'm trying to link against frameworks that are in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.