• 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
Package Bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Package Bit


  • Subject: Package Bit
  • From: Jeff Laing <email@hidden>
  • Date: Fri, 3 Mar 2006 09:54:01 +1100

I've been searching for a while now, and I can't find any documentation on
how I programmatically create a simple 'file package' with Cocoa.

ie, one of those folders that has the 'package bit' set (or is it the
hasBundle bit?)

When I looked at FSCatalogInfo, I can't see which fields might contain the
current flags - the finder info is just an anonymous block of integers.

Does someone have some nice simple, cocoa-callable, example code that shows
how to create a package?

As an aside, when I tried just creating a normal folder, then using File
Buddy to set the package bit, and whilst it then works as a package from
NSWorkspace's perspective, it still has the disclosure triangle in the
finders list view, rather than requiring 'Show Package Contents' to peek
inside.  So perhaps there's more to it?

Note, I do *not* want a bundle here, I'm wanting to do something similar to
'.rtfd'
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Package Bit
      • From: Ryan Britton <email@hidden>
  • Prev by Date: Re: NSTextView tab out of
  • Next by Date: Re: NSTextView tab out of
  • Previous by thread: Re: NSTextView tab out of [SOLVED]
  • Next by thread: Re: Package Bit
  • Index(es):
    • Date
    • Thread