[TxMt] DIALOG2: open save panels > question

Hans-Joerg Bibiko bibiko at eva.mpg.de
Tue Apr 1 07:35:00 UTC 2008


On 31 Mar 2008, at 14:24, Hans-Joerg Bibiko wrote:
> I'm just writing the extension for DIALOG2 to show up a user-defined  
> open/save panel optionally with an accessory view.
>
> I can call it like:
>
> "$DIALOG" panel open -p '{message="Input"; button1 = Load;  
> allowMultipleSelection = 1; startDir = "/usr/bin/"; string=ANNA;  
> switch=1;}'  ~/Desktop/acc.nib
>
> whereby 'string' and 'switch' are set in the accessory view  
> (TextIInputField and a Checkbox) specified in acc.nib. It works fine.
>
> Now I tried to show these panels as sheets bound to the current  
> window. This also works fine ;)
> BUT: I do not know how to write the 'resultDict' plist back to TM if  
> I'm using sheets :{
I found a solution.

Short demo (340k): http://www.bibiko.de/TM_D2_PANELSHEET.mov

This leads to a related question. Should we try to add the possibility  
to show up each modal dialog as a sheet?
I tried it out and in principal it works, if the nib doesn't have a  
autosave name. But I do not know what kind of consequences could  
occur. Any comments?


Cheers,
--Hans



More information about the textmate mailing list