Tidying up to get base to compile again etc.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3376 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-12-03 16:20:31 +00:00
parent 01e9a01f93
commit abf40fe328
7 changed files with 268 additions and 232 deletions

View file

@ -1,3 +1,13 @@
Wed Dec 3 16:30:00 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* src/NSDictionary.m: Removed filesystem methods - conflict with
versions in NSFileManger.
* src/include/NSDictionary.h: Ditto
* src/NSFileManager.m: Updated dictionary access methods to MacOS spec
* src/include/NSFileManager.h: Ditto.
* src/include/NSUserDefaults.h: Made constant strings 'const'.
* src/include/externs.m: Made constant strings 'const'.
Thu Dec 3 11:00:46 1998 Adam Fedor <fedor@ultra.doc.com>
* aclocal.m4: Add OBJC_CON_AUTOLOAD and OBJC_SYS_AUTOLOAD

View file

@ -72,15 +72,7 @@
- (BOOL) writeToFile: (NSString*)path atomically: (BOOL)useAuxiliaryFile;
/* Accessing file attributes */
- (NSString *) fileGroupOwnerAccountName;
- (NSDate *) fileModificationDate;
- (NSString *) fileOwnerAccountName;
- (unsigned long) filePosixPermissions;
- (unsigned long long) fileSize;
- (unsigned long) fileSystemFileNumber;
- (unsigned long) fileSystemNumber;
- (NSString *) fileType;
/* Accessing file attributes is a catagory declared in NSFileManager.h */
@end

View file

@ -28,6 +28,8 @@
#define __NSFileManager_h_GNUSTEP_BASE_INCLUDE
#include <Foundation/NSObject.h>
#ifndef STRICT_OPENSTEP
#include <Foundation/NSUtilities.h>
#include <Foundation/NSDictionary.h>
@ -135,46 +137,58 @@
@end /* NSDirectoryEnumerator */
/* File Attributes */
extern NSString* NSFileSize;
extern NSString* NSFileModificationDate;
extern NSString* NSFileOwnerAccountNumber;
extern NSString* NSFileOwnerAccountName;
extern NSString* NSFileGroupOwnerAccountNumber;
extern NSString* NSFileReferenceCount;
extern NSString* NSFileIdentifier;
extern NSString* NSFileDeviceIdentifier;
extern NSString* NSFilePosixPermissions;
extern NSString* NSFileType;
extern NSString* const NSFileDeviceIdentifier;
extern NSString* const NSFileGroupOwnerAccountName;
extern NSString* const NSFileDeviceIdentifier;
extern NSString* const NSFileModificationDate;
extern NSString* const NSFileOwnerAccountName;
extern NSString* const NSFilePosixPermissions;
extern NSString* const NSFileReferenceCount;
extern NSString* const NSFileSize;
extern NSString* const NSFileSystemFileNumber;
extern NSString* const NSFileSystemNumber;
extern NSString* const NSFileType;
#ifndef STRICT_MACOS_X
extern NSString* const NSFileGroupOwnerAccountNumber;
extern NSString* const NSFileOwnerAccountNumber;
#endif
/* File Types */
extern NSString* NSFileTypeDirectory;
extern NSString* NSFileTypeRegular;
extern NSString* NSFileTypeSymbolicLink;
extern NSString* NSFileTypeSocket;
extern NSString* NSFileTypeFifo;
extern NSString* NSFileTypeCharacterSpecial;
extern NSString* NSFileTypeBlockSpecial;
extern NSString* NSFileTypeUnknown;
extern NSString* const NSFileTypeDirectory;
extern NSString* const NSFileTypeRegular;
extern NSString* const NSFileTypeSymbolicLink;
extern NSString* const NSFileTypeSocket;
extern NSString* const NSFileTypeFifo;
extern NSString* const NSFileTypeCharacterSpecial;
extern NSString* const NSFileTypeBlockSpecial;
extern NSString* const NSFileTypeUnknown;
/* FileSystem Attributes */
extern NSString* NSFileSystemSize;
extern NSString* NSFileSystemFreeSize;
extern NSString* NSFileSystemNodes;
extern NSString* NSFileSystemFreeNodes;
extern NSString* NSFileSystemNumber;
extern NSString* const NSFileSystemSize;
extern NSString* const NSFileSystemFreeSize;
extern NSString* const NSFileSystemNodes;
extern NSString* const NSFileSystemFreeNodes;
/* Easy access to attributes in a dictionary */
@interface NSDictionary(NSFileAttributes)
- (NSNumber*)fileSize;
- (NSString*)fileType;
- (NSNumber*)fileOwnerAccountNumber;
- (NSNumber*)fileGroupOwnerAccountNumber;
- (NSDate*)fileModificationDate;
- (NSNumber*)filePosixPermissions;
- (unsigned long long) fileSize;
- (NSString*) fileType;
- (NSString*) fileOwnerAccountName;
- (NSString*) fileGroupOwnerAccountName;
- (NSDate*) fileModificationDate;
- (unsigned long) filePosixPermissions;
- (unsigned long) fileSystemNumber;
- (unsigned long) fileSystemFileNumber;
#ifndef STRICT_MACOS_X
- (unsigned long) fileOwnerAccountNumber;
- (unsigned long) fileGroupOwnerAccountNumber;
#endif
@end
#endif
#endif /* __NSFileManager_h_GNUSTEP_BASE_INCLUDE */

