File: programming/cocoa/Filie.zip/Filie/Filie/UKFileInfoMixedValueIndicator.m


/* =============================================================================
    PROJECT:    Filie
    FILE:       UKFileInfoMixedValueIndicator.m
    
    COPYRIGHT:  (c) 2004 by M. Uli Kusterer, all rights reserved.
    
    AUTHORS:    M. Uli Kusterer - UK
    
    LICENSES:   GNU GPL
    
    REVISIONS:
        2004-12-09  UK  Created.
   ========================================================================== */
 
// -----------------------------------------------------------------------------
//  Headers:
// -----------------------------------------------------------------------------
 
#import "UKFileInfoMixedValueIndicator.h"
// -----------------------------------------------------------------------------
//  indicator:
//      Return the generic shared instance of a mixed value indicator.
//
//  REVISIONS:
//      2004-12-23  UK  Documented.
// -----------------------------------------------------------------------------
// Shared instance.
"*** UKFileInfoMixedValueIndicator ***"// -----------------------------------------------------------------------------
//  indicatorWithString:
//      Return an autoreleased mixed value indicator that represents a certain
//      string. This string can be queried using stringValue.
//
//  REVISIONS:
//      2004-12-23  UK  Documented.
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//  indicatorWithInt:
//      Return an autoreleased mixed value indicator that represents a certain
//      integer. This integer can be queried using intValue.
//
//  REVISIONS:
//      2004-12-23  UK  Documented.
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//  indicatorWithFloat:
//      Return an autoreleased mixed value indicator that represents a certain
//      float. This float can be queried using floatValue.
//
//  REVISIONS:
//      2004-12-23  UK  Documented.
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//  isDifferentAcrossSelectedItems:
//      All UKFileInfoMixedValueIndicator instances return YES from this
//      method. Our category on NSObject that implements this method returns
//      NO. That way, you can easily detect whether an object is a mixed
//      value when needed.
//
//  REVISIONS:
//      2004-12-23  UK  Documented.
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//  setStringValue:
//      Change the string value of this indicator.
//
//  REVISIONS:
//      2004-12-23  UK  Documented.
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//  stringValue:
//      Retrieve the string value of this indicator.
//
//  REVISIONS:
//      2004-12-23  UK  Documented.
// -----------------------------------------------------------------------------
"%d"// -----------------------------------------------------------------------------
//  setIntValue:
//      Change the integer value of this indicator.
//
//  REVISIONS:
//      2004-12-23  UK  Documented.
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//  intValue:
//      Retrieve the integer value of this indicator.
//
//  REVISIONS:
//      2004-12-23  UK  Documented.
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//  setBoolValue:
//      Change the boolean value of this indicator.
//
//  REVISIONS:
//      2004-12-23  UK  Documented.
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//  boolValue:
//      Retrieve the boolean value of this indicator.
//
//  REVISIONS:
//      2004-12-23  UK  Documented.
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//  setFloatValue:
//      Change the decimal number value of this indicator.
//
//  REVISIONS:
//      2004-12-23  UK  Documented.
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//  floatValue:
//      Retrieve the decimal number value of this indicator.
//
//  REVISIONS:
//      2004-12-23  UK  Documented.
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//  isDifferentAcrossSelectedItems:
//      Easy way to find out an object *isn't* a mixed value.
//
//      FIX ME! Can we make this a category on NSValue and NSString? Would that
//      be a cleaner implementation? Would that work for NSDate? Urk...
//
//  REVISIONS:
//      2004-12-23  UK  Documented.
// -----------------------------------------------------------------------------
 

This code uses the PclZip Zip File reading code, which is subject to the GNU LGPL. It also uses the GeSHi syntax highlighter, subject to the GPL. Ask if you want this for your own web site, it's free.