Re: Custom Open/Save Directory Tree
Re: Custom Open/Save Directory Tree
- Subject: Re: Custom Open/Save Directory Tree
- From: Matt Neuburg <email@hidden>
- Date: Sat, 15 Jun 2002 21:35:13 -0700
At 12:18 AM -0400 6/16/02, Kyle Moffett wrote:
>
On Saturday, June 15, 2002, at 09:30 PM, Matt Neuburg wrote:
>
> On Fri, 14 Jun 2002 22:24:51 -0400, Kyle Moffett <email@hidden>
>
> said:
>
>> I am working on an application for performing database operations.
>
>> There are
>
>> several different kinds of records, each needing its own window editor
>
>> with
>
>> one window for each record opened. I thought that the best way might
>
>> be
>
>> to
>
>> subclass NSDocument for each record type, then reimplement open/save
>
>> mechanisms for the database. Unfortunately I ran into a problem. I
>
>> cannot
>
>> figure out how to get the open and save dialog boxes to look at a
>
>> different
>
>> hierarchy, my database tree. Does anybody know how I can do this, or
>
>> am
>
>> I barking up the wrong tree?
>
>
>
> Might the SimpleBrowser example provide some inspiration here? m.
>
>
Ahh, that will help, but I still cannot use the default open/save
>
mechanism
>
built into the NSDocumentController system. Is it possible to display a
>
custom
>
open/save panel to return a path? I would like to change the default
>
panels to
>
my own, then implement writeToFile:ofType: and readFromFile:ofType: to do
>
database access based on the path. Is this even possible?
I'm not sure why you want to hijack the document-opening facility when you
don't actually want to open a document, but I guess what I was thinking
that you would build a dialog that LOOKS like the Open dialog and now you
can let the user navigate any hierarchy you like. My idea was that if you
really also do intend to open something that you want the appkit to treat
as a document, then you could just open it as described in
.../Documents/Tasks/FAQ.html. Perhaps that's a half-baked notion or I'm not
guessing well enough what you're wishing to do. m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.