Re: Finder duplicating my doc package as folder
Re: Finder duplicating my doc package as folder
- Subject: Re: Finder duplicating my doc package as folder
- From: Dave Hersey <email@hidden>
- Date: Wed, 21 Jul 2004 08:53:53 -0400
Hi,
Yes, I have that set in my application, and all of that is working fine (the
"folder" appears as a document in the Finder, clicking on it launches my
app, etc.) But, if I select the file and duplicate it in the Finder, the
name gets "copy" appended to it after my extension, which mucks things up.
If I append my extension again everything is fine. It's only a problem with
the Finder's duplicate command as near as I can tell.
Another weird thing I just noticed is that, if I hide one of my document's
extensions in the Finder and do the duplicate, the file goes from
"MyFile.ext" to "MyFile copy" So, hiding the extension in the Finder and
then duplicating the file removes the extension.
It's almost as if the Finder thinks my document's extension is just part of
the filename, but not an extension... Any of this sound familiar to anyone?
Thanks,
- Dave
On 7/21/04 3:54 AM, "Louis C. Sacha" <email@hidden> wrote:
>
Hello...
>
>
Do you have the "LSTypeIsPackage" key included (and set to TRUE) in
>
the document type dictionary in the CFBundleDocumentTypes in your
>
application's Info.plist file?
>
>
http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Con
>
cepts/PListKeys.html#//apple_ref/doc/uid/20001431/TPXREF107
>
>
Hope that helps,
>
>
Louis
>
>
> Hi,
>
>
>
> I've got an application that uses document packages to store data, and
>
> that's all working fine except if I try to duplicate the files in the Finder
>
> (selecting the icon and cmd-D'ing). In that case, the file "Myfile.ext"
>
> becomes "Myfile.ext copy" and displays as a folder.
>
>
>
> Everything else--saving, loading, copying to other directories, etc. is
>
> working fine. I have a PkgInfo file inside the Contents folder for my
>
> document, but is there something else I need to do to tell the Finder to
>
> duplicate the document as a package and not a folder?
>
>
>
> I've looked, but I'm not seeing anything archived about this problem, which
>
> makes me think I missed something simple...
>
>
>
> Thanks,
>
>
>
> - Dave
_______________________________________________
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.