2001-12-17 14:31:42 +00:00
|
|
|
/** All of the external data
|
1997-09-13 17:52:31 +00:00
|
|
|
Copyright (C) 1997 Free Software Foundation, Inc.
|
2005-02-22 11:22:44 +00:00
|
|
|
|
1997-09-13 17:52:31 +00:00
|
|
|
Written by: Scott Christley <scottc@net-community.com>
|
|
|
|
Date: August 1997
|
2005-02-22 11:22:44 +00:00
|
|
|
|
1997-09-13 17:52:31 +00:00
|
|
|
This file is part of the GNUstep Base Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
2007-09-14 11:36:11 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
1997-09-13 17:52:31 +00:00
|
|
|
License as published by the Free Software Foundation; either
|
2008-06-08 10:38:33 +00:00
|
|
|
version 2 of the License, or (at your option) any later version.
|
2005-02-22 11:22:44 +00:00
|
|
|
|
1997-09-13 17:52:31 +00:00
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
2005-02-22 11:22:44 +00:00
|
|
|
|
2007-09-14 11:36:11 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
1997-09-13 17:52:31 +00:00
|
|
|
License along with this library; if not, write to the Free
|
2006-10-11 05:26:14 +00:00
|
|
|
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02111 USA.
|
2005-02-22 11:22:44 +00:00
|
|
|
*/
|
1997-09-13 17:52:31 +00:00
|
|
|
|
2010-02-19 08:12:46 +00:00
|
|
|
#import "common.h"
|
2000-07-03 11:47:17 +00:00
|
|
|
|
2010-02-17 11:47:06 +00:00
|
|
|
#import "Foundation/NSArray.h"
|
|
|
|
#import "Foundation/NSException.h"
|
1997-09-13 17:52:31 +00:00
|
|
|
|
2010-02-17 11:47:06 +00:00
|
|
|
#import "GSPrivate.h"
|
2003-11-06 21:11:39 +00:00
|
|
|
|
2004-09-19 23:19:53 +00:00
|
|
|
/*
|
|
|
|
PENDING some string constants are scattered about in the class impl
|
|
|
|
files and should be moved here
|
|
|
|
furthermore, the test for this in Testing/exported-strings.m
|
|
|
|
needs to be updated
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2000-06-30 11:59:59 +00:00
|
|
|
/*
|
2003-11-06 21:11:39 +00:00
|
|
|
* NSConnection Notification Strings.
|
2000-06-30 11:59:59 +00:00
|
|
|
*/
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSConnectionDidDieNotification = @"NSConnectionDidDieNotification";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSConnectionDidInitializeNotification = @"NSConnectionDidInitializeNotification";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
1997-09-13 17:52:31 +00:00
|
|
|
|
2004-09-19 23:19:53 +00:00
|
|
|
/*
|
|
|
|
* NSDistributedNotificationCenter types.
|
|
|
|
*/
|
|
|
|
NSString *NSLocalNotificationCenterType = @"NSLocalNotificationCenterType";
|
|
|
|
NSString *GSNetworkNotificationCenterType = @"GSNetworkNotificationCenterType";
|
2005-04-12 09:48:04 +00:00
|
|
|
NSString *GSPublicNotificationCenterType = @"GSPublicNotificationCenterType";
|
2004-09-19 23:19:53 +00:00
|
|
|
|
2000-06-30 11:59:59 +00:00
|
|
|
/*
|
|
|
|
* NSThread Notifications
|
|
|
|
*/
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSWillBecomeMultiThreadedNotification = @"NSWillBecomeMultiThreadedNotification";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSThreadDidStartNotification = @"NSThreadDidStartNotification";
|
2000-11-12 07:41:24 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSThreadWillExitNotification = @"NSThreadWillExitNotification";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
1997-09-13 17:52:31 +00:00
|
|
|
|
2000-06-30 11:59:59 +00:00
|
|
|
/*
|
|
|
|
* Port Notifications
|
|
|
|
*/
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSPortDidBecomeInvalidNotification = @"NSPortDidBecomeInvalidNotification";
|
1997-09-13 17:52:31 +00:00
|
|
|
|
2004-09-19 23:19:53 +00:00
|
|
|
/* NSTask notifications */
|
|
|
|
NSString *NSTaskDidTerminateNotification = @"NSTaskDidTerminateNotification";
|
|
|
|
|
|
|
|
/* NSUndoManager notifications */
|
|
|
|
NSString *NSUndoManagerCheckpointNotification = @"NSUndoManagerCheckpointNotification";
|
|
|
|
|
|
|
|
NSString *NSUndoManagerDidOpenUndoGroupNotification = @"NSUndoManagerDidOpenUndoGroupNotification";
|
|
|
|
|
|
|
|
NSString *NSUndoManagerDidRedoChangeNotification = @"NSUndoManagerDidRedoChangeNotification";
|
|
|
|
|
|
|
|
NSString *NSUndoManagerDidUndoChangeNotification = @"NSUndoManagerDidUndoChangeNotification";
|
|
|
|
|
|
|
|
NSString *NSUndoManagerWillCloseUndoGroupNotification = @"NSUndoManagerWillCloseUndoGroupNotification";
|
|
|
|
|
|
|
|
NSString *NSUndoManagerWillRedoChangeNotification = @"NSUndoManagerWillRedoChangeNotification";
|
|
|
|
|
|
|
|
NSString *NSUndoManagerWillUndoChangeNotification = @"NSUndoManagerWillUndoChangeNotification";
|
|
|
|
|
2019-07-03 08:36:24 +00:00
|
|
|
/*
|
|
|
|
* NSUbiquitousKeyValueStore notifications
|
|
|
|
*/
|
|
|
|
NSString *NSUbiquitousKeyValueStoreDidChangeExternallyNotification = @"NSUbiquitousKeyValueStoreDidChangeExternallyNotification";
|
|
|
|
NSString *NSUbiquitousKeyValueStoreChangeReasonKey = @"NSUbiquitousKeyValueStoreChangeReasonKey";
|
2000-06-30 11:59:59 +00:00
|
|
|
|
2004-09-19 23:19:53 +00:00
|
|
|
/* NSURL constants */
|
|
|
|
NSString *NSURLFileScheme = @"file";
|
2000-06-30 11:59:59 +00:00
|
|
|
|
2017-06-21 20:44:40 +00:00
|
|
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
|
|
|
|
NSString *NSURLNameKey = @"NSURLNameKey";
|
|
|
|
NSString *NSURLLocalizedNameKey = @"NSURLLocalizedNameKey";
|
|
|
|
NSString *NSURLIsRegularFileKey = @"NSURLIsRegularFileKey";
|
|
|
|
NSString *NSURLIsDirectoryKey = @"NSURLIsDirectoryKey";
|
|
|
|
NSString *NSURLIsSymbolicLinkKey = @"NSURLIsSymbolicLinkKey";
|
|
|
|
NSString *NSURLIsVolumeKey = @"NSURLIsVolumeKey";
|
|
|
|
NSString *NSURLIsPackageKey = @"NSURLIsPackageKey";
|
|
|
|
NSString *NSURLIsSystemImmutableKey = @"NSURLIsSystemImmutableKey";
|
|
|
|
NSString *NSURLIsUserImmutableKey = @"NSURLIsUserImmutableKey";
|
|
|
|
NSString *NSURLIsHiddenKey = @"NSURLIsHiddenKey";
|
|
|
|
NSString *NSURLHasHiddenExtensionKey = @"NSURLHasHiddenExtensionKey";
|
|
|
|
NSString *NSURLCreationDateKey = @"NSURLCreationDateKey";
|
|
|
|
NSString *NSURLContentAccessDateKey = @"NSURLContentAccessDateKey";
|
|
|
|
NSString *NSURLContentModificationDateKey = @"NSURLContentModificationDateKey";
|
|
|
|
NSString *NSURLAttributeModificationDateKey = @"NSURLAttributeModificationDateKey";
|
|
|
|
NSString *NSURLLinkCountKey = @"NSURLLinkCountKey";
|
|
|
|
NSString *NSURLParentDirectoryURLKey = @"NSURLParentDirectoryURLKey";
|
|
|
|
NSString *NSURLVolumeURLKey = @"NSURLVolumeURLKey";
|
|
|
|
NSString *NSURLTypeIdentifierKey = @"NSURLTypeIdentifierKey";
|
|
|
|
NSString *NSURLLocalizedTypeDescriptionKey = @"NSURLLocalizedTypeDescriptionKey";
|
|
|
|
NSString *NSURLLabelNumberKey = @"NSURLLabelNumberKey";
|
|
|
|
NSString *NSURLLabelColorKey = @"NSURLLabelColorKey";
|
|
|
|
NSString *NSURLLocalizedLabelKey = @"NSURLLocalizedLabelKey";
|
|
|
|
NSString *NSURLEffectiveIconKey = @"NSURLEffectiveIconKey";
|
|
|
|
NSString *NSURLCustomIconKey = @"NSURLCustomIconKey";
|
|
|
|
NSString *NSURLFileSizeKey = @"NSURLFileSizeKey";
|
|
|
|
NSString *NSURLFileAllocatedSizeKey = @"NSURLFileAllocatedSizeKey";
|
|
|
|
NSString *NSURLIsAliasFileKey = @"NSURLIsAliasFileKey";
|
|
|
|
NSString *NSURLVolumeLocalizedFormatDescriptionKey = @"NSURLVolumeLocalizedFormatDescriptionKey";
|
|
|
|
NSString *NSURLVolumeTotalCapacityKey = @"NSURLVolumeTotalCapacityKey";
|
|
|
|
NSString *NSURLVolumeAvailableCapacityKey = @"NSURLVolumeAvailableCapacityKey";
|
|
|
|
NSString *NSURLVolumeResourceCountKey = @"NSURLVolumeResourceCountKey";
|
|
|
|
NSString *NSURLVolumeSupportsPersistentIDsKey = @"NSURLVolumeSupportsPersistentIDsKey";
|
|
|
|
NSString *NSURLVolumeSupportsSymbolicLinksKey = @"NSURLVolumeSupportsSymbolicLinksKey";
|
|
|
|
NSString *NSURLVolumeSupportsHardLinksKey = @"NSURLVolumeSupportsHardLinksKey";
|
|
|
|
NSString *NSURLVolumeSupportsJournalingKey = @"NSURLVolumeSupportsJournalingKey";
|
|
|
|
NSString *NSURLVolumeIsJournalingKey = @"NSURLVolumeIsJournalingKey";
|
|
|
|
NSString *NSURLVolumeSupportsSparseFilesKey = @"NSURLVolumeSupportsSparseFilesKey";
|
|
|
|
NSString *NSURLVolumeSupportsZeroRunsKey = @"NSURLVolumeSupportsZeroRunsKey";
|
|
|
|
NSString *NSURLVolumeSupportsCaseSensitiveNamesKey = @"NSURLVolumeSupportsCaseSensitiveNamesKey";
|
|
|
|
NSString *NSURLVolumeSupportsCasePreservedNamesKey = @"NSURLVolumeSupportsCasePreservedNamesKey";
|
|
|
|
#endif
|
|
|
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
|
|
|
|
NSString *NSURLFileResourceIdentifierKey = @"NSURLFileResourceIdentifierKey";
|
|
|
|
NSString *NSURLVolumeIdentifierKey = @"NSURLVolumeIdentifierKey";
|
|
|
|
NSString *NSURLPreferredIOBlockSizeKey = @"NSURLPreferredIOBlockSizeKey";
|
|
|
|
NSString *NSURLIsReadableKey = @"NSURLIsReadableKey";
|
|
|
|
NSString *NSURLIsWritableKey = @"NSURLIsWritableKey";
|
|
|
|
NSString *NSURLIsExecutableKey = @"NSURLIsExecutableKey";
|
|
|
|
NSString *NSURLFileSecurityKey = @"NSURLFileSecurityKey";
|
|
|
|
NSString *NSURLIsMountTriggerKey = @"NSURLIsMountTriggerKey";
|
|
|
|
NSString *NSURLFileResourceTypeKey = @"NSURLFileResourceTypeKey";
|
|
|
|
NSString *NSURLTotalFileSizeKey = @"NSURLTotalFileSizeKey";
|
|
|
|
NSString *NSURLTotalFileAllocatedSizeKey = @"NSURLTotalFileAllocatedSizeKey";
|
|
|
|
NSString *NSURLVolumeSupportsRootDirectoryDatesKey = @"NSURLVolumeSupportsRootDirectoryDatesKey";
|
|
|
|
NSString *NSURLVolumeSupportsVolumeSizesKey = @"NSURLVolumeSupportsVolumeSizesKey";
|
|
|
|
NSString *NSURLVolumeSupportsRenamingKey = @"NSURLVolumeSupportsRenamingKey";
|
|
|
|
NSString *NSURLVolumeSupportsAdvisoryFileLockingKey = @"NSURLVolumeSupportsAdvisoryFileLockingKey";
|
|
|
|
NSString *NSURLVolumeSupportsExtendedSecurityKey = @"NSURLVolumeSupportsExtendedSecurityKey";
|
|
|
|
NSString *NSURLVolumeIsBrowsableKey = @"NSURLVolumeIsBrowsableKey";
|
|
|
|
NSString *NSURLVolumeMaximumFileSizeKey = @"NSURLVolumeMaximumFileSizeKey";
|
|
|
|
NSString *NSURLVolumeIsEjectableKey = @"NSURLVolumeIsEjectableKey";
|
|
|
|
NSString *NSURLVolumeIsRemovableKey = @"NSURLVolumeIsRemovableKey";
|
|
|
|
NSString *NSURLVolumeIsInternalKey = @"NSURLVolumeIsInternalKey";
|
|
|
|
NSString *NSURLVolumeIsAutomountedKey = @"NSURLVolumeIsAutomountedKey";
|
|
|
|
NSString *NSURLVolumeIsLocalKey = @"NSURLVolumeIsLocalKey";
|
|
|
|
NSString *NSURLVolumeIsReadOnlyKey = @"NSURLVolumeIsReadOnlyKey";
|
|
|
|
NSString *NSURLVolumeCreationDateKey = @"NSURLVolumeCreationDateKey";
|
|
|
|
NSString *NSURLVolumeURLForRemountingKey = @"NSURLVolumeURLForRemountingKey";
|
|
|
|
NSString *NSURLVolumeUUIDStringKey = @"NSURLVolumeUUIDStringKey";
|
|
|
|
NSString *NSURLVolumeNameKey = @"NSURLVolumeNameKey";
|
|
|
|
NSString *NSURLVolumeLocalizedNameKey = @"NSURLVolumeLocalizedNameKey";
|
|
|
|
NSString *NSURLIsUbiquitousItemKey = @"NSURLIsUbiquitousItemKey";
|
|
|
|
NSString *NSURLUbiquitousItemHasUnresolvedConflictsKey = @"NSURLUbiquitousItemHasUnresolvedConflictsKey";
|
|
|
|
NSString *NSURLUbiquitousItemIsDownloadingKey = @"NSURLUbiquitousItemIsDownloadingKey";
|
|
|
|
NSString *NSURLUbiquitousItemIsUploadedKey = @"NSURLUbiquitousItemIsUploadedKey";
|
|
|
|
NSString *NSURLUbiquitousItemIsUploadingKey = @"NSURLUbiquitousItemIsUploadingKey";
|
|
|
|
#endif
|
|
|
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_8, GS_API_LATEST)
|
|
|
|
NSString *NSURLIsExcludedFromBackupKey = @"NSURLIsExcludedFromBackupKey";
|
|
|
|
NSString *NSURLPathKey = @"NSURLPathKey";
|
|
|
|
#endif
|
|
|
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_9, GS_API_LATEST)
|
|
|
|
NSString *NSURLTagNamesKey = @"NSURLTagNamesKey";
|
|
|
|
NSString *NSURLUbiquitousItemDownloadingStatusKey = @"NSURLUbiquitousItemDownloadingStatusKey";
|
|
|
|
NSString *NSURLUbiquitousItemDownloadingErrorKey = @"NSURLUbiquitousItemDownloadingErrorKey";
|
|
|
|
NSString *NSURLUbiquitousItemUploadingErrorKey = @"NSURLUbiquitousItemUploadingErrorKey";
|
|
|
|
#endif
|
|
|
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_10, GS_API_LATEST)
|
|
|
|
NSString *NSURLGenerationIdentifierKey = @"NSURLGenerationIdentifierKey";
|
|
|
|
NSString *NSURLDocumentIdentifierKey = @"NSURLDocumentIdentifierKey";
|
|
|
|
NSString *NSURLAddedToDirectoryDateKey = @"NSURLAddedToDirectoryDateKey";
|
|
|
|
NSString *NSURLQuarantinePropertiesKey = @"NSURLQuarantinePropertiesKey";
|
|
|
|
NSString *NSThumbnail1024x1024SizeKey = @"NSThumbnail1024x1024SizeKey";
|
|
|
|
NSString *NSURLUbiquitousItemDownloadRequestedKey = @"NSURLUbiquitousItemDownloadRequestedKey";
|
|
|
|
NSString *NSURLUbiquitousItemContainerDisplayNameKey = @"NSURLUbiquitousItemContainerDisplayNameKey";
|
|
|
|
#endif
|
|
|
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_11, GS_API_LATEST)
|
|
|
|
NSString *NSURLIsApplicationKey = @"NSURLIsApplicationKey";
|
|
|
|
NSString *NSURLApplicationIsScriptableKey = @"NSURLApplicationIsScriptableKey";
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
|
|
|
|
NSString *NSURLFileResourceTypeNamedPipe = @"NSURLFileResourceTypeNamedPipe";
|
|
|
|
NSString *NSURLFileResourceTypeCharacterSpecial = @"NSURLFileResourceTypeCharacterSpecial";
|
|
|
|
NSString *NSURLFileResourceTypeDirectory = @"NSURLFileResourceTypeDirectory";
|
|
|
|
NSString *NSURLFileResourceTypeBlockSpecial = @"NSURLFileResourceTypeBlockSpecial";
|
|
|
|
NSString *NSURLFileResourceTypeRegular = @"NSURLFileResourceTypeRegular";
|
|
|
|
NSString *NSURLFileResourceTypeSymbolicLink = @"NSURLFileResourceTypeSymbolicLink";
|
|
|
|
NSString *NSURLFileResourceTypeSocket = @"NSURLFileResourceTypeSocket";
|
|
|
|
NSString *NSURLFileResourceTypeUnknown = @"NSURLFileResourceTypeUnknown";
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/** Possible values for Ubiquitous Item Downloading Key **/
|
|
|
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_9, GS_API_LATEST)
|
|
|
|
NSString *NSURLUbiquitousItemDownloadingStatusNotDownloaded = @"NSURLUbiquitousItemDownloadingStatusNotDownloaded";
|
|
|
|
NSString *NSURLUbiquitousItemDownloadingStatusDownloaded = @"NSURLUbiquitousItemDownloadingStatusDownloaded";
|
|
|
|
NSString *NSURLUbiquitousItemDownloadingStatusCurrent = @"NSURLUbiquitousItemDownloadingStatusCurrent";
|
|
|
|
#endif
|
|
|
|
|
1997-09-13 17:52:31 +00:00
|
|
|
/* RunLoop modes */
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSConnectionReplyMode = @"NSConnectionReplyMode";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2007-12-15 13:01:12 +00:00
|
|
|
/* NSValueTransformer constants */
|
|
|
|
NSString *const NSNegateBooleanTransformerName
|
|
|
|
= @"NSNegateBoolean";
|
|
|
|
NSString *const NSIsNilTransformerName
|
|
|
|
= @"NSIsNil";
|
|
|
|
NSString *const NSIsNotNilTransformerName
|
|
|
|
= @"NSIsNotNil";
|
|
|
|
NSString *const NSUnarchiveFromDataTransformerName
|
|
|
|
= @"NSUnarchiveFromData";
|
1997-09-13 17:52:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Standard domains */
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSArgumentDomain = @"NSArgumentDomain";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSGlobalDomain = @"NSGlobalDomain";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSRegistrationDomain = @"NSRegistrationDomain";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2006-02-19 21:49:21 +00:00
|
|
|
NSString *GSConfigDomain = @"GSConfigDomain";
|
|
|
|
|
1997-09-13 17:52:31 +00:00
|
|
|
|
|
|
|
/* Public notification */
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSUserDefaultsDidChangeNotification = @"NSUserDefaultsDidChangeNotification";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
1997-09-13 17:52:31 +00:00
|
|
|
|
|
|
|
/* Keys for language-dependent information */
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSWeekDayNameArray = @"NSWeekDayNameArray";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSShortWeekDayNameArray = @"NSShortWeekDayNameArray";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSMonthNameArray = @"NSMonthNameArray";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSShortMonthNameArray = @"NSShortMonthNameArray";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSTimeFormatString = @"NSTimeFormatString";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSDateFormatString = @"NSDateFormatString";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSShortDateFormatString = @"NSShortDateFormatString";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSTimeDateFormatString = @"NSTimeDateFormatString";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSShortTimeDateFormatString = @"NSShortTimeDateFormatString";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSCurrencySymbol = @"NSCurrencySymbol";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSDecimalSeparator = @"NSDecimalSeparator";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSThousandsSeparator = @"NSThousandsSeparator";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSInternationalCurrencyString = @"NSInternationalCurrencyString";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSCurrencyString = @"NSCurrencyString";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSNegativeCurrencyFormatString = @"NSNegativeCurrencyFormatString";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSPositiveCurrencyFormatString = @"NSPositiveCurrencyFormatString";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSDecimalDigits = @"NSDecimalDigits";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSAMPMDesignation = @"NSAMPMDesignation";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSHourNameDesignations = @"NSHourNameDesignations";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSYearMonthWeekDesignations = @"NSYearMonthWeekDesignations";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSEarlierTimeDesignations = @"NSEarlierTimeDesignations";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSLaterTimeDesignations = @"NSLaterTimeDesignations";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSThisDayDesignations = @"NSThisDayDesignations";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSNextDayDesignations = @"NSNextDayDesignations";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSNextNextDayDesignations = @"NSNextNextDayDesignations";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSPriorDayDesignations = @"NSPriorDayDesignations";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSDateTimeOrdering = @"NSDateTimeOrdering";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2000-06-30 11:59:59 +00:00
|
|
|
|
2000-07-07 19:19:51 +00:00
|
|
|
/* These are in OPENSTEP 4.2 */
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSLanguageCode = @"NSLanguageCode";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSLanguageName = @"NSLanguageName";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSFormalName = @"NSFormalName";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2000-10-27 15:54:35 +00:00
|
|
|
/* For GNUstep */
|
2008-06-06 13:57:06 +00:00
|
|
|
NSString *GSLocale = @"GSLocale";
|
2000-10-27 15:54:35 +00:00
|
|
|
|
2000-07-07 19:19:51 +00:00
|
|
|
|
2000-06-30 11:59:59 +00:00
|
|
|
/*
|
|
|
|
* Keys for the NSDictionary returned by [NSConnection -statistics]
|
|
|
|
*/
|
|
|
|
/* These in OPENSTEP 4.2 */
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSConnectionRepliesReceived = @"NSConnectionRepliesReceived";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSConnectionRepliesSent = @"NSConnectionRepliesSent";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSConnectionRequestsReceived = @"NSConnectionRequestsReceived";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSConnectionRequestsSent = @"NSConnectionRequestsSent";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2000-06-30 11:59:59 +00:00
|
|
|
/* These Are GNUstep extras */
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSConnectionLocalCount = @"NSConnectionLocalCount";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSConnectionProxyCount = @"NSConnectionProxyCount";
|
2000-09-27 10:18:28 +00:00
|
|
|
|
2000-11-27 22:26:08 +00:00
|
|
|
/* Class description notification */
|
2003-11-06 21:11:39 +00:00
|
|
|
NSString *NSClassDescriptionNeededForClassNotification = @"NSClassDescriptionNeededForClassNotification";
|
2000-11-27 22:26:08 +00:00
|
|
|
|
2000-07-03 11:47:17 +00:00
|
|
|
|
|
|
|
/*
|
2003-12-23 17:22:06 +00:00
|
|
|
* Optimization function called when NSObject is initialised.
|
2003-11-06 21:11:39 +00:00
|
|
|
* We replace all the constant strings so they can
|
|
|
|
* cache their hash values and be used much more efficiently as keys in
|
|
|
|
* dictionaries etc.
|
|
|
|
* We initialize with constant strings so that
|
|
|
|
* code executed before NSObject +initialize calls us,
|
|
|
|
* will have valid values.
|
2000-07-03 11:47:17 +00:00
|
|
|
*/
|
2003-11-06 21:11:39 +00:00
|
|
|
|
2000-07-03 11:47:17 +00:00
|
|
|
void
|
2006-10-20 10:56:27 +00:00
|
|
|
GSPrivateBuildStrings()
|
2000-07-03 11:47:17 +00:00
|
|
|
{
|
2003-11-06 21:11:39 +00:00
|
|
|
static Class NSStringClass = 0;
|
2000-07-03 11:47:17 +00:00
|
|
|
|
2003-11-06 21:11:39 +00:00
|
|
|
if (NSStringClass == 0)
|
2000-07-03 11:47:17 +00:00
|
|
|
{
|
2003-11-06 21:11:39 +00:00
|
|
|
NSStringClass = [NSString class];
|
2002-05-08 05:43:15 +00:00
|
|
|
|
2001-04-26 16:19:12 +00:00
|
|
|
/*
|
|
|
|
* Ensure that NSString is initialized ... because we are called
|
|
|
|
* from [NSObject +initialize] which might be executing as a
|
|
|
|
* result of a call to [NSString +initialize] !
|
2003-07-28 17:01:16 +00:00
|
|
|
* Use performSelector: to avoid compiler warning about clash of
|
|
|
|
* return value types in two different versions of initialize.
|
2001-04-26 16:19:12 +00:00
|
|
|
*/
|
2003-11-06 21:11:39 +00:00
|
|
|
[NSStringClass performSelector: @selector(initialize)];
|
|
|
|
|
2004-09-19 23:19:53 +00:00
|
|
|
GS_REPLACE_CONSTANT_STRING(GSNetworkNotificationCenterType);
|
2003-11-06 21:11:39 +00:00
|
|
|
GS_REPLACE_CONSTANT_STRING(NSAMPMDesignation);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSArgumentDomain);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSClassDescriptionNeededForClassNotification);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSConnectionDidDieNotification);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSConnectionDidInitializeNotification);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSConnectionLocalCount);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSConnectionProxyCount);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSConnectionRepliesReceived);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSConnectionRepliesSent);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSConnectionReplyMode);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSConnectionRequestsReceived);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSConnectionRequestsSent);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSCurrencyString);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSCurrencySymbol);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSDateFormatString);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSDateTimeOrdering);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSDecimalDigits);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSDecimalSeparator);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSEarlierTimeDesignations);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSFormalName);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSGlobalDomain);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSHourNameDesignations);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSInternationalCurrencyString);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSLanguageCode);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSLanguageName);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSLaterTimeDesignations);
|
2008-06-06 13:57:06 +00:00
|
|
|
GS_REPLACE_CONSTANT_STRING(GSLocale);
|
2004-09-19 23:19:53 +00:00
|
|
|
GS_REPLACE_CONSTANT_STRING(NSLocalNotificationCenterType);
|
2003-11-06 21:11:39 +00:00
|
|
|
GS_REPLACE_CONSTANT_STRING(NSMonthNameArray);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSNegativeCurrencyFormatString);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSNextDayDesignations);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSNextNextDayDesignations);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSPortDidBecomeInvalidNotification);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSPositiveCurrencyFormatString);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSPriorDayDesignations);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSRegistrationDomain);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSShortDateFormatString);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSShortMonthNameArray);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSShortTimeDateFormatString);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSShortWeekDayNameArray);
|
2004-09-19 23:19:53 +00:00
|
|
|
GS_REPLACE_CONSTANT_STRING(NSTaskDidTerminateNotification);
|
2003-11-06 21:11:39 +00:00
|
|
|
GS_REPLACE_CONSTANT_STRING(NSThisDayDesignations);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSThousandsSeparator);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSThreadDidStartNotification);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSThreadWillExitNotification);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSTimeDateFormatString);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSTimeFormatString);
|
2004-09-19 23:19:53 +00:00
|
|
|
GS_REPLACE_CONSTANT_STRING(NSUndoManagerCheckpointNotification);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSUndoManagerDidOpenUndoGroupNotification);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSUndoManagerDidRedoChangeNotification);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSUndoManagerDidUndoChangeNotification);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSUndoManagerWillCloseUndoGroupNotification);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSUndoManagerWillRedoChangeNotification);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSUndoManagerWillUndoChangeNotification);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSURLFileScheme);
|
2003-11-06 21:11:39 +00:00
|
|
|
GS_REPLACE_CONSTANT_STRING(NSUserDefaultsDidChangeNotification);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSWeekDayNameArray);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSWillBecomeMultiThreadedNotification);
|
|
|
|
GS_REPLACE_CONSTANT_STRING(NSYearMonthWeekDesignations);
|
2000-07-03 11:47:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
1998-12-02 20:16:23 +00:00
|
|
|
|
2002-06-05 03:51:12 +00:00
|
|
|
/* For bug in gcc 3.1. See NSByteOrder.h */
|
|
|
|
void _gcc3_1_hack(void){}
|