• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: My app breaks when moved while running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >My app breaks when moved while running (From: Sanford Selznick <email@hidden>)
 >Re: My app breaks when moved while running (From: Phil <email@hidden>)
 >Re: My app breaks when moved while running (From: "Sean McBride" <email@hidden>)
 >Re: My app breaks when moved while running (From: Phil <email@hidden>)

  • Prev by Date: Re: What's the story with OSAScriptController and OSAScriptView.
  • Next by Date: Using NSFileHandleConnectionAcceptedNotification for a server process
  • Previous by thread: Re: My app breaks when moved while running
  • Next by thread: Re: My app breaks when moved while running
  • Index(es):
    • Date
    • Thread