Localization problems on UFS volumes
Localization problems on UFS volumes
- Subject: Localization problems on UFS volumes
- From: Rainer Brockerhoff <email@hidden>
- Date: Fri, 20 Dec 2002 19:47:00 -0200
Hi folks.
I've been working on a Cocoa app for a client. Some of the images referenced by .nib files contain text, so as usual I put the images into the English.lproj folder (and later, inside the other language folders).
Some time later the client started complaining that those images didn't show up on their test system - the other images, and localized text files, nib files and so forth worked OK, though. Also, when they ran the app from a disk image everything worked, too. Copying to their hard drive caused the problem to appear (which should have tipped me off).
I tried to reproduce their problem for over a couple of weeks with no success, until I finally made the 600 Km. trip to their office, and found out that their local Unix guru (but Mac OS X newbie) had formatted his hard drive as UFS - and named it "/", to compound the problem... ("You mean this _isn't_ UNIX???")
BTW I was unable to change the name without reformatting. Not sure if that is a UFS thing, or a "/" thing...
Anyway, I found out by tinkering that calling [NSImage imageNamed:@"someImage"]
works OK on UFS if the image is in the main "Resources" folder. If it's in English.lproj, this returns nil. But if I append the correct extension to the name - [NSImage imageNamed:@"someImage.png"] it works correctly in all cases, except inside Interface Builder, where the "broken image" icon appears.
Now, I've temporarily worked around the problem by putting extensions on all image names, but I'm somewhat afraid of this breaking again under other circumstances.
Any suggestions? Should I file a bug? No idea if this will happen under 10.2.3, as I'm back home now...
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"I love deadlines. I love the whooshing noise they make as they go by" (Douglas Adams)
http://www.brockerhoff.net/ now with forums for XRay, Zingg! et al.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.