Re: Auto saving Window position broken?
Re: Auto saving Window position broken?
- Subject: Re: Auto saving Window position broken?
- From: Allan Odgaard <email@hidden>
- Date: Thu, 29 Apr 2004 15:26:50 +0200
On 29. Apr 2004, at 14:49, Jesus De Meyer wrote:
I've noticed that my app doesn't auto save the position of a window,
even though there is an auto save name set in IB. Do I need to do
something extra to have auto save work? Or is possible this doesn't
work because I subclassed NSApplication?
If your windows are controlled by a window controller then: "The
default initialization turns on cascading [...] and sets the window
frame autosave name to an empty string".
Size of TableViews don't get saved aswell.
Does your application have an identifier? i.e. if you look in the
Info.plist there will be a key named CFBundleIdentifier which should
have the value of "com.<your company>.<your application>" -- preference
files are saved in ~/Library/Preferences, here you can check to see
what actually goes into the file (i.e. the auto saved window and table
view sizes/positions).
You can use "pl" to get a pretty-printed version of the file. E.g.
pl < ~/Library/Preferences/com.apple.scheduler.plist
--
et al: used as an abbreviation when referring to a number of people, for
example: "It has been improved by Knuth et al." [syn: and others, et
alii]
etc: continuing in the same way [syn: and so forth, and so on, et
cetera].
_______________________________________________
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.