Graham Cox (graham@bigpond.com) on 2010-03-02 20:14 said:
>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
On Mar 1, 2010, at 9:06 PM, Graham Cox wrote:
> [[NSFileManager defaultManager] setAttributes:[[self class]
> defaultFileAttributes] ofItemAtPath:[self path] error:&error];
>
> Where the default attributes are:
>
> + (NSDictionary*) defaultFileAttributes
> {
> return [NSDictionary dic
On 02/03/2010, at 1:34 PM, Graham Cox wrote:
> Thanks, though it doesn't compile. What the hell is:
>
>union FinderInfoTransmuter finderInfoPointers = { .bytes =
> catInfo.finderInfo };
Never mind, I just got rid of it and cast the struct directly:
- (void) setBundleBitOfFile:(NSStri
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
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 t
I believe this can be accomplished by exporting a new UTI that describes
your package type (probably by extending com.apple.package or something like
that). This would be done inside your app's Info.plist file.
-Steven
On Mon, Mar 1, 2010 at 8:14 PM, Graham Cox wrote:
> I need to write a packag
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.
--Graham
___