Re: Using file types in Document Based Applications...
Re: Using file types in Document Based Applications...
- Subject: Re: Using file types in Document Based Applications...
- From: Carlos Weber <email@hidden>
- Date: Mon, 25 Jun 2001 21:28:32 -1000
On Monday, June 25, 2001, at 04:53 , Clyde McQueen wrote:
On Saturday, June 23, 2001, at 11:35 PM, Joshua D. Orr wrote:
I am trying to figure out how to make the open dialog in my document
based
app let you open files based on there file type (not the extension). I
think I have to change the target settings, but I am not sure how. Can
anyone help?
Well, the easy way is to change the target settings to use a file
extension of 'TYPE', but I just tried it on a dummy project and it
doesn't work. The AppKit apparently isn't set up to support that.
So, it looks like you'll have to override the open & save functionality
in NSDocument, and perhaps some NSApplication methods as well. Over my
head, I'm afraid.
Have a look at the AppKit release notes for a description of some new
functionality (defined in Foundation/NSHFSFileTypes.h) which sounds like
it should do the right thing.