Making bundles/packages

  • Hi,

    I'd like to know how you can create a package that contains several
    settings from your application. For example, iPhoto has an iPhoto
    Library file which is in fact a package that contains all the photos
    and other files.

    How could I do something like that in Cocoa?

    Thanks in advance,

    Jesus
    __________________
    Jesus De Meyer
    www.edot-studios.com
    jesus.edot-studios.com
    "creativity in mind"
  • The weird part is that iPhoto's library file doesn't have an
    extension. I don't mind adding an extension to my file, but I do
    wonder how Apple did it though.

    > In the Properties tab of the inspector for you application target in
    > xcode, you can specify document types which belong to you
    > application.  You can create an entry for the file extension of your
    > package and subsequently any directories with that extension will be
    > treated as packages.
    >
    > dave
    >
    > On 4-Nov-07, at 6:23 AM, Jesus De Meyer wrote:
    >
    >> Hi,
    >>
    >> I'd like to know how you can create a package that contains several
    >> settings from your application. For example, iPhoto has an iPhoto
    >> Library file which is in fact a package that contains all the
    >> photos and other files.
    >>
    >> How could I do something like that in Cocoa?
    >>
    >> Thanks in advance,
    >>
    >> Jesus
    >> __________________
    >> Jesus De Meyer
    >> www.edot-studios.com
    >> jesus.edot-studios.com
    >> "creativity in mind"
    >>

    __________________
    Jesus De Meyer
    www.edot-studios.com
    jesus.edot-studios.com
    "creativity in mind"
  • At 08:21 -0800 04/11/2007, <cocoa-dev-request...> wrote:
    > From: Jesus De Meyer <jesus...>
    > References: <69CC415E-28A7-49E0-8958-0E03830E5A8D...>
    > <50DBC374-143D-4CB0-AF3A-082268528758...>
    > In-Reply-To: <50DBC374-143D-4CB0-AF3A-082268528758...>
    > Date: Sun, 4 Nov 2007 17:19:24 +0100
    > Message-ID: <36C6A3B5-68AA-4856-8CB5-9395A91A9E93...>
    >
    > The weird part is that iPhoto's library file doesn't have an extension. I don't mind adding an extension to my file, but I do wonder how Apple did it though.

    It has a Contents/pkginfo file that defines a type and creator for the package, and it's declared to be a package in iPhoto's info.plist.

    --
    Rainer Brockerhoff  <rainer...>
    Belo Horizonte, Brazil
    "In the affairs of others even fools are wise
    In their own business even sages err."
    Weblog: http://www.brockerhoff.net/bb/viewtopic.php
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today