View file

@ -36,42 +36,42 @@
@class NSData;
/* Standard domains */
extern NSString* NSArgumentDomain;
extern NSString* NSGlobalDomain;
extern NSString* NSRegistrationDomain;
extern NSString* const NSArgumentDomain;
extern NSString* const NSGlobalDomain;
extern NSString* const NSRegistrationDomain;
/* Public notification */
extern NSString *NSUserDefaultsDidChangeNotification;
extern NSString* const NSUserDefaultsDidChangeNotification;
/* Backwards compatibility */
#define NSUserDefaultsChanged NSUserDefaultsDidChangeNotification
/* Keys for language-dependent information */
extern NSString *NSWeekDayNameArray;
extern NSString *NSShortWeekDayNameArray;
extern NSString *NSMonthNameArray;
extern NSString *NSShortMonthNameArray;
extern NSString *NSTimeFormatString;
extern NSString *NSDateFormatString;
extern NSString *NSTimeDateFormatString;
extern NSString *NSShortTimeDateFormatString;
extern NSString *NSCurrencySymbol;
extern NSString *NSDecimalSeparator;
extern NSString *NSThousandsSeparator;
extern NSString *NSInternationalCurrencyString;
extern NSString *NSCurrencyString;
extern NSString *NSDecimalDigits;
extern NSString *NSAMPMDesignation;
extern NSString* const NSWeekDayNameArray;
extern NSString* const NSShortWeekDayNameArray;
extern NSString* const NSMonthNameArray;
extern NSString* const NSShortMonthNameArray;
extern NSString* const NSTimeFormatString;
extern NSString* const NSDateFormatString;
extern NSString* const NSTimeDateFormatString;
extern NSString* const NSShortTimeDateFormatString;
extern NSString* const NSCurrencySymbol;
extern NSString* const NSDecimalSeparator;
extern NSString* const NSThousandsSeparator;
extern NSString* const NSInternationalCurrencyString;
extern NSString* const NSCurrencyString;
extern NSString* const NSDecimalDigits;
extern NSString* const NSAMPMDesignation;
#ifndef STRICT_OPENSTEP
extern NSString *NSHourNameDesignations;
extern NSString *NSYearMonthWeekDesignations;
extern NSString *NSEarlierTimeDesignations;
extern NSString *NSLaterTimeDesignations;
extern NSString *NSThisDayDesignations;
extern NSString *NSNextDayDesignations;
extern NSString *NSNextNextDayDesignations;
extern NSString *NSPriorDayDesignations;
extern NSString *NSDateTimeOrdering;
extern NSString* const NSHourNameDesignations;
extern NSString* const NSYearMonthWeekDesignations;
extern NSString* const NSEarlierTimeDesignations;
extern NSString* const NSLaterTimeDesignations;
extern NSString* const NSThisDayDesignations;
extern NSString* const NSNextDayDesignations;
extern NSString* const NSNextNextDayDesignations;
extern NSString* const NSPriorDayDesignations;
extern NSString* const NSDateTimeOrdering;
#endif
/* Get Information about a User */

View file

