package documents reverting to folders under 10.2
package documents reverting to folders under 10.2
- Subject: package documents reverting to folders under 10.2
- From: Kirk Kerekes <email@hidden>
- Date: Wed, 21 Aug 2002 15:51:10 -0500
After installing 10.2, I have had a troublesome issue with package
documents that my app creates. The app only creates one class of
document, and is set as an Editor for that class. The package documents
contain a mix of "regular" files and "standard" package files (rtfd).
All of this worked fine under 10.1.x.
Then I installed 6C115 and later I changed the icon image for my
application. I did not change the document icon image, nor did I change
any of the application info. I did not change the _name_ of the app
icon file, just the contents.
However, suddenly all of my package documents reverted to folders.
Arrgh.
I tried all of the normal voodoo -- logged out and in, restarted the
"finder", told the NSWorkspace to findApplications. No joy. I tried
removing and restoring the file extension on my document package
folders. They stubbornly insisted on being folders.
After some Mamasam browsing, I decided to add a Contents/PkgInfo item
to the package docs, although according to the Apple docs this
absolutely should _not_ be necessary. I did this manually, and the
folders reverted magically back to packages. I then built the
Contents/PkgInfo item into my document save routine, and the package
icon reappeared with the next save. However, even though the Get Info
window now reports them as the correct file type, the Finder still
displays them with functioning disclosure triangles and item counts, as
if they were still folders. If I manually change/restore the folder
extension, generating the "are you sure you want to do that" alert, the
partial folder-status goes away and I get proper package behavior.
Even though this is now semi-"fixed", I am bothered that the fix was
required. Either I am the victim of cruel fate, or the linkage between
folder-extensions and package-status is nowhere near as robust under
10.2 as it was previously. It appears to be possible to corrupt/confuse
the association between a folder extension and its status as a package
file.
_______________________________________________
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.