Up

GSWeb: Utilities

Authors

Manuel Guesdon (mguesdon@orange-concept.com)

Version: 1.19

Date: 2004/09/01 14:58:56

Copyright: (C) 1999-2004 Free Software Foundation, Inc.


Contents -

  1. Software documentation for the NSFooNumberFormatter class
  2. Software documentation for the NSMutableOrderedArray class
  3. Software documentation for the NSArray(NSPerformSelectorWith2Objects) category
  4. Software documentation for the NSBundle(NSBundleAllFrameworks) category
  5. Software documentation for the NSData(Base64) category
  6. Software documentation for the NSData(SBNSData) category
  7. Software documentation for the NSData(Search) category
  8. Software documentation for the NSDate(NSDateHTMLDescription) category
  9. Software documentation for the NSDictionary(FromNSArray) category
  10. Software documentation for the NSDictionary(NSPerformSelector) category
  11. Software documentation for the NSDictionary(SBDictionary) category
  12. Software documentation for the NSException(NSBuild) category
  13. Software documentation for the NSException(NSExceptionUserInfoAdd) category
  14. Software documentation for the NSMutableData(Replace) category
  15. Software documentation for the NSMutableData(SBNSData) category
  16. Software documentation for the NSMutableDictionary(SBMutableDictionary) category
  17. Software documentation for the NSNumber(SBNumber) category
  18. Software documentation for the NSObject(NSObjectVoid) category
  19. Software documentation for the NSString(SBGoodPath) category
  20. GSWUtils types
  21. GSWUtils functions

Software documentation for the NSFooNumberFormatter class

NSFooNumberFormatter : NSFormatter

Declared in:
Foundation/GSWUtils.h
Conforms to:
NSCoding
NSCopying
Standards:

Description forthcoming.


Instance Variables

Method summary

getObjectValue: forString: errorDescription: 

- (BOOL) getObjectValue: (id*)anObject forString: (NSString*)string errorDescription: (NSString**)error;

Description forthcoming.


stringForObjectValue: 

- (NSString*) stringForObjectValue: (id)anObject;

Description forthcoming.




Instance Variables for NSFooNumberFormatter Class

_type

@protected NSNumFmtType _type;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.





Software documentation for the NSMutableOrderedArray class

NSMutableOrderedArray : NSMutableArray

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.


Instance Variables

Method summary

addObject: 

- (void) addObject: (id)object;

Description forthcoming.


addObjectsFromArray: 

- (void) addObjectsFromArray: (NSArray*)array;

Description forthcoming.


insertObject: atIndex: 

- (void) insertObject: (id)object atIndex: (unsigned int)index;

Description forthcoming.


replaceObjectAtIndex: withObject: 

- (void) replaceObjectAtIndex: (unsigned int)index withObject: (id)object;

Description forthcoming.


replaceObjectsInRange: withObjectsFromArray: 

- (void) replaceObjectsInRange: (NSRange)range withObjectsFromArray: (NSArray*)array;

Description forthcoming.


replaceObjectsInRange: withObjectsFromArray: range: 

- (void) replaceObjectsInRange: (NSRange)range withObjectsFromArray: (NSArray*)array range: (NSRange)arrayRange;

Description forthcoming.


setArray: 

- (void) setArray: (NSArray*)array;

Description forthcoming.




Instance Variables for NSMutableOrderedArray Class

_array

@protected NSMutableArray* _array;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.


_compareSelector

@protected SEL _compareSelector;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.





Software documentation for the NSArray(NSPerformSelectorWith2Objects) category

NSArray(NSPerformSelectorWith2Objects)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

makeObjectsPerformIfPossible: 

- (void) makeObjectsPerformIfPossible: (SEL)aSelector;

Description forthcoming.


makeObjectsPerformIfPossible: withObject: 

- (void) makeObjectsPerformIfPossible: (SEL)aSelector withObject: (id)argument;

Description forthcoming.


makeObjectsPerformSelector: withObject: withObject: 

- (void) makeObjectsPerformSelector: (SEL)selector withObject: (id)object1 withObject: (id)object2;

Description forthcoming.


makeObjectsPerformSelectorIfPossible: 

- (void) makeObjectsPerformSelectorIfPossible: (SEL)aSelector;

Description forthcoming.


makeObjectsPerformSelectorIfPossible: withObject: 

- (void) makeObjectsPerformSelectorIfPossible: (SEL)aSelector withObject: (id)argument;

Description forthcoming.


makeObjectsPerformSelectorIfPossible: withObject: withObject: 

- (void) makeObjectsPerformSelectorIfPossible: (SEL)aSelector withObject: (id)argument1 withObject: (id)argument2;

Description forthcoming.


Software documentation for the NSBundle(NSBundleAllFrameworks) category

NSBundle(NSBundleAllFrameworks)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

bundleName 

- (NSString*) bundleName;

Description forthcoming.


Software documentation for the NSData(Base64) category

NSData(Base64)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

base64Representation 