@ -738,47 +738,6 @@ compareIt(id o1, id o2, void* context)
return [result autorelease];
}
/* Accessing file attributes */
- (NSString *) fileGroupOwnerAccountName
{
return [self objectForKey: NSFileGroupOwnerAccountName];
}
- (NSDate *) fileModificationDate
{
return [self objectForKey: NSFileModificationDate];
}
- (NSString *) fileOwnerAccountName
{
return [self objectForKey: NSFileOwnerAccountName];
}
- (unsigned long) filePosixPermissions
{
return [self objectForKey: NSFilePosixPermissions];
}
- (unsigned long long) fileSize
{
return [self objectForKey: NSFileSize];
}
- (unsigned long) fileSystemFileNumber
{
return [self objectForKey: NSFileSystemFileNumber];
}
- (unsigned long) fileSystemNumber
{
return [self objectForKey: NSFileSystemNumber];
}
- (NSString *) fileType
{
return [self objectForKey: NSFileType];
}
@end
@implementation NSMutableDictionary

View file

@ -600,76 +600,98 @@ static NSFileManager* defaultManager = nil;
- (NSDictionary*)fileAttributesAtPath:(NSString*)path traverseLink:(BOOL)flag
{
struct stat statbuf;
const char* cpath = [self fileSystemRepresentationWithPath:path];
struct stat statbuf;
const char* cpath = [self fileSystemRepresentationWithPath:path];
#if HAVE_PWD_H
struct passwd *pw;
struct passwd *pw;
#endif
int mode;
int count = 10;
#if HAVE_GETGRENT_H
struct group *gp;
#endif
int mode;
int count = 12;
id values[10];
id keys[10] = {
NSFileSize,
NSFileModificationDate,
NSFileOwnerAccountNumber,
NSFileGroupOwnerAccountNumber,
NSFileReferenceCount,
NSFileIdentifier,
NSFileDeviceIdentifier,
NSFilePosixPermissions,
NSFileType,
NSFileOwnerAccountName
};
id values[12];
id keys[12] = {
NSFileSize,
NSFileModificationDate,
NSFileOwnerAccountNumber,
NSFileGroupOwnerAccountNumber,
NSFileReferenceCount,
NSFileSystemNumber,
NSFileSystemFileNumber,
NSFileDeviceIdentifier,
NSFilePosixPermissions,
NSFileType,
NSFileOwnerAccountName,
NSFileGroupOwnerAccountName
};
if (stat(cpath, &statbuf) != 0)
return nil;
if (stat(cpath, &statbuf) != 0)
return nil;
values[0] = [NSNumber numberWithUnsignedLongLong:statbuf.st_size];
values[1] = [NSDate dateWithTimeIntervalSince1970:statbuf.st_mtime];
values[2] = [NSNumber numberWithUnsignedInt:statbuf.st_uid];
values[3] = [NSNumber numberWithUnsignedInt:statbuf.st_gid];
values[4] = [NSNumber numberWithUnsignedInt:statbuf.st_nlink];
values[5] = [NSNumber numberWithUnsignedLong:statbuf.st_ino];
values[6] = [NSNumber numberWithUnsignedInt:statbuf.st_dev];
values[7] = [NSNumber numberWithUnsignedInt:statbuf.st_mode];
mode = statbuf.st_mode & S_IFMT;
values[0] = [NSNumber numberWithUnsignedLongLong: statbuf.st_size];
values[1] = [NSDate dateWithTimeIntervalSince1970: statbuf.st_mtime];
values[2] = [NSNumber numberWithUnsignedInt: statbuf.st_uid];
values[3] = [NSNumber numberWithUnsignedInt: statbuf.st_gid];
values[4] = [NSNumber numberWithUnsignedInt: statbuf.st_nlink];
values[5] = [NSNumber numberWithUnsignedLong: statbuf.st_dev];
values[6] = [NSNumber numberWithUnsignedLong: statbuf.st_ino];
values[7] = [NSNumber numberWithUnsignedInt: statbuf.st_dev];
values[8] = [NSNumber numberWithUnsignedInt: statbuf.st_mode];
mode = statbuf.st_mode & S_IFMT;
if (mode == S_IFREG)
values[8] = NSFileTypeRegular;
else if (mode == S_IFDIR)
values[8] = NSFileTypeDirectory;
else if (mode == S_IFCHR)
values[8] = NSFileTypeCharacterSpecial;
else if (mode == S_IFBLK)
values[8] = NSFileTypeBlockSpecial;
if (mode == S_IFREG)
values[9] = NSFileTypeRegular;
else if (mode == S_IFDIR)
values[9] = NSFileTypeDirectory;
else if (mode == S_IFCHR)
values[9] = NSFileTypeCharacterSpecial;
else if (mode == S_IFBLK)
values[9] = NSFileTypeBlockSpecial;
#ifdef S_IFLNK
else if (mode == S_IFLNK)
values[8] = NSFileTypeSymbolicLink;
else if (mode == S_IFLNK)
values[9] = NSFileTypeSymbolicLink;
#endif
else if (mode == S_IFIFO)
values[8] = NSFileTypeFifo;
else if (mode == S_IFIFO)
values[9] = NSFileTypeFifo;
#ifdef S_IFSOCK
else if (mode == S_IFSOCK)
values[8] = NSFileTypeSocket;
else if (mode == S_IFSOCK)
values[9] = NSFileTypeSocket;
#endif
else
values[8] = NSFileTypeUnknown;
else
values[9] = NSFileTypeUnknown;
#if HAVE_PWD_H
pw = getpwuid(statbuf.st_uid);
if(pw)
{
values[9] = [NSString stringWithCString:pw->pw_name];
}
else
pw = getpwuid(statbuf.st_uid);
if (pw)
{
values[10] = [NSString stringWithCString: pw->pw_name];
}
else
#endif /* HAVE_PWD_H */
{
count = 9;
}
return [[[NSDictionary alloc]
initWithObjects:values forKeys:keys count:count]
{
values[10] = @"UnknownUser";
}
#if HAVE_GETGRENT_H
setgrent();
while ((gp = getgrent()) != 0)
if (gp->gr_gid == statbuf.st_uid)
break;
endgrent();
if (gp)
{
values[11] = [NSString stringWithCString: gp->gr_name];
}
else
#endif
{
values[11] = @"UnknownGroup";
}
return [[[NSDictionary alloc]
initWithObjects: values forKeys: keys count: count]
autorelease];
}
@ -745,7 +767,7 @@ static NSFileManager* defaultManager = nil;
values[1] = [NSNumber numberWithLongLong:freesize];
values[2] = [NSNumber numberWithLong:statfsbuf.f_files];
values[3] = [NSNumber numberWithLong:statfsbuf.f_ffree];
values[4] = [NSNumber numberWithUnsignedInt:statbuf.st_dev];
values[4] = [NSNumber numberWithUnsignedLong:statbuf.st_dev];
return [[[NSDictionary alloc]
initWithObjects:values forKeys:keys count:5]
@ -1115,24 +1137,62 @@ static NSFileManager* defaultManager = nil;
*/
@implementation NSDictionary(NSFileAttributes)
- (NSNumber*)fileSize
{return [self objectForKey:NSFileSize];}
- (NSString*)fileType;
{return [self objectForKey:NSFileType];}
- (NSNumber*)fileOwnerAccountNumber;
{return [self objectForKey:NSFileOwnerAccountNumber];}
- (NSNumber*)fileGroupOwnerAccountNumber;
{return [self objectForKey:NSFileGroupOwnerAccountNumber];}
- (NSDate*)fileModificationDate;
{return [self objectForKey:NSFileModificationDate];}
- (NSNumber*)filePosixPermissions;
{return [self objectForKey:NSFilePosixPermissions];}
- (unsigned long long) fileSize
{
return [[self objectForKey: NSFileSize] unsignedLongLongValue];
}
- (NSString*) fileType
{
return [self objectForKey: NSFileType];
}
- (NSString*) fileOwnerAccountName
{
return [self objectForKey: NSFileOwnerAccountName];
}
- (unsigned long) fileOwnerAccountNumber
{
return [[self objectForKey: NSFileOwnerAccountNumber] unsignedIntValue];
}
- (NSString*) fileGroupOwnerAccountName
{
return [self objectForKey: NSFileGroupOwnerAccountName];
}
- (unsigned long) fileGroupOwnerAccountNumber
{
return [[self objectForKey: NSFileGroupOwnerAccountNumber] unsignedIntValue];
}
- (NSDate*) fileModificationDate
{
return [self objectForKey: NSFileModificationDate];
}
- (unsigned long) filePosixPermissions
{
return [[self objectForKey: NSFilePosixPermissions] unsignedLongValue];
}
- (unsigned long) fileSystemNumber
{
return [[self objectForKey: NSFileSystemNumber] unsignedLongValue];
}
- (unsigned long) fileSystemFileNumber
{
return [[self objectForKey: NSFileSystemFileNumber] unsignedLongValue];
}
@end
@implementation NSFileManager (PrivateMethods)
- (BOOL)_copyFile:(NSString*)source toFile:(NSString*)destination
handler:handler
- (BOOL)_copyFile:(NSString*)source
toFile:(NSString*)destination
handler:handler
{
NSDictionary* attributes;
int i, bufsize = 8096;

View file

@ -88,70 +88,71 @@ NSString* StreamException = @"StreamException";
/* File Attributes */
NSString* NSFileSize = @"NSFileSize";
NSString* NSFileModificationDate = @"NSFileModificationDate";
NSString* NSFileOwnerAccountNumber = @"NSFileOwnerAccountNumber";
NSString* NSFileOwnerAccountName = @"NSFileOwnerAccountName";
NSString* NSFileGroupOwnerAccountNumber = @"NSFileGroupOwnerAccountNumber";
NSString* NSFileReferenceCount = @"NSFileReferenceCount";
NSString* NSFileIdentifier = @"NSFileIdentifier";
NSString* NSFileDeviceIdentifier = @"NSFileDeviceIdentifier";
NSString* NSFilePosixPermissions = @"NSFilePosixPermissions";
NSString* NSFileType = @"NSFileType";
NSString* const NSFileDeviceIdentifier = @"NSFileDeviceIdentifier";
NSString* const NSFileGroupOwnerAccountName = @"NSFileGroupOwnerAccountName";
NSString* const NSFileGroupOwnerAccountNumber = @"NSFileGroupOwnerAccountNumber";
NSString* const NSFileModificationDate = @"NSFileModificationDate";
NSString* const NSFileOwnerAccountName = @"NSFileOwnerAccountName";
NSString* const NSFileOwnerAccountNumber = @"NSFileOwnerAccountNumber";
NSString* const NSFilePosixPermissions = @"NSFilePosixPermissions";
NSString* const NSFileReferenceCount = @"NSFileReferenceCount";
NSString* const NSFileSize = @"NSFileSize";
NSString* const NSFileSystemFileNumber = @"NSFileSystemFileNumber";
NSString* const NSFileSystemNumber = @"NSFileSystemNumber";
NSString* const NSFileType = @"NSFileType";
/* File Types */
NSString* NSFileTypeDirectory = @"NSFileTypeDirectory";
NSString* NSFileTypeRegular = @"NSFileTypeRegular";
NSString* NSFileTypeSymbolicLink = @"NSFileTypeSymbolicLink";
NSString* NSFileTypeSocket = @"NSFileTypeSocket";
NSString* NSFileTypeFifo = @"NSFileTypeFifo";
NSString* NSFileTypeCharacterSpecial = @"NSFileTypeCharacterSpecial";
NSString* NSFileTypeBlockSpecial = @"NSFileTypeBlockSpecial";
NSString* NSFileTypeUnknown = @"NSFileTypeUnknown";
NSString* const NSFileTypeDirectory = @"NSFileTypeDirectory";
NSString* const NSFileTypeRegular = @"NSFileTypeRegular";
NSString* const NSFileTypeSymbolicLink = @"NSFileTypeSymbolicLink";
NSString* const NSFileTypeSocket = @"NSFileTypeSocket";
NSString* const NSFileTypeFifo = @"NSFileTypeFifo";
NSString* const NSFileTypeCharacterSpecial = @"NSFileTypeCharacterSpecial";
NSString* const NSFileTypeBlockSpecial = @"NSFileTypeBlockSpecial";
NSString* const NSFileTypeUnknown = @"NSFileTypeUnknown";
/* FileSystem Attributes */
NSString* NSFileSystemSize = @"NSFileSystemSize";
NSString* NSFileSystemFreeSize = @"NSFileSystemFreeSize";
NSString* NSFileSystemNodes = @"NSFileSystemNodes";
NSString* NSFileSystemFreeNodes = @"NSFileSystemFreeNodes";
NSString* NSFileSystemNumber = @"NSFileSystemNumber";
NSString* const NSFileSystemSize = @"NSFileSystemSize";
NSString* const NSFileSystemFreeSize = @"NSFileSystemFreeSize";
NSString* const NSFileSystemNodes = @"NSFileSystemNodes";
NSString* const NSFileSystemFreeNodes = @"NSFileSystemFreeNodes";
/* Standard domains */
NSString* NSArgumentDomain = @"NSArgumentDomain";
NSString* NSGlobalDomain = @"NSGlobalDomain";
NSString* NSRegistrationDomain = @"NSRegistrationDomain";
NSString* const NSArgumentDomain = @"NSArgumentDomain";
NSString* const NSGlobalDomain = @"NSGlobalDomain";
NSString* const NSRegistrationDomain = @"NSRegistrationDomain";
/* Public notification */
NSString *NSUserDefaultsDidChangeNotification = @"NSUserDefaultsDidChangeNotification";
NSString* const NSUserDefaultsDidChangeNotification = @"NSUserDefaultsDidChangeNotification";
/* Keys for language-dependent information */
NSString *NSWeekDayNameArray = @"NSWeekDayNameArray";
NSString *NSShortWeekDayNameArray = @"NSShortWeekDayNameArray";
NSString *NSMonthNameArray = @"NSMonthNameArray";
NSString *NSShortMonthNameArray = @"NSShortMonthNameArray";
NSString *NSTimeFormatString = @"NSTimeFormatString";
NSString *NSDateFormatString = @"NSDateFormatString";
NSString *NSTimeDateFormatString = @"NSTimeDateFormatString";
NSString *NSShortTimeDateFormatString = @"NSShortTimeDateFormatString";
NSString *NSCurrencySymbol = @"NSCurrencySymbol";
NSString *NSDecimalSeparator = @"NSDecimalSeparator";
NSString *NSThousandsSeparator = @"NSThousandsSeparator";
NSString *NSInternationalCurrencyString = @"NSInternationalCurrencyString";
NSString *NSCurrencyString = @"NSCurrencyString";
NSString *NSDecimalDigits = @"NSDecimalDigits";
NSString *NSAMPMDesignation = @"NSAMPMDesignation";
NSString* const NSWeekDayNameArray = @"NSWeekDayNameArray";
NSString* const NSShortWeekDayNameArray = @"NSShortWeekDayNameArray";
NSString* const NSMonthNameArray = @"NSMonthNameArray";
NSString* const NSShortMonthNameArray = @"NSShortMonthNameArray";
NSString* const NSTimeFormatString = @"NSTimeFormatString";
NSString* const NSDateFormatString = @"NSDateFormatString";
NSString* const NSTimeDateFormatString = @"NSTimeDateFormatString";
NSString* const NSShortTimeDateFormatString = @"NSShortTimeDateFormatString";
NSString* const NSCurrencySymbol = @"NSCurrencySymbol";
NSString* const NSDecimalSeparator = @"NSDecimalSeparator";
NSString* const NSThousandsSeparator = @"NSThousandsSeparator";
NSString* const NSInternationalCurrencyString = @"NSInternationalCurrencyString";
NSString* const NSCurrencyString = @"NSCurrencyString";
NSString* const NSDecimalDigits = @"NSDecimalDigits";
NSString* const NSAMPMDesignation = @"NSAMPMDesignation";
NSString *NSHourNameDesignations = @"NSHourNameDesignations";
NSString *NSYearMonthWeekDesignations = @"NSYearMonthWeekDesignations";
NSString *NSEarlierTimeDesignations = @"NSEarlierTimeDesignations";
NSString *NSLaterTimeDesignations = @"NSLaterTimeDesignations";
NSString *NSThisDayDesignations = @"NSThisDayDesignations";
NSString *NSNextDayDesignations = @"NSNextDayDesignations";
NSString *NSNextNextDayDesignations = @"NSNextNextDayDesignations";
NSString *NSPriorDayDesignations = @"NSPriorDayDesignations";
NSString *NSDateTimeOrdering = @"NSDateTimeOrdering";
NSString* const NSHourNameDesignations = @"NSHourNameDesignations";
NSString* const NSYearMonthWeekDesignations = @"NSYearMonthWeekDesignations";
NSString* const NSEarlierTimeDesignations = @"NSEarlierTimeDesignations";
NSString* const NSLaterTimeDesignations = @"NSLaterTimeDesignations";
NSString* const NSThisDayDesignations = @"NSThisDayDesignations";
NSString* const NSNextDayDesignations = @"NSNextDayDesignations";
NSString* const NSNextNextDayDesignations = @"NSNextNextDayDesignations";
NSString* const NSPriorDayDesignations = @"NSPriorDayDesignations";
NSString* const NSDateTimeOrdering = @"NSDateTimeOrdering";
/* Standard MapTable callbacks */