Pop-Up Tabs and the Quest for a File Viewer
Pop-Up Tabs and the Quest for a File Viewer
- Subject: Pop-Up Tabs and the Quest for a File Viewer
- From: David Adamson <email@hidden>
- Date: Wed, 1 Aug 2001 15:59:43 -0400
Hello, all.
After a year of OOP brainwashing in Java atop a previous year of
C++, I've taken it upon myself to learn Cocoa and, in doing so,
seek the resurrection of the dearly missed
pop-up-tabby-window-things. I've made great progress, beginning
small with file-associated windows spawned by drag and drop, moving
on to windows which miniaturize when another gains main, coming and
going at need, and finally truly beautifully OOPy strategy-based
miniaturization behaviour, so far including docking, windowshades,
and collapsing to the bottom (which is merely windowshades with a
y-constraint). It's this last bit I'm really proud of, with dynamic
switching of behaviours and completely overriding the built-in way
of miniaturizing in favor of something more friendly and robust.
But I ramble.
I come to you, O cocoa-delvers, in search of the One Thing truly
missing from my little toy, essential to its being functionial
instead of just pretty. A simple thing, perhaps, one that should,
in the name of interface consistency, be available as an
off-the-shelf component, but which I have yet to find. I seek a
file-viewer/browser NSView subclass, with support of dragging and
dropping and view-changing and Whatnot. Is there such a thing?
Where can I find it, that code need not be duplicated? Or should I
just hunker down and do it myself, just for the doing and learning
if nothing else, and if I do it right it need never be done again?
Only I'd prefer to get this thing out the door sometime soon...
Second, a much simpler question, is there any way that a
dock-minimized window icon can respond to drag and drop? I think
not, but I'd love to hear otherwise.
Thanks,
-David.