My app breaks when moved while running
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