• 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
My app breaks when moved while running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

My app breaks when moved while running


  • Subject: My app breaks when moved while running
  • From: Sanford Selznick <email@hidden>
  • Date: Thu, 7 Feb 2008 12:50:20 -0700

Hello,

A while ago I submitted a bug report to Apple that my app broke when the user moved it around in the Finder while it was running. I was told by Apple to "use the bundle APIs correctly". So, now 5 years later, I'm looking in to it.

I have a very simple Cocoa app with a window in a nib with a static PNG in the window (inside an NSImageView).

  I create the window with:

  [[NibClass alloc] initWithWindowNibName: @"NibName"];

When I move the app while it's running, and create the window again, Cocoa is all confused and can't find the image referenced by the Nib. And not just images, it can't find localized strings and other important doodads in the App bundle.

So, what's the proper way to handle this so I can "use the bundle APIs correctly"? Is there some way to inform Cocoa that my app has moved?

Thanks,
  Sanford

PS - The 10.5.1 Finder did not warn me when I moved my app while it was running.
_______________________________________________


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


  • Follow-Ups:
    • Re: My app breaks when moved while running
      • From: William Bates <email@hidden>
    • Re: My app breaks when moved while running
      • From: Phil <email@hidden>
  • Prev by Date: Re: Logging Mechanisms in Cocoa
  • Next by Date: Re: Understanding objc_assign_strongCast
  • Previous by thread: Re: Logging Mechanisms in Cocoa
  • Next by thread: Re: My app breaks when moved while running
  • Index(es):
    • Date
    • Thread