[mcclim-devel] file-browser example application
Robert Goldman
rpgoldman at real-time.com
Sun Jan 7 02:20:59 UTC 2007
Andy Hefner wrote:
> On 1/5/07, Robert Goldman <rpgoldman at real-time.com> wrote:
[...snip...]
>> BTW, I think a more elegant solution might be made that would use
>> satisfies to define the dir-pathname presentation-type more
>> declaratively. But I couldn't figure out how to do it...
>
> Good idea. '(and pathname (satisfies my-directory-p)) doesn't do it?
>
I made a stab at it, but no, it didn't seem to work. I am attaching two
different versions of the file-browser: one that works, using a new
presentation-type, dir-pathname, and one that tries to do the job with
(and pathname (satisfies cl-fad:directory-pathname-p)), that doesn't work.
Probably there's some simple idiocy I've committed that makes this not
work, either a bug, or a misunderstanding of presentation types and the
relationship between presentation and the presented object. If anyone
can correct this, I will appreciate it, and will see to it that the
answer, duly credited, appears in the Guided-Tour paper, to enlighten
future seekers after CLIMmy wisdom.
Best,
R
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: file-browser.lisp
URL: <https://mailman.common-lisp.net/pipermail/mcclim-devel/attachments/20070106/ebae8694/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: file-browser.lisp-new-presentation-type
URL: <https://mailman.common-lisp.net/pipermail/mcclim-devel/attachments/20070106/ebae8694/attachment-0001.ksh>
More information about the mcclim-devel
mailing list