Re: Forcing the package bit
Re: Forcing the package bit
- Subject: Re: Forcing the package bit
- From: Graham Cox <email@hidden>
- Date: Tue, 2 Mar 2010 13:34:35 +1100
On 02/03/2010, at 1:04 PM, Neil Allain wrote:
>
> On Mar 1, 2010, at 7:14 PM, Graham Cox wrote:
>
>> I need to write a package file that is not listed as one of my document types. How do I ensure that this will be seen as a package in the Finder? It looks to me as though some new flags were added to NSURL to cover this but the code needs to work on 10.5 or later.
>>
>
> This solution works fine:
>
> http://stackoverflow.com/questions/2009687/make-mac-package-bundle-programmatically
>
> I didn't know about the NSURL method, I'll have to check it out.
>
> Neil
>
Thanks, though it doesn't compile. What the hell is:
union FinderInfoTransmuter finderInfoPointers = { .bytes = catInfo.finderInfo };
??
--Graham
_______________________________________________
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:
This email sent to email@hidden