Re: NSDocument-based app limitations?
Re: NSDocument-based app limitations?
- Subject: Re: NSDocument-based app limitations?
- From: Mark Munz <email@hidden>
- Date: Tue, 30 Mar 2004 14:39:48 -0700
On Mar 30, 2004, at 1:46 PM, Matthew Formica wrote:
Hrm.... I don't think you'd have to by-pass the whole NSDocument
architecture to do what you want. Since the filetypes pop-up that
shows up
in the save dialog is in the accessory view, and the accessory view
can be
completely customized or replaced (see -prepareSavePanel: and
-shouldRunSavePanelWithAccessoryView) I would try swapping in your own
accessory view that presents a pop-up button with a customized list of
types, and call -setFileType: as needed in response to selections. A
bit
messy, like you say, but better than building your own custom document
architecture.
I haven't tried it myself, but it seems like it should work.
Thanks -- I'll give that a try.
I'll also write up an enhancement request on the subject of dynamically
changing the filetypes.
Mark
_______________________________________________
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.