Skip navigation.
 
mlRe: My app breaks when moved while running
FROM : William Bates
DATE : Fri Feb 08 22:52:22 2008

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.

Related mailsAuthorDate
mlMy app breaks when moved while running Sanford Selznick Feb 7, 20:50
mlRe: My app breaks when moved while running Phil Feb 7, 21:31
mlRe: My app breaks when moved while running William Bates Feb 8, 04:28
mlRe: My app breaks when moved while running Mac Man Feb 8, 05:38
mlRe: My app breaks when moved while running Gregory Weston Feb 8, 13:42
mlRe: My app breaks when moved while running Sean McBride Feb 8, 16:37
mlRe: My app breaks when moved while running Jens Alfke Feb 8, 18:11
mlRe: My app breaks when moved while running Kyle Sluder Feb 8, 18:16
mlRe: My app breaks when moved while running Phil Feb 8, 21:06
mlRe: My app breaks when moved while running William Bates Feb 8, 22:52
mlRe: My app breaks when moved while running Stephen Hoffman Feb 9, 00:19
mlRe: My app breaks when moved while running Stephen Hoffman Feb 9, 00:32