Re: TextEdit behavior when last document closed in Lion
Re: TextEdit behavior when last document closed in Lion
- Subject: Re: TextEdit behavior when last document closed in Lion
- From: Joar Wingfors <email@hidden>
- Date: Tue, 13 Mar 2012 20:24:36 -0700
Please take this discussion off line, or alternatively to one of the Cocoa mailing lists. It's off topic for the xcode-users mailing list.
Thanks,
Joar
On 13 mar 2012, at 01:50, Bob Freeman wrote:
> I think Alex is right about the new "Automatic Termination" feature in some apps with Lion. Siracusa talks about it in his Lion review, but why Lion would decide to shut TextEdit down with 8GB of free memory does seem a bit draconian.
>
> It appears to me that this is very hard to predict if the system will actually do it, as I frequently have TextEdit running for hours or days with no windows and my 10.7.3 system doesn't cause it to terminate. Don't recall if it ever has, but have no idea why it stays open, but the next time I get low on free memory I will try and see if it does try to kill it off.
>
> In any event I wonder if one could set the NSSupportsAutomaticTermination key in TextEdit's Info.plist file (set it to YES or NO I'm guessing) and keep the system from doing the Automatic Termination on it? See the Apple Developer library comments at https://developer.apple.com/library/mac/#documentation/General/Conceptual/MOSXAppProgrammingGuide/CoreAppDesign/CoreAppDesign.html for more details (search for "Automatic Termination").
>
> Think it would go something like (not positive about this - it might be "-boolean FALSE" instead):
>
> defaults write com.apple.TextEdit NSSupportsAutomaticTermination -string NO
>
> If it does work please let us know. I've not done it because my system doesn't ever shut it down. If the stock version in Mac OS X Lion /Applications/TextEdit.app doesn't pay attention to this setting, you could always build and modify and use the opensource version of TextEdit from within Xcode - it's in the folder /Developer/Examples/TextEdit
>
> -Bob
>
>
> ps - Also, I fount a post about Lion doing an auto-shutdown of apps if "inactive" and "memory is low" (see http://apple.stackexchange.com/questions/21255/why-doesnt-the-red-dot-shut-down-the-program ). Not sure what constitutes "inactive" or "memory is low"
>
> Another good explanation of this "Automatic Termination" is at http://tidbits.com/article/12398
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden