Re: Cocoa stripping resource forks: does Jaguar fix?
Re: Cocoa stripping resource forks: does Jaguar fix?
- Subject: Re: Cocoa stripping resource forks: does Jaguar fix?
- From: Hsu <email@hidden>
- Date: Sat, 6 Jul 2002 23:27:29 -0700
Don't you have to set the bundle bit on the folder (SetFile -a B
<folder>
)
if the extension isn't .app or .bundle?
Or any other known one (rtfd, eg.). Well, the very existence of the
bundle
bit is another Mac OS X bug: the packages should be recognized by their
suffixes only, as it always was in NeXTStep -- for the very reson you
pointed out: it's portable.
Do you know if there's a list around? Is there a way to add one of my
extensions to this list?
I believe actually, that this list is generated dynamically with
LaunchServices. If you look inside the WebObjects Builder.app bundle's
Info.plist, you can see where it registers that .wo is a bundle, and
should be opened in WOB:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>wo</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>WOfile.icns</string>
<key>CFBundleTypeName</key>
<string>WebObjects Builder Document</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSTypeIsPackage</key>
<true/>
</dict>
</array>
I haven't tried this, but it looks promising. I'm not certain how you
request the LaunchServices assimilate this information, though. It may
do it automatically during startup or login or something along those
lines (probably login, and there's probably some logic involved so that
only when folders have been touched does it rescan).
Karl
--
Help! The paranoids are after me.
Homepage:
http://homepage.mac.com/khsu/index.html
_______________________________________________
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.