NSDateFormatter and NSNumberFormatter additions

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@11626 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Laurent Julliard 2001-12-04 22:23:51 +00:00
parent 63cc43c1ac
commit 07f2ac5a37

View file

@ -174,6 +174,39 @@ extern NSString *GormLinkPboardType;
- (void) takeClassFrom: (id)sender;
@end
/*
* NSDateFormatter and NSNumberFormatter extensions
* for Gorm Formatters used in the Data Palette
*/
@interface NSDateFormatter (GormAdditions)
+ (void) initialize;
+ (int) formatCount;
+ (NSString *) formatAtIndex: (int)index;
+ (int) indexOfFormat: (NSString *) format;
+ (NSString *) defaultFormat;
+ (id) defaultFormatValue;
@end
@interface NSNumberFormatter (GormAdditions)
+ (void) initialize;
+ (int) formatCount;
+ (NSString *) formatAtIndex: (int)index;
+ (NSString *) positiveFormatAtIndex: (int)index;
+ (NSString *) zeroFormatAtIndex: (int)index;
+ (NSString *) negativeFormatAtIndex: (int)index;
+ (NSDecimalNumber *) positiveValueAtIndex: (int)index;
+ (NSDecimalNumber *) negativeValueAtIndex: (int)index;
+ (int) indexOfFormat: format;
+ (NSString *) defaultFormat;
+ (id) defaultFormatValue;
- (NSString *) zeroFormat;
@end
/*
* Functions for drawing knobs etc.
*/