• 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
generating bundles without an extension?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

generating bundles without an extension?


  • Subject: generating bundles without an extension?
  • From: Rua Haszard Morris <email@hidden>
  • Date: Wed, 14 Feb 2007 09:35:43 +1300

I'm using Xcode to generate plugins (Carbon bundles) for our app, and up until now they've had the default extension ".bundle".

Ideally I'd like to have no extension, but there seem to be some problems related to this:

1. The finder starts showing the bundle as a folder if no extension is used (doesn't seem to matter if the extension is something random).

2. Xcode doesn't really support no extension, and will put a '.' on the end of the generated bundle name when the extension is set to "" (blank).

I can workaround problem 1 by setting the bundle bit explicitly (i.e. "SetFile -a B") but I'm not sure this will be as robust. Problem 2 can be worked around by renaming the generated bundle after the build (e.g. a run script phase which could also do the SetFile).

However I'd be interested to know if there are any better approaches to this, or ways to get Xcode to do this directly in a more correct manner.

Also if anyone can point to some good documentation on bundles & how they are recognised. For example, is there somewhere that documents the fact that a bundle _must_ have an extension in order to be displayed correctly in the finder?
http://developer.apple.com/documentation/CoreFoundation/Conceptual/ CFBundles/index.html mentions "known extensions" and "structure type indicating a modern bundle" but nothing very concrete. My guess is that if there is any extension, the finder looks at the structure to determine if it's a bundle.


Interestingly the CFBundle apis and our plugin loading/management code works correctly even when the finder doesn't show the plugin as a bundle.

thanks
Rua Haszard Morris.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: .lproj directory naming
  • Next by Date: Re: .lproj directory naming
  • Previous by thread: Re: .lproj directory naming
  • Next by thread: Re: generating bundles without an extension?
  • Index(es):
    • Date
    • Thread