home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / Rhapsody / Graphics / ImageBrowser-1.0 / FileInfo.h < prev    next >
Encoding:
Text File  |  1998-01-05  |  1.5 KB  |  52 lines

  1. /*
  2.     File:       FileInfo.h
  3.  
  4.     Contains:   Interface for FileInfo, an object that gathers directory
  5.                 information from the user's filesystem
  6.  
  7.     Written by: Andy Wildenberg
  8.  
  9.     Created:    9 July 1997
  10.  
  11.     Copyright:  (c)1997 by Apple Computer, Inc., all rights reserved.
  12.  
  13.     Change History:
  14.        version 1.0: first public version
  15.  
  16.     You may incorporate this sample code into your applications without
  17.     restriction, though the sample code has been provided "AS IS" and the
  18.     responsibility for its operation is 100% yours.  However, what you are
  19.     not permitted to do is to redistribute the source as "DTS Sample Code"
  20.     after having made changes. If you're going to re-distribute the source,
  21.     we require that you make it clear in the source that the code was
  22.     descended from Apple Sample Code, but that you've made changes.
  23. */
  24.  
  25. #import <AppKit/AppKit.h>
  26.  
  27. @interface FileInfo : NSObject
  28. {
  29.     NSString* filename;
  30.     NSString* filetype;
  31.     NSString* lastModified;
  32.     NSString* fullPathName; // name of the directory that holds me -- may be '.'
  33.     NSArray* containedFiles; // a list of the files in me (if I'm a directory)
  34. }
  35.  
  36. - (id)initWithPath:(NSString *) path;
  37.  
  38. - (NSString *)filename;
  39. - (NSString *)fullPathName;
  40. - (NSString *)filetype;
  41. - (NSString *)lastModified;
  42. - (NSArray *)containedFiles;
  43.  
  44. - (void)findContainedFiles;
  45. - (void)setContainedFiles:(NSArray *)value;
  46.  
  47. - (void)dealloc;
  48.  
  49. - (NSComparisonResult)compare:(FileInfo *)obj;
  50.  
  51. @end
  52.