Re: what makes a folder an application?
Re: what makes a folder an application?
- Subject: Re: what makes a folder an application?
- From: Matt Neuburg <email@hidden>
- Date: Sun, 26 May 2002 20:12:53 -0700
On Sat, 25 May 2002 22:12:39 -0500, Brendan Younger
<email@hidden> said:
>
>
On Saturday, May 25, 2002, at 06:20 PM, Matt Neuburg wrote:
>
>
> When I use NSWorkspace to copy an application from one folder to
>
> another,
>
> if the application's name doesn't end in .app, sometimes its
>
> application-hood is lost - the copy comes out as an ordinary folder.
>
> Clearly some piece of metadata is being lost here. That doesn't surprise
>
> me, since creation and modifcation dates are sometimes lost too. But in
>
> those cases, I know what pieces of metadata are being lost - it's the
>
> creation and modification dates. My question is, what piece of metadata
>
> is
>
> being lost in *this* case? What piece of metadata makes a folder an
>
> application, and how do I access it? Thx - m.
>
>
On HFS(+) volumes, there are various "Finder bits" stored with each
>
file/directory. One of them is the appropriately-named "bundle bit"
I know about the bundle bit. To help me, though, please tell me (in highly
specific terms) HOW TO SET the bundle bit. (And how to know whether the
bundle bit for a folder is already set.) I have scoured the documentation
but I can't find anything on this; lots of docs tell me TO set the bundle
bit but none seem to tell me HOW. Clearly this can be easily done, as lots
of apps can do it. (All I could find was some ancient examples showing
low-level trickery that is surely not allowed under Carbon.)
Also, please explain why setting the "package" checkbox with XRay does not
fix the problem - an app that has gotten turned into a folder remains a
folder. In fact, it appears to me that XRay may be setting the wrong bit (a
bug?). Unfortunately there is no documentation for the GetFileInfo and
SetFile tools which I am trying to use to investigate this situation.
Please help me, since NSWorkspace's vile copying has changed my
applications to folders and I need to change them back - plus I need to
work out a way to copy applications reliably.
Thx. m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes gar anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.