Re: SavePanel customisation
Re: SavePanel customisation
- Subject: Re: SavePanel customisation
- From: olivier <email@hidden>
- Date: Tue, 25 Feb 2003 11:44:22 -0600
a partial solution to my problem was to create a view that contain the
control i wanted plus it has some room for the format popup button.
When prepareSavePanel is called the first time i copy the popup from
the original accessoryView and put it in mine, then i set my accessory
view as the accessory view of the panel and of the document so that the
document automatically use that new one next time.
I works just fine, except that i have to use private api to do that,
namely the savePanelAccessory of the document is declared private.
So my question is what is the official way of doing this, is that
private member expected to change in the futur?
olivier
PS: i tried the other way around, copying my control in the save panel
accessory, but it always mess up the display of the save panel.
On Monday, February 24, 2003, at 01:05 PM, olivier wrote:
>
I want to insert a text field in my save panel. This i managed to do.
>
I also want to have a drop box that say that the user can save to other
>
format. This i manage to do.
>
>
What i do not manage to do is have both my text field and the drop box
>
show up consistently in the dialog.
>
>
I use - (BOOL)prepareSavePanel:(NSSavePanel *)savePanel from NSDocument
>
to do what i want. Here i check if the save panel already has an
>
accessoryView and if so i copy the subview and put them in my custom
>
view. Everything works fine the first time i bring up the dialog. But
>
the next time if i don't bring the dialog by the same menu item (Save,
>
Save as, or save a copy to) then the drop box with the file type does
>
not have the right item enabled.
>
>
So what is the right way of doing what i want?
>
>
Any pointers appreciated.
>
Olivier
>
_______________________________________________
>
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.
_______________________________________________
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.