home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / Foundation.framework / Versions / B / Headers / NSFormatter.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-25  |  968 b   |  33 lines

  1. /*    NSFormatter.h
  2.     Copyright (c) 1995-1996, NeXT Software, Inc, All rights reserved.
  3. */
  4.  
  5. #ifndef STRICT_OPENSTEP
  6.  
  7. #import <Foundation/NSObject.h>
  8.  
  9. @class NSString;
  10. @class NSAttributedString;
  11. @class NSDictionary;
  12.  
  13. @interface NSFormatter : NSObject <NSCopying, NSCoding>
  14.  
  15. - (NSString *)stringForObjectValue:(id)obj;
  16.     // Raises NSInvalidArgumentException
  17.  
  18. - (NSAttributedString *)attributedStringForObjectValue:(id)obj withDefaultAttributes:(NSDictionary *)attrs;
  19.     // Returns nil, indicating that this formatter does not provide an attributed string for obj.
  20.  
  21. - (NSString *)editingStringForObjectValue:(id)obj;
  22.     // Returns [self stringForObjectValue:obj];
  23.  
  24. - (BOOL)getObjectValue:(id *)obj forString:(NSString *)string errorDescription:(NSString **)error;
  25.     // Raises NSInvalidArgumentException
  26.  
  27. - (BOOL)isPartialStringValid:(NSString *)partialString newEditingString:(NSString **)newString errorDescription:(NSString **)error;
  28.     // Returns YES
  29.  
  30. @end
  31.  
  32. #endif
  33.