Re: My app breaks when moved while running
Re: My app breaks when moved while running
- Subject: Re: My app breaks when moved while running
- From: William Bates <email@hidden>
- Date: Fri, 8 Feb 2008 15:52:22 -0600
There's no obligation to empower users to shoot themselves in the
foot.
If real users were/are actually moving your app around [it's not clear
if this is a real-world problem or a hypothetical] an approach, not
mentioned yet, is to try to detect the situation, provide a warning if
possible, and die.
Once upon a time small programs could be memory resident. You could
do anything you liked to their file, including delete it, and the app
would run until termination. Its code was loaded. Today any non-
trivial app need access to disk-based resources and much of Cocoa and
Carbon are a set of conventions about how to get them. If you want the
ease of using constructs like "initWithWindowNibName: @"NibName"];"
you gotta play by the implied rules. You can pre-load all your images
and nibs into memory; you might get by. And if not, remember that
system error alerts (I'd look to the barest-bone Carbon alert) are
usually designed to rely on a bare minimum of disk resources and
display under really adverse circumstances.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden