home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / what's new / sample code / human interface toolbox / packagetool / packageutils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-22  |  1.4 KB  |  44 lines

  1. /*
  2.     file PackageUtils.h
  3.     
  4.     Description:
  5.     This file contains the routine prototype for the IdentifyPackage
  6.     routine package savy applications can use to identify document
  7.     packages.
  8.     
  9.     PackageTool is an application illustrating how to create application
  10.     packages in Mac OS 9.  It provides a simple interface for converting
  11.     correctly formatted folders into packages and vice versa.
  12.  
  13.     by John Montbriand, 1999.
  14.  
  15.     Copyright: © 1999 by Apple Computer, Inc.
  16.     all rights reserved.
  17.     
  18.     Disclaimer:
  19.     You may incorporate this sample code into your applications without
  20.     restriction, though the sample code has been provided "AS IS" and the
  21.     responsibility for its operation is 100% yours.  However, what you are
  22.     not permitted to do is to redistribute the source as "DSC Sample Code"
  23.     after having made changes. If you're going to re-distribute the source,
  24.     we require that you make it clear in the source that the code was
  25.     descended from Apple Sample Code, but that you've made changes.
  26.     
  27.     Change History (most recent first):
  28.     10/19/99 created by John Montbriand
  29. */
  30.  
  31.  
  32. #ifndef __PACKAGEUTILS__
  33. #define __PACKAGEUTILS__
  34.  
  35. #include <Types.h>
  36. #include <Files.h>
  37.  
  38. /* IdentifyPackage returns true if the file system object refered to
  39.     by *target refers to a package.  If it is a package, then 
  40.     *mainPackageFile is set to refer to the package's main file. */
  41. Boolean IdentifyPackage(FSSpec *target, FSSpec *mainPackageFile);
  42.  
  43. #endif
  44.