Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: telling when a directory is really a bundle




On 22 Oct 2007, at 17:44, Sean McBride wrote:

On 10/22/07 4:19 PM, Dirk Stegemann (Mailing-Lists) said:

For example, I copied an .xcodeproj bundle to a system which didn't
have the Xcode tools installed. The Finder treated the bundle as
ordinary folder; is this intended behaviour?

That's because the 'bundle bit' is not set by Xcode when it saves. In my experience, few applications do this, which is a shame because it's easy and fixes the problem you describe.

I would suggest that all apps that save as packages/bundles set the
bundle bit on their documents.  You can use MoreFilesX's
FSChangeFinderFlags () function like so:

FSChangeFinderFlags (&projFolderRef, true, kHasBundle);

I've just been looking at the kHasCustomIcon flag, and that seems to be wildy inaccurate for most items as well ...





-- ____________________________________________________________ Sean McBride, B. Eng email@hidden Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >telling when a directory is really a bundle (From: Martin Redington <email@hidden>)
 >Re: telling when a directory is really a bundle (From: "Dirk Stegemann (Mailing-Lists)" <email@hidden>)
 >Re: telling when a directory is really a bundle (From: "Sean McBride" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.