- (NSString*) base64Representation;

Returns an NSString object containing an ASCII base64 representation of the receiver.
If you need the hexadecimal representation as raw byte data, use code like -

   hexData = [[sourceData base64Representation]
     dataUsingEncoding: NSASCIIStringEncoding];
 


initWithBase64Representation: 

- (id) initWithBase64Representation: (NSString*)string;

Initialises the receiver with the supplied string data which contains a base64 coding of the bytes. The parsing of the string is fairly tolerant, ignoring whitespace.
If the string does not contain one or more valid base64 characters then an exception is raised.


Software documentation for the NSData(SBNSData) category

NSData(SBNSData)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

componentsSeparatedByData: 

- (NSArray*) componentsSeparatedByData: (NSData*)aSeparator;

Description forthcoming.


dataByDeletingFirstBytesCount: 

- (NSData*) dataByDeletingFirstBytesCount: (unsigned int)bytesCount;

Description forthcoming.


dataByDeletingLastBytesCount: 

- (NSData*) dataByDeletingLastBytesCount: (unsigned int)bytesCount;

Description forthcoming.


rangeOfData: 

- (NSRange) rangeOfData: (NSData*)data;

Description forthcoming.


rangeOfData: options: 

- (NSRange) rangeOfData: (NSData*)data options: (unsigned)mask;

Description forthcoming.


rangeOfData: options: range: 

- (NSRange) rangeOfData: (NSData*)aData options: (unsigned)mask range: (NSRange)aRange;

Description forthcoming.


Software documentation for the NSData(Search) category

NSData(Search)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

rangeOfData: range: 

- (NSRange) rangeOfData: (NSData*)data range: (NSRange)aRange;

Description forthcoming.


Software documentation for the NSDate(NSDateHTMLDescription) category

NSDate(NSDateHTMLDescription)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

htmlDescription 

- (NSString*) htmlDescription;

Description forthcoming.


Software documentation for the NSDictionary(FromNSArray) category

NSDictionary(FromNSArray)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

dictionaryWithArray: onSelector: 

+ (id) dictionaryWithArray: (NSArray*)array onSelector: (SEL)sel;

Description forthcoming.


dictionaryWithArray: onSelector: withObject: 

+ (id) dictionaryWithArray: (NSArray*)array onSelector: (SEL)sel withObject: (id)anObject;

Description forthcoming.


Software documentation for the NSDictionary(NSPerformSelector) category

NSDictionary(NSPerformSelector)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

makeObjectsPerformIfPossible: 

- (void) makeObjectsPerformIfPossible: (SEL)aSelector;

Description forthcoming.


makeObjectsPerformIfPossible: withObject: 

- (void) makeObjectsPerformIfPossible: (SEL)aSelector withObject: (id)argument;

Description forthcoming.


makeObjectsPerformSelector: 

- (void) makeObjectsPerformSelector: (SEL)selector;

Description forthcoming.


makeObjectsPerformSelector: withObject: 

- (void) makeObjectsPerformSelector: (SEL)selector withObject: (id)object;

Description forthcoming.


makeObjectsPerformSelector: withObject: withObject: 

- (void) makeObjectsPerformSelector: (SEL)selector withObject: (id)object1 withObject: (id)object2;

Description forthcoming.


makeObjectsPerformSelectorIfPossible: 

- (void) makeObjectsPerformSelectorIfPossible: (SEL)aSelector;

Description forthcoming.


makeObjectsPerformSelectorIfPossible: withObject: 

- (void) makeObjectsPerformSelectorIfPossible: (SEL)aSelector withObject: (id)object;

Description forthcoming.


makeObjectsPerformSelectorIfPossible: withObject: withObject: 

- (void) makeObjectsPerformSelectorIfPossible: (SEL)aSelector withObject: (id)object1 withObject: (id)object2;

Description forthcoming.


Software documentation for the NSDictionary(SBDictionary) category

NSDictionary(SBDictionary)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

dictionaryWithDictionary: andDefaultEntriesFromDictionary: 

+ (NSDictionary*) dictionaryWithDictionary: (NSDictionary*)dictionary andDefaultEntriesFromDictionary: (NSDictionary*)dictionaryDefaults;

Description forthcoming.


dictionaryByAddingEntriesFromDictionary: 

- (NSDictionary*) dictionaryByAddingEntriesFromDictionary: (NSDictionary*)dictionary;

Description forthcoming.


dictionaryBySettingObject: forKey: 

- (NSDictionary*) dictionaryBySettingObject: (id)object forKey: (id)key;

Description forthcoming.


objectForKey: withDefaultObject: 

- (id) objectForKey: (id)key withDefaultObject: (id)defaultObject;

Description forthcoming.


Software documentation for the NSException(NSBuild) category

NSException(NSBuild)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

exceptionWithName: format: ,...

+ (NSException*) exceptionWithName: (NSString*)excptName format: (NSString*)format,...;

Description forthcoming.


Software documentation for the NSException(NSExceptionUserInfoAdd) category

