Re: what makes a folder an application?
Re: what makes a folder an application?
- Subject: Re: what makes a folder an application?
- From: Brendan Younger <email@hidden>
- Date: Sat, 25 May 2002 22:12:39 -0500
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".
For a full discussion of it, check out Technote 1188
(
http://developer.apple.com/technotes/tn/tn1188.html). Ignore the
comment in Finder.h which says it's only for files (it goes under the
name of "kHasBundle"). However, once you repair the missing bundle bit,
you might want to be kind and append a ".app" to the folder since any
non-HFS(+) volume won't recognize it as an application.
Brendan Younger
_______________________________________________
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.