[SVN] r5546

Allan Odgaard throw-away-1 at macromates.com
Sat Oct 21 09:02:01 UTC 2006


This is really just a skeleton for things to come.

There are two parts:
 1) Dialog plug-in for TextMate, this registers a “TextMate dialog server” connection to which it is possible to send a path to a nib file and optional arguments. This nib is then loaded in the TextMate program space, so it will appear with the proper window layer etc.
 2) tm_dialog is the shell tool to signal the Dialog plug-in

The idea is that TM commands can then just create a nib for their UI and use tm_dialog to have the nib shown, and get back the “result” from this nib, w/o having to do compile things etc. A suite of standard dialogs is planned which could replace the need for CocoaDialog.

There is currently one major problem with this approach: Distributed Objects seems to only allow one connection per task, so if you install this plug-in, you will lose ‘mate’ support, as that also works via Distributed Objects. Maybe there is a simple solution for this.

Changed:
A   trunk/Tools/Dialog PlugIn/
A   trunk/Tools/Dialog PlugIn/Dialog PlugIn.tmproj
A   trunk/Tools/Dialog PlugIn/Dialog.h
A   trunk/Tools/Dialog PlugIn/Dialog.mm
A   trunk/Tools/Dialog PlugIn/Dialog.tmproj
A   trunk/Tools/Dialog PlugIn/Dialog.xcodeproj/
A   trunk/Tools/Dialog PlugIn/Dialog.xcodeproj/project.pbxproj
A   trunk/Tools/Dialog PlugIn/Dialog_Prefix.pch
A   trunk/Tools/Dialog PlugIn/English.lproj/
A   trunk/Tools/Dialog PlugIn/English.lproj/InfoPlist.strings
A   trunk/Tools/Dialog PlugIn/Example.nib/
A   trunk/Tools/Dialog PlugIn/Example.nib/classes.nib
A   trunk/Tools/Dialog PlugIn/Example.nib/info.nib
A   trunk/Tools/Dialog PlugIn/Example.nib/keyedobjects.nib
A   trunk/Tools/Dialog PlugIn/Info.plist
A   trunk/Tools/Dialog PlugIn/tm_dialog.mm



More information about the textmate-dev mailing list