[SVN] r10878 (WIP/Tools)

Allan Odgaard mailinglist at textmate.org
Thu Nov 27 10:02:57 UTC 2008

• move image registration out of the popup command

This means it is now a two-step process to use images in popups (when those images are referring to disk files), esxample:

    "$DIALOG" register_images --images  "{ macro = '$(find_app com.macromates.textmate)/Contents/Resources/Bundle Item Icons/Macros.png'; }"
    "$DIALOG" popup --suggestions '( { image = macro; display = foo; }, { display = bar; } )'
But since images are registered with the given name, it means they can also be used in nibs, and so, this functionality is more general than just the popup stuff.

If an image is already registered under a requested name, the new image will not replace the existing one, so use unique/namespaced names for your images (although sematics may change).

U   branches/WIP/Tools/Dialog2/Commands/ExtendedPopUp/extendedmenu.mm
A   branches/WIP/Tools/Dialog2/Commands/register_images.mm
U   branches/WIP/Tools/Dialog2/Dialog2.xcodeproj/project.pbxproj

More information about the textmate-dev mailing list