Re: Can't open specified type in NSOpenPanel
Re: Can't open specified type in NSOpenPanel
- Subject: Re: Can't open specified type in NSOpenPanel
- From: Randall Meadows <email@hidden>
- Date: Mon, 23 Feb 2004 14:58:06 -0500
At 11:19 AM -0800 2/23/04, Nick Zitzmann wrote:
Because "types" has to be one of these two (I'm not sure which right now):
[NSArray arrayWithObjects:NSFileTypeForHFSTypeCode('asdf'), nil];
or
[NSArray arrayWithObjects:[NSNumber numberWithUnsignedLong:'asdf'], nil];
One of those ought to work; the documentation isn't too clear on
this. But using the type "asdf" as you used it above only works if
the file's extension is "asdf"; it doesn't work for creator codes.
Huh. I would have said the documentation was very clear:
"... allows selection of ones that match the types in fileTypes (an
NSArray of file extensions and/or HFS file types)."
but also very WRONG. I s'pose a less of a cynic might claim
ambiguity, but I don't see anything ambiguous about it. (Bug ID
3567369).
In any case, that was indeed the problem.
Thank you very much.
_______________________________________________
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.