NeXT TypedStream Data | 1995-01-29 | 4.2 KB | 77 lines
typedstream
IBObjectData
Object
CustomObject
Application
MenuCell
ButtonCell
ActionCell
Helvetica
Matrix
Control
Responder
@:@iiii
Info...
MenuTemplate
*@*@ccc
MyFileBrowser
Duplicate
Symbolic Link
Hard Link
ff@@#::s
submenuAction:
NXImage
NXmenuArrow
Tools
Inspector...
Button
NXBrowser
@@::#@ssssi**
NXBrowserCell
BrowserItem
Browser
Update Selected Directory
WindowTemplate
iiii***@s@
Simple Browser Using MiscFiles
Window
ClipView
ScrollView
Scroller
_doScroller:
@@@ffs
NXCursor
NXibeam
ciifffcfffs
[1844c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
\margl40
\margr40
{\colortbl;\red0\green0\blue0;}
\pard\tx533\tx1067\tx1601\tx2135\tx2668\tx3202\tx3736\tx4270\tx4803\tx5337\f0\b0\i0\ulnone\fs24\fc1\cf1 Hi. This example app is just to show one of the possible uses of MiscFile, along with some of it's features.\
There is one subclass of MiscFile, the MiscAppFile in this app. It is registered for files with the ".app" extension (See MyController.m to see how to register filename extensions). The only thing it does is make the app wrapper look like a leaf even though everyone knows it's a directory.. Other than that, I didn't do any of the stuff you'd expect from a normal browser like having files sorted, or being able to double click on them and actually have something happen, like maybe get opened by workspace or something. That is left as an excerise for someone greater than I.\
There is now a"workspace-like" inspector (try Tools->Inspector) to test all my additions to the MiscFile class. It displays the filename, image, pathname, owner, group, date last changed (using Scott's ClockView palette), and file permissions. \
I also added File->Duplicate, File->Symbolic Link, and File->Hard Link to test creating copies of files. Try them out.... you aren't allowed to specify what the copy is called though.\
Oh, and watch out while playing with the permissions on the inspector. If you are the owner of the file, the permissions really do change.... I was testing the permission changing methods in MiscFile+Modification.\
Finally, there is probably much functionality missing from this release of MiscFile since a file can do so much... if you have an idea for something to be added, find a bug, etc, or otherwise find these classes useful, drop me a note at todd@avocado.supernet.ab.ca.\