NSException(NSExceptionUserInfoAdd)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

exceptionByAddingToUserInfoKey: format: ,...

- (NSException*) exceptionByAddingToUserInfoKey: (id)key format: (NSString*)format,...;

Description forthcoming.


exceptionByAddingUserInfo: 

- (NSException*) exceptionByAddingUserInfo: (NSDictionary*)aUserInfo;

Description forthcoming.


exceptionByAddingUserInfoFrameInfo: 

- (NSException*) exceptionByAddingUserInfoFrameInfo: (NSString*)frameInfo;

Description forthcoming.


exceptionByAddingUserInfoFrameInfoFormat: ,...

- (NSException*) exceptionByAddingUserInfoFrameInfoFormat: (NSString*)format,...;

Description forthcoming.


exceptionByAddingUserInfoFrameInfoFunction: file: line: format: ,...

- (NSException*) exceptionByAddingUserInfoFrameInfoFunction: (const char*)fn file: (const char*)file line: (int)line format: (NSString*)format,...;

Description forthcoming.


exceptionByAddingUserInfoFrameInfoObject: sel: file: line: format: ,...

- (NSException*) exceptionByAddingUserInfoFrameInfoObject: (id)obj sel: (SEL)sel file: (const char*)file line: (int)line format: (NSString*)format,...;

Description forthcoming.


exceptionByAddingUserInfoKey: format: ,...

- (NSException*) exceptionByAddingUserInfoKey: (id)key format: (NSString*)format,...;

Description forthcoming.


isValidationException 

- (BOOL) isValidationException;

Description forthcoming.


Software documentation for the NSMutableData(Replace) category

NSMutableData(Replace)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

replaceOccurrencesOfData: withData: range: 

- (unsigned int) replaceOccurrencesOfData: (NSData*)replace withData: (NSData*)by range: (NSRange)searchRange;

Description forthcoming.


Software documentation for the NSMutableData(SBNSData) category

NSMutableData(SBNSData)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

deleteFirstBytesCount: 

- (void) deleteFirstBytesCount: (unsigned int)bytesCount;

Description forthcoming.


deleteLastBytesCount: 

- (void) deleteLastBytesCount: (unsigned int)bytesCount;

Description forthcoming.


Software documentation for the NSMutableDictionary(SBMutableDictionary) category

NSMutableDictionary(SBMutableDictionary)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

addDefaultEntriesFromDictionary: 

- (void) addDefaultEntriesFromDictionary: (NSDictionary*)dictionary;

Description forthcoming.


extractObjectsForKeysWithPrefix: removePrefix: 

- (NSDictionary*) extractObjectsForKeysWithPrefix: (NSString*)prefix removePrefix: (BOOL)removePrefix;

Description forthcoming.


setDefaultObject: forKey: 

- (void) setDefaultObject: (id)object forKey: (id)key;

Description forthcoming.


Software documentation for the NSNumber(SBNumber) category

NSNumber(SBNumber)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

maxValueOf: and: 

+ (NSNumber*) maxValueOf: (NSNumber*)val0 and: (NSNumber*)val1;

Description forthcoming.


minValueOf: and: 

+ (NSNumber*) minValueOf: (NSNumber*)val0 and: (NSNumber*)val1;

Description forthcoming.


Software documentation for the NSObject(NSObjectVoid) category

NSObject(NSObjectVoid)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

className 

+ (NSString*) className;

Description forthcoming.


nilMethod 

+ (id) nilMethod;

Description forthcoming.


className 

- (NSString*) className;

Description forthcoming.


nilMethod 

- (id) nilMethod;

Description forthcoming.


performSelectorIfPossible: 

- (id) performSelectorIfPossible: (SEL)aSelector;

Description forthcoming.


performSelectorIfPossible: withObject: 

- (id) performSelectorIfPossible: (SEL)aSelector withObject: (id)anObject;

Description forthcoming.


performSelectorIfPossible: withObject: withObject: 

- (id) performSelectorIfPossible: (SEL)aSelector withObject: (id)object1 withObject: (id)object2;

Description forthcoming.


Software documentation for the NSString(SBGoodPath) category

NSString(SBGoodPath)

Declared in:
Foundation/GSWUtils.h
Standards:

Description forthcoming.

Method summary

stringGoodPath 

- (NSString*) stringGoodPath;

Description forthcoming.


GSWUtils types

BYTE

typedef unsigned char BYTE;

Description forthcoming.


NSNumFmtType

typedef enum _NSNumFmtType NSNumFmtType;

Description forthcoming.


UINT

typedef unsigned int UINT;

Description forthcoming.


UINT16

typedef unsigned short int UINT16;

Description forthcoming.


UINT32

typedef unsigned int UINT32;

Description forthcoming.


UINT8

typedef unsigned char UINT8;

Description forthcoming.


GSWUtils functions

ClassIsKindOfClass

BOOL ClassIsKindOfClass(Class classA, Class classB);

Description forthcoming.



Up