• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: what makes a folder an application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >what makes a folder an application? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Preference Pane Window
  • Next by Date: Subclass of NSTextView
  • Previous by thread: what makes a folder an application?
  • Next by thread: Re: what makes a folder an application?
  • Index(es):
    • Date
    • Thread