mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Spelling fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21962 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4fbb0dcde7
commit
5af2d9d0a2
77 changed files with 3217 additions and 233 deletions
82
ChangeLog
82
ChangeLog
|
@ -1,3 +1,85 @@
|
|||
2005-11-06 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Documentation/Base.ispell: words from base reference documentation
|
||||
* Documentation/Base.gsdoc:
|
||||
* Headers/Additions/GNUstepBase/GSMime.h:
|
||||
* Headers/Additions/GNUstepBase/GSXML.h:
|
||||
* Headers/Foundation/NSArray.h:
|
||||
* Headers/Foundation/NSCalendarDate.h:
|
||||
* Headers/Foundation/NSCharacterSet.h:
|
||||
* Headers/Foundation/NSConnection.h:
|
||||
* Headers/Foundation/NSData.h:
|
||||
* Headers/Foundation/NSDebug.h:
|
||||
* Headers/Foundation/NSDecimalNumber.h:
|
||||
* Headers/Foundation/NSError.h:
|
||||
* Headers/Foundation/NSFileHandle.h:
|
||||
* Headers/Foundation/NSFormatter.h:
|
||||
* Headers/Foundation/NSIndexSet.h:
|
||||
* Headers/Foundation/NSKeyValueCoding.h:
|
||||
* Headers/Foundation/NSKeyedArchiver.h:
|
||||
* Headers/Foundation/NSLock.h:
|
||||
* Headers/Foundation/NSMethodSignature.h:
|
||||
* Headers/Foundation/NSObject.h:
|
||||
* Headers/Foundation/NSPathUtilities.h:
|
||||
* Headers/Foundation/NSPortMessage.h:
|
||||
* Headers/Foundation/NSPropertyList.h:
|
||||
* Headers/Foundation/NSRunLoop.h:
|
||||
* Headers/Foundation/NSString.h:
|
||||
* Headers/Foundation/NSURL.h:
|
||||
* Headers/Foundation/NSURLHandle.h:
|
||||
* Headers/Foundation/NSXMLParser.h:
|
||||
* Headers/Foundation/NSZone.h:
|
||||
* Source/GSCompatibility.m:
|
||||
* Source/GSCountedSet.m:
|
||||
* Source/GSString.m:
|
||||
* Source/GSTemplateValue.m:
|
||||
* Source/NSArchiver.m:
|
||||
* Source/NSArray.m:
|
||||
* Source/NSCalendarDate.m:
|
||||
* Source/NSClassDescription.m:
|
||||
* Source/NSConnection.m:
|
||||
* Source/NSData.m:
|
||||
* Source/NSDate.m:
|
||||
* Source/NSDebug.m:
|
||||
* Source/NSDictionary.m:
|
||||
* Source/NSDistantObject.m:
|
||||
* Source/NSDistributedLock.m:
|
||||
* Source/NSDistributedNotificationCenter.m:
|
||||
* Source/NSFileHandle.m:
|
||||
* Source/NSFileManager.m:
|
||||
* Source/NSHashTable.m:
|
||||
* Source/NSInvocation.m:
|
||||
* Source/NSLock.m:
|
||||
* Source/NSMapTable.m:
|
||||
* Source/NSObject.m:
|
||||
* Source/NSPathUtilities.m:
|
||||
* Source/NSPortMessage.m:
|
||||
* Source/NSProxy.m:
|
||||
* Source/NSScanner.m:
|
||||
* Source/NSSocketPortNameServer.m:
|
||||
* Source/NSString.m:
|
||||
* Source/NSTask.m:
|
||||
* Source/NSTimeZone.m:
|
||||
* Source/NSTimer.m:
|
||||
* Source/NSURL.m:
|
||||
* Source/NSURLHandle.m:
|
||||
* Source/NSUnarchiver.m:
|
||||
* Source/NSUndoManager.m:
|
||||
* Source/NSUserDefaults.m:
|
||||
* Source/NSValue.m:
|
||||
* Source/Additions/GSCategories.m:
|
||||
* Source/Additions/GSMime.m:
|
||||
* Source/Additions/GSObjCRuntime.m:
|
||||
* Source/Additions/GSXML.m:
|
||||
* Source/Additions/Unicode.m:
|
||||
* Source/win32/NSUserDefaultsWin32.m:
|
||||
* Tools/AGSParser.m:
|
||||
* Tools/autogsdoc.m:
|
||||
* Tools/gdomap.h:
|
||||
Fix typo/spelling mistakes manifesting in reference documentation.
|
||||
I spent half a day going through the tedious process of running
|
||||
all gsdoc output through ispell.
|
||||
|
||||
2005-11-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/Additions/GNUstepBase/Win32_Utilities.h:
|
||||
|
|
|
@ -492,7 +492,7 @@ notice and this notice are preserved.
|
|||
</p>
|
||||
<deflist>
|
||||
<term>GNUSTEP_SYSTEM_ROOT</term>
|
||||
<desc>path in the file heirarchy for system/os things.</desc>
|
||||
<desc>path in the file hierarchy for system/os things.</desc>
|
||||
<term>GNUSTEP_NETWORK_ROOT</term>
|
||||
<desc>path to network mounted resources.</desc>
|
||||
<term>GNUSTEP_LOCAL_ROOT</term>
|
||||
|
|
2900
Documentation/Base.ispell
Normal file
2900
Documentation/Base.ispell
Normal file
File diff suppressed because it is too large
Load diff
|
@ -2,7 +2,7 @@
|
|||
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard frith-Macdonald <rfm@gnu.org>
|
||||
Written by: Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
Date: October 2000
|
||||
|
||||
|
|
|
@ -566,7 +566,7 @@
|
|||
|
||||
/**
|
||||
* Parses XML data containing an XMLRPC method response.<br />
|
||||
* Returns nil for succes, the fault dictionary on failure.<br />
|
||||
* Returns nil for success, the fault dictionary on failure.<br />
|
||||
* Places the response parameters (if any) in the params argument.<br />
|
||||
* NB. Any containers (arrays or dictionaries) in the parsed parameters
|
||||
* will be mutable, so you can modify this data structure as you like.<br />
|
||||
|
|
|
@ -164,7 +164,7 @@
|
|||
* if it is greater, and NSOrderedSame if it is equal.
|
||||
*
|
||||
* The selector version works the same - returning NSOrderedAscending if
|
||||
* the reciever is 'less than' the item in the array.
|
||||
* the receiver is 'less than' the item in the array.
|
||||
*/
|
||||
- (unsigned) insertionPosition: (id)item
|
||||
usingFunction: (NSComparisonResult (*)(id, id, void *))sorter
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
* is on or after the first of january.<br />
|
||||
* This has the effect that, if january first is a friday, saturday or
|
||||
* sunday, the days of that week (up to and including the sunday) are
|
||||
* considered to be in week 53 of the preceeding year. Similarly if the
|
||||
* considered to be in week 53 of the preceding year. Similarly if the
|
||||
* last day of the year is a monday tuesday or wednesday, these days are
|
||||
* part of week 1 of the next year.
|
||||
*/
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
+ (NSCharacterSet*) decimalDigitCharacterSet;
|
||||
|
||||
/**
|
||||
* Returns a character set containing individual charactars that
|
||||
* Returns a character set containing individual characters that
|
||||
* can be represented also by a composed character sequence.
|
||||
*/
|
||||
+ (NSCharacterSet*) decomposableCharacterSet;
|
||||
|
@ -165,7 +165,7 @@
|
|||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
/**
|
||||
* Returns YES if the receiver contains at lerast one character in the
|
||||
* Returns YES if the receiver contains at least one character in the
|
||||
* specified unicode plane.
|
||||
*/
|
||||
- (BOOL) hasMemberInPlane: (uint8_t)aPlane;
|
||||
|
|
|
@ -183,7 +183,7 @@ GS_EXPORT NSString* const NSConnectionProxyCount; /* Objects received */
|
|||
|
||||
/**
|
||||
* Alternative convenience constructor, not specified in OpenStep, where you
|
||||
* registe root anObject under given name in one step.
|
||||
* register root anObject under given name in one step.
|
||||
*/
|
||||
+ (NSConnection*) newRegisteringAtName: (NSString*)name
|
||||
withRootObject: (id)anObject;
|
||||
|
@ -254,7 +254,7 @@ GS_EXPORT NSString* const NSConnectionProxyCount; /* Objects received */
|
|||
* </p>
|
||||
* <p>
|
||||
* If the delegate implements this method, the NSConnection will
|
||||
* invoke the method for every message request ro reply it sends
|
||||
* invoke the method for every message request to reply it sends
|
||||
* to the remote NSConnection. The delegate should generate
|
||||
* authentication data by examining all the NSData objects
|
||||
* in the components array (ignoring NSPort objects),
|
||||
|
|
|
@ -143,7 +143,7 @@
|
|||
* a hexadecimal coding of the bytes. The parsing of the string is
|
||||
* fairly tolerant, ignoring whitespace and permitting both upper and
|
||||
* lower case hexadecimal digits (the -hexadecimalRepresentation method
|
||||
* produces a string using only uppercase digits with no white spaqce).<br />
|
||||
* produces a string using only uppercase digits with no white space).<br />
|
||||
* If the string does not contain one or more pairs of hexadecimal digits
|
||||
* then an exception is raised.
|
||||
*/
|
||||
|
|
|
@ -157,11 +157,12 @@ GS_EXPORT NSString* GSDebugMethodMsg(id obj, SEL sel, const char *file,
|
|||
int line, NSString *fmt);
|
||||
|
||||
/**
|
||||
* This functions allows to set own function backcalls for debugging allocation
|
||||
* of objects. Useful if you intend to write your own objectalloc.
|
||||
* This functions allows to set own function callbacks for debugging allocation
|
||||
* of objects. Useful if you intend to write your own object allocation code.
|
||||
*/
|
||||
GS_EXPORT void GSSetDebugAllocationFunctions(void (*newAddObjectFunc)(Class c, id o),
|
||||
void (*newRemoveObjectFunc)(Class c, id o));
|
||||
GS_EXPORT void GSSetDebugAllocationFunctions(
|
||||
void (*newAddObjectFunc)(Class c, id o),
|
||||
void (*newRemoveObjectFunc)(Class c, id o));
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -175,7 +176,7 @@ GS_EXPORT void GSSetDebugAllocationFunctions(void (*newAddObjectFunc)(Class c,
|
|||
* </p>
|
||||
* <p>Turning on zombies changes this behavior so that the isa pointer
|
||||
* is modified to be that of the NSZombie class. When messages are
|
||||
* sent to the object, intead of crashing, NSZombie will use NSLog() to
|
||||
* sent to the object, instead of crashing, NSZombie will use NSLog() to
|
||||
* produce an error message. By default the memory used by the object
|
||||
* will not really be freed, so error messages will continue to
|
||||
* be generated whenever a message is sent to the object, and the object
|
||||
|
|
|
@ -145,7 +145,7 @@
|
|||
raiseOnDivideByZero:(BOOL)raiseOnDivideByZero;
|
||||
|
||||
/**
|
||||
* Initializor setting all behavior. (For more precise control over error
|
||||
* Initializer setting all behavior. (For more precise control over error
|
||||
* handling, create your own class implementing the [(NSDecimalNumberBehaviors)]
|
||||
* protocol.)
|
||||
*/
|
||||
|
@ -291,7 +291,7 @@
|
|||
- (NSDecimal)decimalValue;
|
||||
|
||||
/**
|
||||
* Returns string version of number formatted accordng to locale.
|
||||
* Returns string version of number formatted according to locale.
|
||||
*/
|
||||
- (NSString *)descriptionWithLocale:(NSDictionary *)locale;
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ GS_EXPORT NSString* const NSLocalizedDescriptionKey;
|
|||
|
||||
/**
|
||||
* Where one error has caused another, the underlying error can be stored
|
||||
* in the user info dictionary uisng this key.
|
||||
* in the user info dictionary using this key.
|
||||
*/
|
||||
GS_EXPORT NSString* const NSUnderlyingErrorKey;
|
||||
|
||||
|
|
|
@ -195,10 +195,10 @@ GS_EXPORT NSString * const NSFileHandleOperationException;
|
|||
/**
|
||||
* Where OpenSSL is available, you can use the subclass returned by +sslClass
|
||||
* to handle SSL connections.
|
||||
* The -sslAccept method is used to do SSL handlshake and start an
|
||||
* The -sslAccept method is used to do SSL handshake and start an
|
||||
* encrypted session on a channel where the connection was initiated
|
||||
* from the far end.
|
||||
* The -sslConnect method is used to do SSL handlshake and start an
|
||||
* The -sslConnect method is used to do SSL handshake and start an
|
||||
* encrypted session on a channel where the connection was initiated
|
||||
* from the near end..
|
||||
* The -sslDisconnect method is used to end the encrypted session.
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
/**
|
||||
* This abstract class defines the interface for classes that support
|
||||
* interconversion between strings and objects of various types. GNUstep
|
||||
* conversion between strings and objects of various types. GNUstep
|
||||
* provides two concrete implementations of this class: [NSDateFormatter]
|
||||
* and [NSNumberFormatter]. Others may be implemented for specialized
|
||||
* applications.
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
* Copies index values into aBuffer until there are no index values left or
|
||||
* aBuffer is full (assuming that the size of aBuffer is given by aCount).<br />
|
||||
* Only copies index values present in aRange and copies them in order.<br />
|
||||
* Returns the number of index values placed in aVuffer.<br />
|
||||
* Returns the number of index values placed in aBuffer.<br />
|
||||
* Modifies aRange to start after the last index value copied.<br />
|
||||
* If aRange is a null pointer, this method attempts to get <em>all</em>
|
||||
* index values from the set (and of course no range can be returned in it).
|
||||
|
|
|
@ -107,9 +107,9 @@ GS_EXPORT NSString* const NSUndefinedKeyException;
|
|||
/**
|
||||
* Sets the value if the attribute associated with the key in the receiver.
|
||||
* The object is converted to a scalar attribute where applicable (and
|
||||
* -setNilValueForKey: is caalled if a nil value is supplied).
|
||||
* -setNilValueForKey: is called if a nil value is supplied).
|
||||
* Tries to use a standard accessor of the form setKey: where 'Key' is the
|
||||
* supplied argument with the first letter convertyed to uppercase.<br />
|
||||
* supplied argument with the first letter converted to uppercase.<br />
|
||||
* If the receiver's class allows +accessInstanceVariablesDirectly
|
||||
* it continues with instance variables:
|
||||
* <list>
|
||||
|
@ -119,7 +119,7 @@ GS_EXPORT NSString* const NSUndefinedKeyException;
|
|||
* <item>isKey</item>
|
||||
* </list>
|
||||
* Invokes -setValue:forUndefinedKey: if no accessor mechanism can be found
|
||||
* and raises NSInvalidArgumentException if the accesor method doesn't take
|
||||
* and raises NSInvalidArgumentException if the accessor method doesn't take
|
||||
* exactly one argument or the type is unsupported (e.g. structs).
|
||||
* If the receiver expects a scalar value and the value supplied
|
||||
* is the NSNull instance or nil, this method invokes
|
||||
|
@ -132,7 +132,7 @@ GS_EXPORT NSString* const NSUndefinedKeyException;
|
|||
* on the receiver with the first key component supplied by the key path.
|
||||
* Then invokes -setValue:forKeyPath: recursively on the
|
||||
* returned object with rest of the key path.
|
||||
* The key components are delimated by '.'.
|
||||
* The key components are delimited by '.'.
|
||||
* If the key path doesn't contain any '.', this method simply
|
||||
* invokes -setValue:forKey:.
|
||||
*/
|
||||
|
@ -179,7 +179,7 @@ GS_EXPORT NSString* const NSUndefinedKeyException;
|
|||
* <item>key</item>
|
||||
* </list>
|
||||
* Invokes -handleTakeValue:forUnboundKey: if no accessor mechanism can be
|
||||
* found and raises NSInvalidArgumentException if the accesor method takes
|
||||
* found and raises NSInvalidArgumentException if the accessor method takes
|
||||
* takes any arguments or the type is unsupported (e.g. structs).
|
||||
*/
|
||||
- (id) storedValueForKey: (NSString*)aKey;
|
||||
|
@ -207,7 +207,7 @@ GS_EXPORT NSString* const NSUndefinedKeyException;
|
|||
* </list>
|
||||
* Invokes -handleTakeValue:forUnboundKey:
|
||||
* if no accessor mechanism can be found
|
||||
* and raises NSInvalidArgumentException if the accesor method doesn't take
|
||||
* and raises NSInvalidArgumentException if the accessor method doesn't take
|
||||
* exactly one argument or the type is unsupported (e.g. structs).
|
||||
* If the receiver expects a scalar value and the value supplied
|
||||
* is the NSNull instance or nil, this method invokes
|
||||
|
@ -239,7 +239,7 @@ GS_EXPORT NSString* const NSUndefinedKeyException;
|
|||
* </list>
|
||||
* Invokes -handleTakeValue:forUnboundKey:
|
||||
* if no accessor mechanism can be found
|
||||
* and raises NSInvalidArgumentException if the accesor method doesn't take
|
||||
* and raises NSInvalidArgumentException if the accessor method doesn't take
|
||||
* exactly one argument or the type is unsupported (e.g. structs).
|
||||
* If the receiver expects a scalar value and the value supplied
|
||||
* is the NSNull instance or nil, this method invokes
|
||||
|
@ -253,7 +253,7 @@ GS_EXPORT NSString* const NSUndefinedKeyException;
|
|||
* on the receiver with the first key component supplied by the key path.
|
||||
* Then invokes -takeValue:forKeyPath: recursively on the
|
||||
* returned object with rest of the key path.
|
||||
* The key components are delimated by '.'.
|
||||
* The key components are delimited by '.'.
|
||||
* If the key path doesn't contain any '.', this method simply
|
||||
* invokes -takeValue:forKey:.<br />
|
||||
* Deprecated ... use -setValue:forKeyPath: instead.
|
||||
|
@ -275,7 +275,7 @@ GS_EXPORT NSString* const NSUndefinedKeyException;
|
|||
|
||||
/**
|
||||
* Returns a boolean indicating whether the object pointed to by aValue
|
||||
* is valid for settting as an attribute of the receiver using the name
|
||||
* is valid for setting as an attribute of the receiver using the name
|
||||
* aKey. On success (YES response) it may return a new value to be used
|
||||
* in aValue. On failure (NO response) it may return an error in anError.<br />
|
||||
* The method works by calling a method of the receiver whose name is of
|
||||
|
@ -317,16 +317,16 @@ GS_EXPORT NSString* const NSUndefinedKeyException;
|
|||
* </list>
|
||||
* Invokes -setValue:forUndefinedKey:
|
||||
* if no accessor mechanism can be found
|
||||
* and raises NSInvalidArgumentException if the accesor method takes
|
||||
* and raises NSInvalidArgumentException if the accessor method takes
|
||||
* any arguments or the type is unsupported (e.g. structs).
|
||||
*/
|
||||
- (id) valueForKey: (NSString*)aKey;
|
||||
|
||||
/**
|
||||
* Retuns the object returned by invoking -valueForKeyPath:
|
||||
* Returns the object returned by invoking -valueForKeyPath:
|
||||
* recursively on the object returned by invoking -valueForKey:
|
||||
* on the receiver with the first key component supplied by the key path.
|
||||
* The key components are delimated by '.'.
|
||||
* The key components are delimited by '.'.
|
||||
* If the key path doesn't contain any '.', this method simply
|
||||
* invokes -valueForKey: .
|
||||
*/
|
||||
|
|
|
@ -177,7 +177,7 @@
|
|||
|
||||
/**
|
||||
* Sets the name with which instances of aClass are encoded.<br />
|
||||
* The value of aString must be the anme of an existing clas.
|
||||
* The value of aString must be the name of an existing class.
|
||||
*/
|
||||
- (void) setClassName: (NSString*)aString forClass: (Class)aClass;
|
||||
|
||||
|
@ -442,8 +442,8 @@ willReplaceObject: (id)anObject
|
|||
* Sent if the named class is not available during decoding.<br />
|
||||
* The value of aName is the class name being decoded (after any name mapping
|
||||
* has been applied).<br />
|
||||
* The classNames arraay contains the original name of the class encoded
|
||||
* in the archive, and is followed by eqach of its superclasses in turn.<br />
|
||||
* The classNames array contains the original name of the class encoded
|
||||
* in the archive, and is followed by each of its superclasses in turn.<br />
|
||||
* The delegate may either return a class object for the unarchiver to use
|
||||
* to continue decoding, or may return nil to abort the decoding process.
|
||||
*/
|
||||
|
|
|
@ -201,11 +201,11 @@
|
|||
/**
|
||||
* Returns IDENT which will be initialized
|
||||
* to an instance of a CLASSNAME in a thread safe manner.
|
||||
* If IDENT has been previoulsy initilized
|
||||
* If IDENT has been previously initialized
|
||||
* this macro merely returns IDENT.
|
||||
* IDENT is considered uninitialzed, if it contains nil.
|
||||
* IDENT is considered uninitialized, if it contains nil.
|
||||
* CLASSNAME must be either NSLock, NSRecursiveLock or one
|
||||
* of thier subclasses.
|
||||
* of their subclasses.
|
||||
* See [NSLock+newLockAt:] for details.
|
||||
* This macro is intended for code that cannot insure
|
||||
* that a lock can be initialized in thread safe manner otherwise.
|
||||
|
|
|
@ -107,7 +107,7 @@ typedef struct {
|
|||
|
||||
/**
|
||||
* Number of bytes that the full set of arguments occupies on the stack, which
|
||||
* is platformt(hardware)-dependent.
|
||||
* is platform(hardware)-dependent.
|
||||
*/
|
||||
- (unsigned) frameLength;
|
||||
|
||||
|
@ -127,7 +127,7 @@ typedef struct {
|
|||
|
||||
/**
|
||||
* Number of bytes that the return value occupies on the stack, which is
|
||||
* platformt(hardware)-dependent.
|
||||
* platform(hardware)-dependent.
|
||||
*/
|
||||
- (unsigned) methodReturnLength;
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
#define GS_API_OSSPEC 10000
|
||||
|
||||
/**
|
||||
* The version number of the first OPENSTEP implemenation
|
||||
* The version number of the first OPENSTEP implementation
|
||||
*/
|
||||
#define GS_API_OPENSTEP 40000
|
||||
|
||||
|
@ -183,7 +183,7 @@
|
|||
/**
|
||||
* Called by [NSObject-mutableCopy] passing NSDefaultMallocZone() as zone.<br />
|
||||
* This method returns a copy of the receiver and, where the receiver is an
|
||||
* immmutable variant of a class which has a mutable partner class, the
|
||||
* immutable variant of a class which has a mutable partner class, the
|
||||
* object returned is an instance of that mutable class.
|
||||
* The new object is <em>not</em> autoreleased, and is considered to be
|
||||
* 'owned' by the calling code ... which is therefore responsible for
|
||||
|
@ -301,14 +301,14 @@
|
|||
* class of the object to be aClass etc. The allocated memory will
|
||||
* be extraBytes larger than the space actually needed to hold the
|
||||
* instance variables of the object.<br />
|
||||
* This function is used by the [NSObject+allocWithZone:] mnethod.
|
||||
* This function is used by the [NSObject+allocWithZone:] method.
|
||||
*/
|
||||
GS_EXPORT NSObject *
|
||||
NSAllocateObject(Class aClass, unsigned extraBytes, NSZone *zone);
|
||||
|
||||
/**
|
||||
* Used to release the memory used by an object.<br />
|
||||
* This function is used by the [NSObject-dealloc] mnethod.
|
||||
* This function is used by the [NSObject-dealloc] method.
|
||||
*/
|
||||
GS_EXPORT void
|
||||
NSDeallocateObject(NSObject *anObject);
|
||||
|
@ -414,7 +414,7 @@ GS_EXPORT NSRecursiveLock *gnustep_global_lock;
|
|||
WARNING: The -compare: method for NSObject is deprecated
|
||||
due to subclasses declaring the same selector with
|
||||
conflicting signatures.
|
||||
Comparision of arbitrary objects is not just meaningless
|
||||
Comparison of arbitrary objects is not just meaningless
|
||||
but also dangerous as most concrete implementations
|
||||
expect comparable objects as arguments often accessing
|
||||
instance variables directly.
|
||||
|
@ -624,7 +624,7 @@ if (__value != __object) \
|
|||
#ifndef DESTROY
|
||||
/**
|
||||
* DESTROY() is a release operation which also sets the variable to be
|
||||
* a nil pointer for tidyness - we can't accidentally use a DESTROYED
|
||||
* a nil pointer for tidiness - we can't accidentally use a DESTROYED
|
||||
* object later. It also makes sure to set the variable to nil before
|
||||
* releasing the object - to avoid side-effects of the release trying
|
||||
* to reference the object being released through the variable.
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
/**
|
||||
* This extension permits a change of username from that specified in the
|
||||
* LOGNAME environment variable. Using it will almost certainly cause
|
||||
* trouble if the process does not posess the file access priviliges of the
|
||||
* trouble if the process does not posses the file access privileges of the
|
||||
* new name. This is provided primarily for use by processes that run as
|
||||
* system-manager and need to act as particular users. It uses the
|
||||
* [NSUserDefaults +resetUserDefaults] extension to reset the defaults system
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* NSPortMessage interface for GNUstep
|
||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard frith-Macdonald <richard@brainstorm.co.Ik>
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Created: October 1998
|
||||
|
||||
This file is part of the GNUstep Base Library.
|
||||
|
|
|
@ -116,7 +116,7 @@ typedef enum {
|
|||
* an extension to the traditional <em>property list</em> format to
|
||||
* support date objects, but older code will not read
|
||||
* <em>property lists</em> containing this extension.<br />
|
||||
* This format consists of an asterisk follwed by the letter 'D' then a
|
||||
* This format consists of an asterisk followed by the letter 'D' then a
|
||||
* date/time in YYYY-MM-DD HH:MM:SS +/-ZZZZ format, all enclosed within
|
||||
* angle brackets.
|
||||
* <example>
|
||||
|
@ -154,7 +154,7 @@ typedef enum {
|
|||
* <term>[NSNumber]</term>
|
||||
* <desc>
|
||||
* Number objects were not traditionally allowed in <em>property lists</em>
|
||||
* but were added when the XML format was intoroduced. GNUstep provides
|
||||
* but were added when the XML format was introduced. GNUstep provides
|
||||
* an extension to the traditional <em>property list</em> format to
|
||||
* support number objects, but older code will not read
|
||||
* <em>property lists</em> containing this extension.<br />
|
||||
|
|
|
@ -138,7 +138,7 @@ typedef enum {
|
|||
forMode: (NSString*)mode;
|
||||
/**
|
||||
* Callback message sent to object when the event it it waiting
|
||||
* for occurs. The 'data' and 'type' valueds are those passed in the
|
||||
* for occurs. The 'data' and 'type' values are those passed in the
|
||||
* original -addEvent:type:watcher:forMode: method.<br />
|
||||
* The 'extra' value may be additional data returned depending
|
||||
* on the type of event. In the case of ET_WINMSG 'extra' is a pointer
|
||||
|
|
|
@ -467,7 +467,7 @@ enum {
|
|||
* If the receiver has trailing path separator characters, they are
|
||||
* stripped before the extension separator is added.<br />
|
||||
* If the receiver contains no components after the root, the extension
|
||||
* cannot be apppended (an extension can only be appended to a file name),
|
||||
* cannot be appended (an extension can only be appended to a file name),
|
||||
* so a copy of the unmodified receiver is returned.<br />
|
||||
* An empty string may be used as an extension ... in which case the extension
|
||||
* separator is appended.<br />
|
||||
|
@ -536,7 +536,7 @@ enum {
|
|||
/**
|
||||
* Replaces path string by one in which path components representing symbolic
|
||||
* links have been replaced by their referents.<br />
|
||||
* If links cannot be resolved, returns an unmodified coopy of the receiver.
|
||||
* If links cannot be resolved, returns an unmodified copy of the receiver.
|
||||
*/
|
||||
- (NSString*) stringByResolvingSymlinksInPath;
|
||||
|
||||
|
@ -698,7 +698,7 @@ enum {
|
|||
* added for GNUstep, to permit the isa variable to be set to another
|
||||
* class, and GNUstep uses this to avoid conflicts with the default
|
||||
* implementation of NXConstantString in the ObjC runtime library (the
|
||||
* preprocessor is used to change all occurences of NXConstantString
|
||||
* preprocessor is used to change all occurrences of NXConstantString
|
||||
* in the source code to NSConstantString).</p>
|
||||
* <p>Since GNUstep will generally use the GNUstep extension to the
|
||||
* compiler, you should never refer to the constant string class by
|
||||
|
@ -797,7 +797,7 @@ extern struct objc_class _NSConstantStringClassReference;
|
|||
- (void) deletePrefix: (NSString*)prefix;
|
||||
|
||||
/**
|
||||
* Replaces all occurrances of the string replace with the string by
|
||||
* Replaces all occurrences of the string replace with the string by
|
||||
* in the receiver.<br />
|
||||
* Has no effect if replace does not occur within the
|
||||
* receiver. NB. an empty string is not considered to exist within
|
||||
|
|
|
@ -99,7 +99,8 @@ GS_EXPORT NSString* const NSURLFileScheme;
|
|||
- (void) URLResourceDidFinishLoading: (NSURL*)sender;
|
||||
|
||||
/**
|
||||
* Loading of resource data was canceled by programmatic request (not an error).
|
||||
* Loading of resource data was cancelled by programmatic request
|
||||
* (not an error).
|
||||
*/
|
||||
- (void) URLResourceDidCancelLoading: (NSURL*)sender;
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ typedef enum
|
|||
- (void) URLHandleResourceDidBeginLoading: (NSURLHandle*)sender;
|
||||
|
||||
/**
|
||||
* Sent by the NSURLHandle object when resource loading is canceled
|
||||
* Sent by the NSURLHandle object when resource loading is cancelled
|
||||
* by programmatic request (rather than by failure).
|
||||
*/
|
||||
- (void) URLHandleResourceDidCancelLoading: (NSURLHandle*)sender;
|
||||
|
|
|
@ -39,10 +39,10 @@ GS_EXPORT NSString* const NSXMLParserErrorDomain;
|
|||
|
||||
/**
|
||||
* This class is a PRE-ALPHA implementation. You should be prepared to
|
||||
* track down and fix bugs and prefereably contribute fixes back.<br />
|
||||
* track down and fix bugs and preferably contribute fixes back.<br />
|
||||
* If you don't want to do that, use the [GSXMLParser] class instead ...
|
||||
* This NSXMLParser class is implemented as a wrapper round some of the
|
||||
* functionality of the more powerful GSXML APis, and is intended as a
|
||||
* functionality of the more powerful GSXML APIs, and is intended as a
|
||||
* MacOSX compatibility feature.
|
||||
* <p>
|
||||
* This class implements an event driven parser handling the parsing
|
||||
|
@ -91,7 +91,7 @@ GS_EXPORT NSString* const NSXMLParserErrorDomain;
|
|||
- (id) initWithData: (NSData*)data;
|
||||
|
||||
/**
|
||||
* Parses the supplied data and returns YES on succdess, NO otherwise.
|
||||
* Parses the supplied data and returns YES on success, NO otherwise.
|
||||
*/
|
||||
- (BOOL) parse;
|
||||
|
||||
|
|
|
@ -338,7 +338,7 @@ GS_ZONE_SCOPE void NSRecycleZone (NSZone *zone) GS_ZONE_ATTR;
|
|||
/**
|
||||
* Return memory for an entire zone to system. In fact, this will not be done
|
||||
* unless all memory in the zone has been explicitly freed (by calls to
|
||||
* ZNSZoneFree()). For "non-freeable" zones, the number of NSZoneFree() calls
|
||||
* NSZoneFree()). For "non-freeable" zones, the number of NSZoneFree() calls
|
||||
* must simply equal the number of allocation calls. The default zone, on the
|
||||
* other hand, cannot be recycled.
|
||||
*/
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
* is on or after the first of january.<br />
|
||||
* This has the effect that, if january first is a friday, saturday or
|
||||
* sunday, the days of that week (up to and including the sunday) are
|
||||
* considered to be in week 53 of the preceeding year. Similarly if the
|
||||
* considered to be in week 53 of the preceding year. Similarly if the
|
||||
* last day of the year is a monday tuesday or wednesday, these days are
|
||||
* part of week 1 of the next year.
|
||||
*/
|
||||
|
@ -147,7 +147,7 @@
|
|||
* a hexadecimal coding of the bytes. The parsing of the string is
|
||||
* fairly tolerant, ignoring whitespace and permitting both upper and
|
||||
* lower case hexadecimal digits (the -hexadecimalRepresentation method
|
||||
* produces a string using only uppercase digits with no white spaqce).<br />
|
||||
* produces a string using only uppercase digits with no white space).<br />
|
||||
* If the string does not contain one or more pairs of hexadecimal digits
|
||||
* then an exception is raised.
|
||||
*/
|
||||
|
@ -823,7 +823,7 @@ static void MD5Transform (unsigned long buf[4], unsigned long const in[16])
|
|||
* WARNING: The -compare: method for NSObject is deprecated
|
||||
* due to subclasses declaring the same selector with
|
||||
* conflicting signatures.
|
||||
* Comparision of arbitrary objects is not just meaningless
|
||||
* Comparison of arbitrary objects is not just meaningless
|
||||
* but also dangerous as most concrete implementations
|
||||
* expect comparable objects as arguments often accessing
|
||||
* instance variables directly.
|
||||
|
@ -1002,7 +1002,7 @@ static void MD5Transform (unsigned long buf[4], unsigned long const in[16])
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns a string in which any (and all) occurrances of
|
||||
* Returns a string in which any (and all) occurrences of
|
||||
* replace in the receiver have been replaced with by.
|
||||
* Returns the receiver if replace
|
||||
* does not occur within the receiver. NB. an empty string is
|
||||
|
@ -1058,7 +1058,7 @@ static void MD5Transform (unsigned long buf[4], unsigned long const in[16])
|
|||
}
|
||||
|
||||
/**
|
||||
* Replaces all occurrances of the string replace with the string by
|
||||
* Replaces all occurrences of the string replace with the string by
|
||||
* in the receiver.<br />
|
||||
* Has no effect if replace does not occur within the
|
||||
* receiver. NB. an empty string is not considered to exist within
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
Copyright (C) 2000,2001 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard frith-Macdonald <rfm@gnu.org>
|
||||
Written by: Richard Frith-Macdonald <rfm@gnu.org>
|
||||
Date: October 2000
|
||||
|
||||
This file is part of the GNUstep Base Library.
|
||||
|
@ -364,7 +364,7 @@ wordData(NSString *word)
|
|||
|
||||
/**
|
||||
* Decode length bytes of data from sData and append the results to dData.<br />
|
||||
* Return YES on succes, NO if there is an error.
|
||||
* Return YES on success, NO if there is an error.
|
||||
*/
|
||||
- (BOOL) decodeData: (const void*)sData
|
||||
length: (unsigned)length
|
||||
|
@ -1800,7 +1800,7 @@ NSDebugMLLog(@"GSMime", @"Header parsed - %@", info);
|
|||
forKey: NSHTTPPropertyStatusReasonKey];
|
||||
value = [[scanner string] substringFromIndex: loc];
|
||||
/*
|
||||
* Get rid of preceeding headers in case this is a continuation.
|
||||
* Get rid of preceding headers in case this is a continuation.
|
||||
*/
|
||||
hdrs = [document allHeaders];
|
||||
for (count = 0; count < [hdrs count]; count++)
|
||||
|
@ -3762,7 +3762,7 @@ static NSCharacterSet *tokenSet = nil;
|
|||
* at least the fields that are standard for all headers.
|
||||
* </p>
|
||||
* <p>
|
||||
* Certain well-known headers are restricted to one occurrance in
|
||||
* Certain well-known headers are restricted to one occurrence in
|
||||
* an email, and when extra copies are added they replace originals.
|
||||
* </p>
|
||||
* <p>
|
||||
|
@ -4326,7 +4326,7 @@ static NSCharacterSet *tokenSet = nil;
|
|||
}
|
||||
|
||||
/**
|
||||
* This method removes all occurrances of header objects identical to
|
||||
* This method removes all occurrences of header objects identical to
|
||||
* the one supplied as an argument.
|
||||
*/
|
||||
- (void) deleteHeader: (GSMimeHeader*)aHeader
|
||||
|
@ -4343,7 +4343,7 @@ static NSCharacterSet *tokenSet = nil;
|
|||
}
|
||||
|
||||
/**
|
||||
* This method removes all occurrances of headers whose name
|
||||
* This method removes all occurrences of headers whose name
|
||||
* matches the supplied string.
|
||||
*/
|
||||
- (void) deleteHeaderNamed: (NSString*)name
|
||||
|
|
|
@ -858,9 +858,9 @@ GSAppendMethodToList (GSMethodList list,
|
|||
/*
|
||||
Deal with typed selectors: No matter what kind of selector we get
|
||||
convert it into a c-string. Cache that c-string incase the
|
||||
selector isn't found, then search for cooresponding typed selector.
|
||||
selector isn't found, then search for corresponding typed selector.
|
||||
If none is found use the cached name to register an new selector
|
||||
with the cooresponding types.
|
||||
with the corresponding types.
|
||||
*/
|
||||
sel = (SEL)GSNameFromSelector (sel);
|
||||
|
||||
|
|
|
@ -1313,7 +1313,7 @@ static NSMapTable *nodeNames = 0;
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the next element node, skipping past any oyther node types
|
||||
* Returns the next element node, skipping past any other node types
|
||||
* (such as text nodes). If there is no element node to be returned,
|
||||
* this method returns nil.<br />
|
||||
* NB. This method is not available in java, as the method name conflicts
|
||||
|
|
|
@ -492,7 +492,7 @@ GSEncodingFromLocale(const char *clocale)
|
|||
if (strchr (clocale, '.') != NULL)
|
||||
{
|
||||
/* Locale contains the 'codeset' section. Parse it and see
|
||||
if we know what encoding this cooresponds to */
|
||||
if we know what encoding this corresponds to */
|
||||
NSString *registry;
|
||||
NSArray *array;
|
||||
char *s;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/** Runtime MacOSX compatibility functionality
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard frith-Macdonald <rfm@gnu.org>
|
||||
Written by: Richard Frith-Macdonald <rfm@gnu.org>
|
||||
Date: August 2000
|
||||
|
||||
This file is part of the GNUstep Base Library.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/** Concrete implementation of NSCountedSet based on GNU Set class
|
||||
Copyright (C) 1998,2000 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Created: October 1998
|
||||
|
||||
This file is part of the GNUstep Base Library.
|
||||
|
|
|
@ -2826,7 +2826,7 @@ agree, create a new GSUnicodeInlineString otherwise.
|
|||
/*
|
||||
* Make sure we have the format string in a nul terminated array of
|
||||
* unichars for passing to GSFormat. Use on-stack memory for performance
|
||||
* unless the size of the format string is really big (a rare occurrance).
|
||||
* unless the size of the format string is really big (a rare occurrence).
|
||||
*/
|
||||
len = [format length];
|
||||
if (len >= 1024)
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
|
||||
/* This file should be run through a preprocessor with the macro TYPE_ORDER
|
||||
defined to a number from 0 to 4 cooresponding to each value type */
|
||||
defined to a number from 0 to 4 corresponding to each value type */
|
||||
#if TYPE_ORDER == 0
|
||||
@interface GSNonretainedObjectValue : NSValue
|
||||
{
|
||||
|
|
|
@ -833,7 +833,7 @@ static Class NSMutableDataMallocClass;
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns whatever data has been encoded thusfar.
|
||||
* Returns whatever data has been encoded thus far.
|
||||
*/
|
||||
- (NSMutableData*) archiverData
|
||||
{
|
||||
|
@ -934,7 +934,7 @@ static Class NSMutableDataMallocClass;
|
|||
|
||||
|
||||
/**
|
||||
* Catagory for compatibility with old GNUstep encoding.
|
||||
* Category for compatibility with old GNUstep encoding.
|
||||
*/
|
||||
@implementation NSArchiver (GNUstep)
|
||||
|
||||
|
|
|
@ -212,8 +212,8 @@ static SEL rlSel;
|
|||
|
||||
/**
|
||||
* Returns an autoreleased array based upon the file. The new array is
|
||||
* created using +allocWithZone: and initialised using the
|
||||
* -initWithContentsOfFile: method. See the documentation for those
|
||||
* created using [NSObject+allocWithZone:] and initialised using the
|
||||
* [NSArray-initWithContentsOfFile:] method. See the documentation for those
|
||||
* methods for more detail.
|
||||
*/
|
||||
+ (id) arrayWithContentsOfFile: (NSString*)file
|
||||
|
@ -226,7 +226,7 @@ static SEL rlSel;
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns an autoreleased array from the contenta of aURL. The new array is
|
||||
* Returns an autoreleased array from the contents of aURL. The new array is
|
||||
* created using +allocWithZone: and initialised using the
|
||||
* -initWithContentsOfURL: method. See the documentation for those
|
||||
* methods for more detail.
|
||||
|
@ -741,7 +741,7 @@ static SEL rlSel;
|
|||
* which must contain an array in property-list format.
|
||||
* </p>
|
||||
* <p>In GNUstep, the property-list format may be either the OpenStep
|
||||
* format (ASCII data), or the MacOS-X format (URF8 XML data) ... this
|
||||
* format (ASCII data), or the MacOS-X format (UTF8 XML data) ... this
|
||||
* method will recognise which it is.
|
||||
* </p>
|
||||
* <p>If there is a failure to load the URL for any reason, the receiver
|
||||
|
@ -1435,7 +1435,7 @@ compare(id elem1, id elem2, void* context)
|
|||
}
|
||||
|
||||
/**
|
||||
* Creates an autoreleased mutable array anble to store at least numItems.
|
||||
* Creates an autoreleased mutable array able to store at least numItems.
|
||||
* See the -initWithCapacity: method.
|
||||
*/
|
||||
+ (id) arrayWithCapacity: (unsigned)numItems
|
||||
|
@ -1568,7 +1568,7 @@ compare(id elem1, id elem2, void* context)
|
|||
}
|
||||
|
||||
/**
|
||||
* Removes all occurrances of anObject (found by pointer equality)
|
||||
* Removes all occurrences of anObject (found by pointer equality)
|
||||
* from aRange in the receiver.
|
||||
*/
|
||||
- (void) removeObjectIdenticalTo: (id)anObject inRange: (NSRange)aRange
|
||||
|
@ -1611,7 +1611,7 @@ compare(id elem1, id elem2, void* context)
|
|||
}
|
||||
|
||||
/**
|
||||
* Removes all occurrences of anObject (found by anObjects -isEqual: method)
|
||||
* Removes all occurrences of anObject (found by anObject's -isEqual: method)
|
||||
* from the receiver.
|
||||
*/
|
||||
- (void) removeObject: (id)anObject
|
||||
|
@ -1697,7 +1697,7 @@ compare(id elem1, id elem2, void* context)
|
|||
|
||||
/**
|
||||
* Sets the contents of the receiver to be identical to the contents
|
||||
* of othrArray.
|
||||
* of otherArray.
|
||||
*/
|
||||
- (void) setArray: (NSArray *)otherArray
|
||||
{
|
||||
|
|
|
@ -1614,7 +1614,7 @@ static inline int getDigits(const char *from, char *to, int limit)
|
|||
}
|
||||
|
||||
/**
|
||||
* Calls -descriptionWithCalendarFormat:locale: passing the receviers
|
||||
* Calls -descriptionWithCalendarFormat:locale: passing the receiver's
|
||||
* calendar format and a nil locale.
|
||||
*/
|
||||
- (NSString*) description
|
||||
|
|
|
@ -91,7 +91,7 @@ static NSMapTable *classMap;
|
|||
|
||||
/**
|
||||
* Invalidates the cache of class descriptions so the new descriptions
|
||||
* will be fetched as required and begin to refil the cache. You need
|
||||
* will be fetched as required and begin to refill the cache. You need
|
||||
* this only if you suspect that a class description should have
|
||||
* changed.
|
||||
*/
|
||||
|
|
|
@ -755,7 +755,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
* existing connection is deemed to be the parent of the
|
||||
* new connection. The new connection inherits configuration
|
||||
* information from the parent, and the delegate of the
|
||||
* parent has a chance to adjust ythe configuration of the
|
||||
* parent has a chance to adjust the configuration of the
|
||||
* new connection or veto its creation.
|
||||
* <br/>
|
||||
* NSConnectionDidInitializeNotification is posted once a new
|
||||
|
@ -1191,7 +1191,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the NSPort object on which incoming messages are recieved.
|
||||
* Returns the NSPort object on which incoming messages are received.
|
||||
*/
|
||||
- (NSPort*) receivePort
|
||||
{
|
||||
|
@ -1210,7 +1210,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
}
|
||||
|
||||
/**
|
||||
* Registers the recieve port of the NSConnection as name and
|
||||
* Registers the receive port of the NSConnection as name and
|
||||
* unregisters the previous value (if any).<br />
|
||||
* Returns YES on success, NO on failure.<br />
|
||||
* On failure, the connection remains registered under the
|
||||
|
@ -1311,7 +1311,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
}
|
||||
|
||||
/**
|
||||
* Removes loop from the run loops used to recieve incoming messages.
|
||||
* Removes loop from the run loops used to receive incoming messages.
|
||||
*/
|
||||
- (void) removeRunLoop: (NSRunLoop*)loop
|
||||
{
|
||||
|
@ -1536,7 +1536,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
* </desc>
|
||||
* <term>NSConnectionRequestsReceived</term>
|
||||
* <desc>
|
||||
* The number of messages recieved from the remote NSConnection.
|
||||
* The number of messages received from the remote NSConnection.
|
||||
* </desc>
|
||||
* <term>NSConnectionRequestsSent</term>
|
||||
* <desc>
|
||||
|
@ -3337,7 +3337,7 @@ static void callEncoder (DOContext *ctxt)
|
|||
M_UNLOCK(_proxiesGate);
|
||||
}
|
||||
|
||||
- (void) aquireProxyForTarget: (unsigned)target
|
||||
- (void) acquireProxyForTarget: (unsigned)target
|
||||
{
|
||||
NSDistantObject *found;
|
||||
GSIMapNode node;
|
||||
|
|
|
@ -682,7 +682,7 @@ static unsigned gsu32Align;
|
|||
* Copies length bytes of data from the memory encapsulated by the receiver
|
||||
* into the specified buffer. The buffer must be large enough to contain
|
||||
* length bytes of data ... if it isn't then a crash is likely to occur.<br />
|
||||
* Invokes -getBytes:range: with the range set to iNSMakeRange(0, length)
|
||||
* Invokes -getBytes:range: with the range set to NSMakeRange(0, length)
|
||||
*/
|
||||
- (void) getBytes: (void*)buffer length: (unsigned int)length
|
||||
{
|
||||
|
@ -711,7 +711,7 @@ static unsigned gsu32Align;
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns an NSData instance encapsulating the memory from the reciever
|
||||
* Returns an NSData instance encapsulating the memory from the receiver
|
||||
* specified by the range aRange.<br />
|
||||
* If aRange specifies a range which does not entirely lie within the
|
||||
* receiver, an exception is raised.
|
||||
|
@ -1917,7 +1917,7 @@ failure:
|
|||
* then a range exception is raised.<br />
|
||||
* Otherwise, if the range specified extends beyond the end
|
||||
* of the data, then the size of the data is increased to
|
||||
* accomodate the new bytes.<br />
|
||||
* accommodate the new bytes.<br />
|
||||
*/
|
||||
- (void) replaceBytesInRange: (NSRange)aRange
|
||||
withBytes: (const void*)bytes
|
||||
|
|
|
@ -255,7 +255,7 @@ GSTimeNow(void)
|
|||
* <desc>An array of arrays of strings identifying the time of day.
|
||||
* Each array has an hour as its first value, and one or more words
|
||||
* as subsequent values.<br />
|
||||
* Defaults are: (0, midnight), (10, mornint), (12, noon, lunch),
|
||||
* Defaults are: (0, midnight), (10, morning), (12, noon, lunch),
|
||||
* (14, afternoon), (19, dinner).
|
||||
* </desc>
|
||||
* <term>NSLaterTimeDesignations</term>
|
||||
|
@ -1344,7 +1344,7 @@ GSTimeNow(void)
|
|||
* Returns whether the receiver is exactly equal to other, to the limit
|
||||
* of the NSTimeInterval precision.<br />
|
||||
* This is the behavior of the current MacOS-X system, not that of the
|
||||
* OpenStep specification (which counted two dates within a secfond of
|
||||
* OpenStep specification (which counted two dates within a second of
|
||||
* each other as being equal).<br />
|
||||
* The old behavior meant that two dates equal to a third date were not
|
||||
* necessarily equal to each other (confusing), and meant that there was
|
||||
|
|
|
@ -81,8 +81,8 @@ void (*_GSDebugAllocationRemoveFunc)(Class c, id o) = _GSDebugAllocationRemove;
|
|||
@end
|
||||
|
||||
/**
|
||||
* This functions allows to set own function backcalls for debugging allocation
|
||||
* of objects. Useful if you intend to write your own objectalloc.
|
||||
* This functions allows to set own function callbacks for debugging allocation
|
||||
* of objects. Useful if you intend to write your own object allocation code.
|
||||
*/
|
||||
void
|
||||
GSSetDebugAllocationFunctions(void (*newAddObjectFunc)(Class c, id o),
|
||||
|
|
|
@ -436,7 +436,7 @@ static SEL appSel;
|
|||
|
||||
/**
|
||||
* Initialises a dictionary created using the list given as argument.
|
||||
* The list is alernately composed of objects and keys.
|
||||
* The list is alternately composed of objects and keys.
|
||||
* Thus, the list's length must be pair.
|
||||
*/
|
||||
- (id) initWithObjectsAndKeys: (id)firstObject, ...
|
||||
|
@ -448,7 +448,7 @@ static SEL appSel;
|
|||
|
||||
/**
|
||||
* Returns a dictionary created using the list given as argument.
|
||||
* The list is alernately composed of objects and keys.
|
||||
* The list is alternately composed of objects and keys.
|
||||
* Thus, the list's length must be pair.
|
||||
*/
|
||||
+ (id) dictionaryWithObjectsAndKeys: (id)firstObject, ...
|
||||
|
@ -1246,7 +1246,7 @@ compareIt(id o1, id o2, void* context)
|
|||
/**
|
||||
* Merges information from otherDictionary into the receiver.
|
||||
* If a key exists in both dictionaries, the value from otherDictionary
|
||||
* replaces that which was originally in the reciever.
|
||||
* replaces that which was originally in the receiver.
|
||||
*/
|
||||
- (void) addEntriesFromDictionary: (NSDictionary*)otherDictionary
|
||||
{
|
||||
|
|
|
@ -95,7 +95,7 @@ typedef struct {
|
|||
@end
|
||||
|
||||
@interface NSConnection (DistantObjectHacks)
|
||||
- (void) aquireProxyForTarget: (unsigned)target;
|
||||
- (void) acquireProxyForTarget: (unsigned)target;
|
||||
- (NSDistantObject*) retainOrAddLocal: (NSDistantObject*)aProxy
|
||||
forObject: (id)anObject;
|
||||
- (NSDistantObject*) retainOrAddProxy: (NSDistantObject*)aProxy
|
||||
|
@ -308,7 +308,7 @@ enum proxyLocation
|
|||
* remote system, we must tell the connection to make sure
|
||||
* the other end knows we are creating one.
|
||||
*/
|
||||
[proxy_connection aquireProxyForTarget: target];
|
||||
[proxy_connection acquireProxyForTarget: target];
|
||||
|
||||
/*
|
||||
* Finally - we get a proxy via a direct connection to the
|
||||
|
@ -637,10 +637,10 @@ enum proxyLocation
|
|||
/**
|
||||
* <p>Returns the method signature describing the arguments and return
|
||||
* types of the method in the object referred to by the receiver
|
||||
* which implements the aSelecto message.
|
||||
* which implements the aSelector message.
|
||||
* </p>
|
||||
* <p>This method may need to refer to another process (causing relatively
|
||||
* slow network communication) and apprximately double the time taken for
|
||||
* slow network communication) and approximately double the time taken for
|
||||
* sending a distributed objects message, so you are advised to use the
|
||||
* -setProtocolForProxy: method to avoid this occurring.
|
||||
* </p>
|
||||
|
@ -769,7 +769,7 @@ enum proxyLocation
|
|||
* a protocol that the distant object referred to by the proxy should
|
||||
* conform to. When messages in that protocol are sent to the proxy,
|
||||
* the proxy knows that it does not need to ask the remote object for
|
||||
* the method siagnature in order to send the message to it, but can
|
||||
* the method signature in order to send the message to it, but can
|
||||
* send the message straight away based on the local method signature
|
||||
* information obtained from the protocol.
|
||||
* </p>
|
||||
|
|
|
@ -97,7 +97,7 @@ static NSFileManager *mgr = nil;
|
|||
}
|
||||
|
||||
/**
|
||||
* Initialises the reciever with the specified filesystem path.<br />
|
||||
* Initialises the receiver with the specified filesystem path.<br />
|
||||
* The location in the filesystem must be accessible for this
|
||||
* to be usable. That is, the processes using the lock must be able
|
||||
* to access, create, and destroy files at the path.<br />
|
||||
|
@ -143,7 +143,7 @@ static NSFileManager *mgr = nil;
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the date at which the lock was aquired by <em>any</em>
|
||||
* Returns the date at which the lock was acquired by <em>any</em>
|
||||
* NSDistributedLock using the same path. If nothing has
|
||||
* the lock, this returns nil.
|
||||
*/
|
||||
|
@ -156,7 +156,7 @@ static NSFileManager *mgr = nil;
|
|||
}
|
||||
|
||||
/**
|
||||
* Attempt to aquire the lock and return YES on success, NO on failure.<br />
|
||||
* Attempt to acquire the lock and return YES on success, NO on failure.<br />
|
||||
* May raise an NSGenericException if a problem occurs.
|
||||
*/
|
||||
- (BOOL) tryLock
|
||||
|
|
|
@ -126,10 +126,10 @@ static NSDistributedNotificationCenter *netCenter = nil;
|
|||
* a notification center used by processes on the local host which belong to
|
||||
* the current user.<br />
|
||||
* The <code>GSPublicNotificationCenterType</code> provides a shared access to
|
||||
* a notificatiuon center used by processes on the local host belonging to
|
||||
* a notification center used by processes on the local host belonging to
|
||||
* any user.<br />
|
||||
* The <code>GSNetworkNotificationCenterType</code> provides a shared access to
|
||||
* a notificatiuon center used by processes on the local network.<br />
|
||||
* a notification center used by processes on the local network.<br />
|
||||
* MacOS-X supports only <code>NSLocalNotificationCenterType</code>.
|
||||
*/
|
||||
+ (NSNotificationCenter*) notificationCenterForType: (NSString*)type
|
||||
|
|
|
@ -318,7 +318,7 @@ static Class NSFileHandle_ssl_class = nil;
|
|||
}
|
||||
|
||||
/**
|
||||
* Set up an asynchonous read operation which will cause a notification to
|
||||
* Set up an asynchronous read operation which will cause a notification to
|
||||
* be sent when any amount of data (or end of file) is read. Note that
|
||||
* the file handle will not continuously send notifications when data
|
||||
* is available. If you want to continue to receive notifications, you
|
||||
|
@ -338,7 +338,7 @@ static Class NSFileHandle_ssl_class = nil;
|
|||
}
|
||||
|
||||
/**
|
||||
* Set up an asynchonous read operation which will cause a notification to
|
||||
* Set up an asynchronous read operation which will cause a notification to
|
||||
* be sent when end of file is read.
|
||||
*/
|
||||
- (void) readToEndOfFileInBackgroundAndNotifyForModes: (NSArray*)modes
|
||||
|
@ -519,7 +519,7 @@ NSString * const NSFileHandleOperationException
|
|||
* Otherwise, the text '...' must be the name of the host on which the
|
||||
* socks5 server is running, with an optional port number separated
|
||||
* from the host name by a colon.<br />
|
||||
* Alternatively a prefix of the form 'bind-' forllowed by an IP address
|
||||
* Alternatively a prefix of the form 'bind-' followed by an IP address
|
||||
* may be used (for non-socks connections) to ensure that the connection
|
||||
* is made from the specified address.
|
||||
* </item>
|
||||
|
@ -530,7 +530,7 @@ NSString * const NSFileHandleOperationException
|
|||
* <p>
|
||||
* This method supports connection through a firewall via socks5. The
|
||||
* socks5 connection may be controlled via the protocol argument, but if
|
||||
* no socks infromation is supplied here, the <em>GSSOCKS</em> user default
|
||||
* no socks information is supplied here, the <em>GSSOCKS</em> user default
|
||||
* will be used, and failing that, the <em>SOCKS5_SERVER</em> or
|
||||
* <em>SOCKS_SERVER</em> environment variables will be used to set the
|
||||
* socks server. If none of these mechanisms specify a socks server, the
|
||||
|
@ -583,7 +583,7 @@ NSString * const NSFileHandleOperationException
|
|||
}
|
||||
|
||||
/**
|
||||
* Set up an asynchonous read operation which will cause a notification to
|
||||
* Set up an asynchronous read operation which will cause a notification to
|
||||
* be sent when the specified amount of data (or end of file) is read.
|
||||
*/
|
||||
- (void) readDataInBackgroundAndNotifyLength: (unsigned)len
|
||||
|
|
|
@ -2047,7 +2047,7 @@ inline void gsedRelease(GSEnumeratedDirectory X)
|
|||
|
||||
/**
|
||||
* Informs the receiver that any descendents of the current directory
|
||||
* should be skipped rather than enumerated. Use this to avaoid enumerating
|
||||
* should be skipped rather than enumerated. Use this to avoid enumerating
|
||||
* the contents of directories you are not interested in.
|
||||
*/
|
||||
- (void) skipDescendents
|
||||
|
|
|
@ -432,7 +432,7 @@ NSHashRemove(NSHashTable *table, const void *element)
|
|||
|
||||
/**
|
||||
* Step through the hash table ... return the next item or
|
||||
* return nulif we hit the of the table.
|
||||
* return nul if we hit the of the table.
|
||||
*/
|
||||
void *
|
||||
NSNextHashEnumeratorItem(NSHashEnumerator *enumerator)
|
||||
|
|
|
@ -763,7 +763,7 @@ _arg_addr(NSInvocation *inv, int index)
|
|||
* Internal use.<br />
|
||||
* Initialises the receiver with a known selector and argument list
|
||||
* as supplied to the forward:: method by the ObjectiveC runtime
|
||||
* when it is unable to locate an implementation for mthe selector
|
||||
* when it is unable to locate an implementation for the selector
|
||||
* in a class.
|
||||
*/
|
||||
- (id) initWithArgframe: (arglist_t)frame selector: (SEL)aSelector
|
||||
|
@ -813,7 +813,7 @@ _arg_addr(NSInvocation *inv, int index)
|
|||
}
|
||||
|
||||
/**
|
||||
* Initialises the reciever with the specified target, selector, and
|
||||
* Initialises the receiver with the specified target, selector, and
|
||||
* a variable number of arguments.
|
||||
*/
|
||||
- (id) initWithTarget: anObject selector: (SEL)aSelector, ...
|
||||
|
|
|
@ -137,7 +137,7 @@ NSString *NSRecursiveLockException = @"NSRecursiveLockException";
|
|||
* code, another thread cannot execute that code until the first thread has
|
||||
* given up its hold on the lock. The limitation of <code>NSLock</code> is
|
||||
* that you can only lock an <code>NSLock</code> once and it must be unlocked
|
||||
* before it can be aquired again.<br /> Other lock classes, notably
|
||||
* before it can be acquired again.<br /> Other lock classes, notably
|
||||
* [NSRecursiveLock], have different restrictions.
|
||||
*/
|
||||
@implementation NSLock
|
||||
|
@ -181,9 +181,9 @@ NSString *NSRecursiveLockException = @"NSRecursiveLockException";
|
|||
}
|
||||
|
||||
/**
|
||||
* Attempts to aquire a lock, but returns immediately if the lock
|
||||
* cannot be aquired. It returns YES if the lock is aquired. It returns
|
||||
* NO if the lock cannot be aquired or if the current thread already has
|
||||
* Attempts to acquire a lock, but returns immediately if the lock
|
||||
* cannot be acquired. It returns YES if the lock is acquired. It returns
|
||||
* NO if the lock cannot be acquired or if the current thread already has
|
||||
* the lock.
|
||||
*/
|
||||
- (BOOL) tryLock
|
||||
|
@ -203,7 +203,7 @@ NSString *NSRecursiveLockException = @"NSRecursiveLockException";
|
|||
}
|
||||
|
||||
/**
|
||||
* Attempts to aquire a lock before the date limit passes. It returns YES
|
||||
* Attempts to acquire a lock before the date limit passes. It returns YES
|
||||
* if it can. It returns NO if it cannot, or if the current thread already
|
||||
* has the lock (but it waits until the time limit is up before returning
|
||||
* NO).
|
||||
|
@ -229,7 +229,7 @@ NSString *NSRecursiveLockException = @"NSRecursiveLockException";
|
|||
}
|
||||
|
||||
/**
|
||||
* Attempts to aquire a lock, and waits until it can do so.
|
||||
* Attempts to acquire a lock, and waits until it can do so.
|
||||
*/
|
||||
- (void) lock
|
||||
{
|
||||
|
@ -568,8 +568,8 @@ NSString *NSRecursiveLockException = @"NSRecursiveLockException";
|
|||
/**
|
||||
* See [NSLock] for more information about what a lock is. A recursive
|
||||
* lock extends [NSLock] in that you can lock a recursive lock multiple
|
||||
* times. Each lock must be balanced by a cooresponding unlock, and the
|
||||
* lock is not released for another thread to aquire until the last
|
||||
* times. Each lock must be balanced by a corresponding unlock, and the
|
||||
* lock is not released for another thread to acquire until the last
|
||||
* unlock call is made (corresponding to the first lock message).
|
||||
*/
|
||||
@implementation NSRecursiveLock
|
||||
|
@ -614,8 +614,8 @@ NSString *NSRecursiveLockException = @"NSRecursiveLockException";
|
|||
}
|
||||
|
||||
/**
|
||||
* Attempts to aquire a lock, but returns NO immediately if the lock
|
||||
* cannot be aquired. It returns YES if the lock is aquired. Can be
|
||||
* Attempts to acquire a lock, but returns NO immediately if the lock
|
||||
* cannot be acquired. It returns YES if the lock is acquired. Can be
|
||||
* called multiple times to make nested locks.
|
||||
*/
|
||||
- (BOOL) tryLock
|
||||
|
@ -628,7 +628,7 @@ NSString *NSRecursiveLockException = @"NSRecursiveLockException";
|
|||
}
|
||||
|
||||
/**
|
||||
* Attempts to aquire a lock before the date limit passes. It returns
|
||||
* Attempts to acquire a lock before the date limit passes. It returns
|
||||
* YES if it can. It returns NO if it cannot
|
||||
* (but it waits until the time limit is up before returning NO).
|
||||
*/
|
||||
|
|
|
@ -328,7 +328,7 @@ NSEnumerateMapTable(NSMapTable *table)
|
|||
}
|
||||
|
||||
/**
|
||||
* Destroy the map table and relase its contents.<br />
|
||||
* Destroy the map table and release its contents.<br />
|
||||
* Releases all the keys and values of table (using the key and
|
||||
* value callbacks specified at the time of table's creation),
|
||||
* and then proceeds to deallocate the space allocated for table itself.
|
||||
|
|
|
@ -234,7 +234,7 @@ static GSIMapTable_t retain_counts = {0};
|
|||
* Examines the extra reference count for the object and, if non-zero
|
||||
* decrements it, otherwise leaves it unchanged.<br />
|
||||
* Returns a flag to say whether the count was zero
|
||||
* (and hence whether the extra refrence count was decremented).<br />
|
||||
* (and hence whether the extra reference count was decremented).<br />
|
||||
* This function is used by the [NSObject-release] method.
|
||||
*/
|
||||
inline BOOL
|
||||
|
@ -1129,7 +1129,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
|
|||
}
|
||||
|
||||
/**
|
||||
* Creates and returns a copy of the reciever by calling -copyWithZone:
|
||||
* Creates and returns a copy of the receiver by calling -copyWithZone:
|
||||
* passing NSDefaultMallocZone()
|
||||
*/
|
||||
- (id) copy
|
||||
|
@ -1244,7 +1244,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
|
|||
}
|
||||
|
||||
/**
|
||||
* Creates and rturns a mutable copy of the receiver by calling
|
||||
* Creates and returns a mutable copy of the receiver by calling
|
||||
* -mutableCopyWithZone: passing NSDefaultMallocZone().
|
||||
*/
|
||||
- (id) mutableCopy
|
||||
|
@ -1375,7 +1375,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
|
|||
|
||||
/**
|
||||
* Returns a pointer to the C function implementing the method used
|
||||
* to respond to messages with aSelector whihc are sent to instances
|
||||
* to respond to messages with aSelector which are sent to instances
|
||||
* of the receiving class.
|
||||
* <br />Raises NSInvalidArgumentException if given a null selector.
|
||||
*/
|
||||
|
@ -1499,7 +1499,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
|
|||
}
|
||||
|
||||
/**
|
||||
* Raises an invalid argument exception providing infomration about
|
||||
* Raises an invalid argument exception providing information about
|
||||
* the receivers inability to handle aSelector.
|
||||
*/
|
||||
- (void) doesNotRecognizeSelector: (SEL)aSelector
|
||||
|
@ -1854,7 +1854,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
|
|||
}
|
||||
|
||||
/**
|
||||
* Decrements the retain count for the receiver if greater than zeron,
|
||||
* Decrements the retain count for the receiver if greater than zero,
|
||||
* otherwise calls the dealloc method instead.<br />
|
||||
* The default implementation calls the NSDecrementExtraRefCountWasZero()
|
||||
* function to test the extra reference count for the receiver (and
|
||||
|
@ -1944,7 +1944,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
|
|||
|
||||
/**
|
||||
* Returns the reference count for the receiver. Each instance has an
|
||||
* implicit reference count of 1, and has an 'extra refrence count'
|
||||
* implicit reference count of 1, and has an 'extra reference count'
|
||||
* returned by the NSExtraRefCount() function, so the value returned by
|
||||
* this method is always greater than zero.<br />
|
||||
* By convention, objects which should (or can) never be deallocated
|
||||
|
@ -1970,7 +1970,7 @@ GSDescriptionForClassMethod(pcl self, SEL aSel)
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the reciever.
|
||||
* Returns the receiver.
|
||||
*/
|
||||
- (id) self
|
||||
{
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
information required by the library to establish all locations required.
|
||||
</p>
|
||||
<p>
|
||||
See <REF "filesystem.pdf">GNUstep File System Heirarchy</REF> document
|
||||
See <REF "filesystem.pdf">GNUstep File System Hierarchy</REF> document
|
||||
for more information and detailed descriptions.</p>
|
||||
</unit>
|
||||
*/
|
||||
|
@ -577,7 +577,7 @@ static void ShutdownPathUtilities(void)
|
|||
* thus serves to join lines so that they are treated as a single line.<br />
|
||||
* NB. Since ms-windows uses backslash characters in paths, it is a good
|
||||
* idea to specify path values in the config file as singly quoted
|
||||
* strings to avoid having to double all occurrances of the backslash.<br />
|
||||
* strings to avoid having to double all occurrences of the backslash.<br />
|
||||
* Returns a dictionary of the (key,value) pairs.<br/ >
|
||||
*/
|
||||
static BOOL
|
||||
|
@ -1044,7 +1044,7 @@ GSDefaultsRootForUser(NSString *userName)
|
|||
/**
|
||||
* Returns the standard paths in which applications are stored and
|
||||
* should be searched for. Calls NSSearchPathForDirectoriesInDomains()<br/ >
|
||||
* Refer to the GNUstep File System Heirarchy documentation for more info.
|
||||
* Refer to the GNUstep File System Hierarchy documentation for more info.
|
||||
*/
|
||||
NSArray *
|
||||
NSStandardApplicationPaths(void)
|
||||
|
@ -1056,7 +1056,7 @@ NSStandardApplicationPaths(void)
|
|||
/**
|
||||
* Returns the standard paths in which resources are stored and
|
||||
* should be searched for. Calls NSSearchPathForDirectoriesInDomains()<br/ >
|
||||
* Refer to the GNUstep File System Heirarchy documentation for more info.
|
||||
* Refer to the GNUstep File System Hierarchy documentation for more info.
|
||||
*/
|
||||
NSArray *
|
||||
NSStandardLibraryPaths(void)
|
||||
|
@ -1224,9 +1224,9 @@ NSTemporaryDirectory(void)
|
|||
|
||||
/**
|
||||
* Deprecated function. Returns the location of the <em>root</em>
|
||||
* directory of the GNUstep file heirarchy. Don't assume that /System,
|
||||
* directory of the GNUstep file hierarchy. Don't assume that /System,
|
||||
* /Network etc exist in this path! Use other path utility functions for that.
|
||||
* Refer to the GNUstep File System Heirarchy documentation for more info.
|
||||
* Refer to the GNUstep File System Hierarchy documentation for more info.
|
||||
*/
|
||||
NSString *
|
||||
NSOpenStepRootDirectory(void)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/** Implementation of NSPortMessage for GNUstep
|
||||
Copyright (C) 1998,2000 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard frith-Macdonald <richard@brainstorm.co.Ik>
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Created: October 1998
|
||||
|
||||
This file is part of the GNUstep Base Library.
|
||||
|
|
|
@ -269,7 +269,7 @@ extern BOOL __objc_responds_to(id, SEL);
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns a text descrioption of the receiver.
|
||||
* Returns a text description of the receiver.
|
||||
*/
|
||||
- (NSString*) description
|
||||
{
|
||||
|
|
|
@ -944,7 +944,7 @@ typedef struct {
|
|||
* then this method returns NO since it finds no characters to store
|
||||
* in value before it finds string.
|
||||
* </p>
|
||||
* <p>To count the occurrances of string, this should be used in
|
||||
* <p>To count the occurrences of string, this should be used in
|
||||
* conjunction with the -scanString:intoString: method.
|
||||
* </p>
|
||||
* <example>
|
||||
|
@ -1061,7 +1061,7 @@ typedef struct {
|
|||
/**
|
||||
* Sets the set of characters that the scanner will skip over at the
|
||||
* start of each scanning operation to be <em>skipSet</em>.
|
||||
* Skipping is performed by literal character matchins - the case
|
||||
* Skipping is performed by literal character matching - the case
|
||||
* sensitivity of the scanner does not effect it.
|
||||
* If this is set to nil, no skipping is done.
|
||||
* <br/>
|
||||
|
|
|
@ -1035,7 +1035,7 @@ typedef enum {
|
|||
* Concrete implementation of [NSPortNameServer-removePortForName:]<br />
|
||||
* Unregisters the specified name from any associated port on the
|
||||
* local host.<br />
|
||||
* Returns YES on succes, NO on failure.
|
||||
* Returns YES on success, NO on failure.
|
||||
*/
|
||||
- (BOOL) removePortForName: (NSString*)name
|
||||
{
|
||||
|
|
|
@ -1777,7 +1777,7 @@ handle_printf_atsign (FILE *stream,
|
|||
|
||||
/**
|
||||
* Constructs a new ASCII string which is a representation of the receiver
|
||||
* in which characters are esacped where necessary in order to produce a
|
||||
* in which characters are escaped where necessary in order to produce a
|
||||
* legal URL.<br />
|
||||
* Returns nil if the receiver cannot be represented using the specified
|
||||
* encoding.
|
||||
|
@ -2090,7 +2090,7 @@ handle_printf_atsign (FILE *stream,
|
|||
|
||||
/**
|
||||
* Invokes -rangeOfString:options:range: with the range set
|
||||
* set to the range of the whole of the reciever.
|
||||
* set to the range of the whole of the receiver.
|
||||
*/
|
||||
- (NSRange) rangeOfString: (NSString*)string
|
||||
options: (unsigned int)mask
|
||||
|
@ -2968,7 +2968,7 @@ handle_printf_atsign (FILE *stream,
|
|||
|
||||
/**
|
||||
* Retrieve the contents of the receiver into the buffer.<br />
|
||||
* The buffer must be large enought to contain the CString representation
|
||||
* The buffer must be large enough to contain the CString representation
|
||||
* of the characters in the receiver, plus a nul terminator which this
|
||||
* method adds.
|
||||
*/
|
||||
|
@ -3818,7 +3818,7 @@ static NSFileManager *fm = nil;
|
|||
}
|
||||
|
||||
/*
|
||||
* Locate path separator preceeding last path component.
|
||||
* Locate path separator preceding last path component.
|
||||
*/
|
||||
range = [self rangeOfCharacterFromSet: pathSeps()
|
||||
options: NSBackwardsSearch
|
||||
|
@ -4063,9 +4063,9 @@ static NSFileManager *fm = nil;
|
|||
|
||||
/**
|
||||
* Returns a string created by replacing percent escape sequences in the
|
||||
* receiver assuning that the resulting data represents characters in
|
||||
* receiver assuming that the resulting data represents characters in
|
||||
* the specified encoding.<br />
|
||||
* Returns nil if the ressult is not a string in the specified encoding.
|
||||
* Returns nil if the result is not a string in the specified encoding.
|
||||
*/
|
||||
- (NSString*) stringByReplacingPercentEscapesUsingEncoding: (NSStringEncoding)e
|
||||
{
|
||||
|
@ -4461,7 +4461,7 @@ static NSFileManager *fm = nil;
|
|||
* receiver. Characters are removed only if they are in aSet.<br />
|
||||
* If the string consists entirely of characters in aSet, an empty
|
||||
* string is returned.<br />
|
||||
* The aSet argument nust not be nil.<br />
|
||||
* The aSet argument must not be nil.<br />
|
||||
*/
|
||||
- (NSString*) stringByTrimmingCharactersInSet: (NSCharacterSet*)aSet
|
||||
{
|
||||
|
@ -5277,7 +5277,7 @@ static NSFileManager *fm = nil;
|
|||
* for those cases where the entire replace string lies within the
|
||||
* specified searchRange value.<br />
|
||||
* The value of opts determines the direction of the search is and
|
||||
* whether only leading/trailing occurrances (anchored search) of
|
||||
* whether only leading/trailing occurrences (anchored search) of
|
||||
* replace are substituted.<br />
|
||||
* Raises NSInvalidArgumentException if either string argument is nil.<br />
|
||||
* Raises NSRangeException if part of searchRange is beyond the end
|
||||
|
|
|
@ -697,7 +697,7 @@ pty_slave(const char* name)
|
|||
* the actual binary to be used.<br />
|
||||
* Checks that the binary file exists and is executable.<br />
|
||||
* Even tries searching the directories in the PATH environment variable
|
||||
* to locate a binary if the original alunch path set was not absolute.
|
||||
* to locate a binary if the original launch path set was not absolute.
|
||||
*/
|
||||
- (NSString*) validatedLaunchPath
|
||||
{
|
||||
|
|
|
@ -1394,7 +1394,7 @@ static NSMapTable *absolutes = 0;
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns a timezone for the specified abbrevition. The same abbreviations
|
||||
* Returns a timezone for the specified abbreviation. The same abbreviations
|
||||
* are used in different regions so this isn't particularly useful.<br />
|
||||
* Calls NSTimeZone-abbreviation dictionary an so uses a lot of memory.
|
||||
*/
|
||||
|
@ -1601,7 +1601,7 @@ static NSMapTable *absolutes = 0;
|
|||
/**
|
||||
* Returns the number of seconds by which the receiver differs
|
||||
* from Greenwich Mean Time at the date aDate.<br />
|
||||
* If the time zone uses dayl;ight savings time, the returned value
|
||||
* If the time zone uses daylight savings time, the returned value
|
||||
* will vary at different times of year.
|
||||
*/
|
||||
- (int) secondsFromGMTForDate: (NSDate*)aDate
|
||||
|
|
|
@ -119,7 +119,7 @@ static Class NSDate_class;
|
|||
}
|
||||
|
||||
/**
|
||||
* Create a timer wchich will fire after ti seconds and, if f is YES,
|
||||
* Create a timer which will fire after ti seconds and, if f is YES,
|
||||
* every ti seconds thereafter. On firing, the target object will be
|
||||
* sent a message specified by selector and with the value info as an
|
||||
* argument.<br />
|
||||
|
@ -190,7 +190,7 @@ static Class NSDate_class;
|
|||
}
|
||||
|
||||
/**
|
||||
* Fires the timer ... either performs an invocation or ssends a message
|
||||
* Fires the timer ... either performs an invocation or sends a message
|
||||
* to a target object, depending on how the timer was set up.<br />
|
||||
* If the timer is not set to repeat, it is automatically invalidated.
|
||||
*/
|
||||
|
@ -312,7 +312,7 @@ static Class NSDate_class;
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the interval beteen firings.
|
||||
* Returns the interval between firings.
|
||||
*/
|
||||
- (NSTimeInterval) timeInterval
|
||||
{
|
||||
|
|
|
@ -467,7 +467,7 @@ static void unescape(const char *from, char * to)
|
|||
* how a URL is formatted, and what is legal in a URL are -
|
||||
* 1808, 1738, and 2396.<br />
|
||||
* Handling of the underlying resources is carried out by NSURLHandle
|
||||
* objects, but NSURL provides a simoplified API wrapping these objects.
|
||||
* objects, but NSURL provides a simplified API wrapping these objects.
|
||||
*/
|
||||
@implementation NSURL
|
||||
|
||||
|
@ -1016,7 +1016,7 @@ static unsigned urlAlign;
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the full string describing the receiver resiolved against its base.
|
||||
* Returns the full string describing the receiver resolved against its base.
|
||||
*/
|
||||
- (NSString*) absoluteString
|
||||
{
|
||||
|
@ -1098,7 +1098,7 @@ static unsigned urlAlign;
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns YES if the recevier is a file URL, NO otherwise.
|
||||
* Returns YES if the receiver is a file URL, NO otherwise.
|
||||
*/
|
||||
- (BOOL) isFileURL
|
||||
{
|
||||
|
@ -1215,7 +1215,7 @@ static unsigned urlAlign;
|
|||
* Replaces percent escapes with unescaped values, interpreting non-ascii
|
||||
* character sequences as UTF8.<br />
|
||||
* NB. This does not conform strictly to the RFCs, in that it includes a
|
||||
* leading slash ('/') character (wheras the path part of a URL strictly
|
||||
* leading slash ('/') character (whereas the path part of a URL strictly
|
||||
* should not) and the interpretation of non-ascii character is (strictly
|
||||
* speaking) undefined.<br />
|
||||
* Also, this breaks strict conformance in that a URL of file scheme is
|
||||
|
|
|
@ -575,7 +575,7 @@ static Class NSURLHandleClass = 0;
|
|||
* </p>
|
||||
* <p>
|
||||
* The GNUstep implementation for <em>ftp:</em> sets the specified data
|
||||
* as information to be weitten to the URL next time it is loaded - so
|
||||
* as information to be written to the URL next time it is loaded - so
|
||||
* the method always returns YES.
|
||||
* </p>
|
||||
*/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/** Implementation of NSUnarchiver for GNUstep
|
||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Richard frith-Macdonald <richard@brainstorm.co.Ik>
|
||||
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Created: October 1998
|
||||
|
||||
This file is part of the GNUstep Base Library.
|
||||
|
@ -1306,7 +1306,7 @@ static Class NSDataMallocClass;
|
|||
|
||||
|
||||
/**
|
||||
* Catagory for compatibility with old GNUstep encoding.
|
||||
* Category for compatibility with old GNUstep encoding.
|
||||
*/
|
||||
@implementation NSUnarchiver (GNUstep)
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@
|
|||
|
||||
|
||||
/*
|
||||
* Private catagory for the method used to handle default grouping
|
||||
* Private category for the method used to handle default grouping
|
||||
*/
|
||||
@interface NSUndoManager (Private)
|
||||
- (void) _loop: (id)arg;
|
||||
|
@ -190,7 +190,7 @@
|
|||
|
||||
/**
|
||||
* Starts a new grouping of undo actions which can be
|
||||
* atomically undone by an [-undo] invovation.
|
||||
* atomically undone by an [-undo] invocation.
|
||||
* This method posts an NSUndoManagerCheckpointNotification
|
||||
* unless an undo is currently in progress. It posts an
|
||||
* NSUndoManagerDidOpenUndoGroupNotification upon creating the grouping.
|
||||
|
@ -393,15 +393,15 @@
|
|||
* The invocation will added to the current grouping.<br />
|
||||
* If the registrations have been disabled through [-disableUndoRegistration],
|
||||
* this method does nothing.<br />
|
||||
* Unless the reciever implicitly
|
||||
* groups operations by event, the this method must have been preceeded
|
||||
* Unless the receiver implicitly
|
||||
* groups operations by event, the this method must have been preceded
|
||||
* with a [-beginUndoGrouping] message. Otherwise it will raise an
|
||||
* NSInternalInconsistencyException. <br />
|
||||
* Unless this method is invoked as part of a [-undo] or [-undoNestedGroup]
|
||||
* processing, the redo stack is cleared.<br />
|
||||
* If the reciever [-groupsByEvent] and this is the first call to this
|
||||
* If the receiver [-groupsByEvent] and this is the first call to this
|
||||
* method since the last run loop processing, this method sets up
|
||||
* the reciever to process the [-endUndoGrouping] at the
|
||||
* the receiver to process the [-endUndoGrouping] at the
|
||||
* end of the event loop.
|
||||
*/
|
||||
- (void) forwardInvocation: (NSInvocation*)anInvocation
|
||||
|
@ -446,8 +446,8 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* If the reciever was sent a [-prepareWithInvocationTarget:] and
|
||||
* the target's method hasn't been invoked on the reciever yet, this
|
||||
* If the receiver was sent a [-prepareWithInvocationTarget:] and
|
||||
* the target's method hasn't been invoked on the receiver yet, this
|
||||
* method forwards the request to the target.
|
||||
* Otherwise or if the target didn't return a signature, the message
|
||||
* is sent to super.
|
||||
|
@ -544,7 +544,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the maximium number of undo groupings the reciever will maintain.
|
||||
* Returns the maximum number of undo groupings the receiver will maintain.
|
||||
* The default value is 0 meaning the number is only limited by
|
||||
* memory availability.
|
||||
*/
|
||||
|
@ -575,10 +575,10 @@
|
|||
* Performs a redo of previous undo request by taking the top grouping
|
||||
* from the redo stack and invoking them. This method posts an
|
||||
* NSUndoManagerCheckpointNotification notification to allow the client
|
||||
* to process any pending changes before proceding. If there are groupings
|
||||
* to process any pending changes before proceeding. If there are groupings
|
||||
* on the redo stack, the top object is popped off the stack and invoked
|
||||
* within a nested [-beginUndoGrouping]/[-endUndoGrouping]. During this
|
||||
* pocessing, the operations registered for undo are recorded on the undo
|
||||
* processing, the operations registered for undo are recorded on the undo
|
||||
* stack again.<br />
|
||||
*/
|
||||
- (void) redo
|
||||
|
@ -628,11 +628,11 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* If the receiver can preform a redo, this method returns
|
||||
* If the receiver can perform a redo, this method returns
|
||||
* the action name previously associated with the top grouping with
|
||||
* [-setActionName:]. This name should identify the action to be redone.
|
||||
* If there are no items on the redo stack this method returns nil.
|
||||
* If no action name hs been set, this method returns an empty string.
|
||||
* If no action name has been set, this method returns an empty string.
|
||||
*/
|
||||
- (NSString*) redoActionName
|
||||
{
|
||||
|
@ -691,15 +691,15 @@
|
|||
* will be retained. The invocation will added to the current grouping.<br />
|
||||
* If the registrations have been disabled through [-disableUndoRegistration],
|
||||
* this method does nothing.<br />
|
||||
* Unless the reciever implicitly
|
||||
* groups operations by event, the this method must have been preceeded
|
||||
* Unless the receiver implicitly
|
||||
* groups operations by event, the this method must have been preceded
|
||||
* with a [-beginUndoGrouping] message. Otherwise it will raise an
|
||||
* NSInternalInconsistencyException. <br />
|
||||
* Unless this method is invoked as part of a [-undo] or [-undoNestedGroup]
|
||||
* processing, the redo stack is cleared.<br />
|
||||
* If the reciever [-groupsByEvent] and this is the first call to this
|
||||
* If the receiver [-groupsByEvent] and this is the first call to this
|
||||
* method since the last run loop processing, this method sets up
|
||||
* the reciever to process the [-endUndoGrouping] at the
|
||||
* the receiver to process the [-endUndoGrouping] at the
|
||||
* end of the event loop.
|
||||
*/
|
||||
- (void) registerUndoWithTarget: (id)target
|
||||
|
@ -754,7 +754,7 @@
|
|||
* of the undo manager will be unable to service any undo or redo events.
|
||||
* The client can call this method in its -dealloc method, unless the
|
||||
* undo manager has several clients, in which case
|
||||
* [-removeAllActionsWithTarget:] is more apropriate.
|
||||
* [-removeAllActionsWithTarget:] is more appropriate.
|
||||
*/
|
||||
- (void) removeAllActions
|
||||
{
|
||||
|
@ -769,8 +769,8 @@
|
|||
* Removes all actions recorded for the given target. This method is
|
||||
* is useful when a client of the undo manager will be unable to
|
||||
* service any undo or redo events. Clients should call this method
|
||||
* in thier dealloc method, unless they are the sole client of the
|
||||
* undo manager in which case [-removeAllActions] is more apropriate.
|
||||
* in their dealloc method, unless they are the sole client of the
|
||||
* undo manager in which case [-removeAllActions] is more appropriate.
|
||||
*/
|
||||
- (void) removeAllActionsWithTarget: (id)target
|
||||
{
|
||||
|
@ -828,7 +828,7 @@
|
|||
/**
|
||||
* Sets whether the receiver should implicitly call [-beginUndoGrouping] when
|
||||
* necessary and register a call to invoke [-endUndoGrouping] at the end
|
||||
* of the current event loop. The grouping is tunred on by default.
|
||||
* of the current event loop. The grouping is turned on by default.
|
||||
*/
|
||||
- (void) setGroupsByEvent: (BOOL)flag
|
||||
{
|
||||
|
@ -862,11 +862,11 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* Sets the modes in which the reciever registers the calls
|
||||
* Sets the modes in which the receiver registers the calls
|
||||
* with the current run loop to invoke
|
||||
* [-endUndoGrouping] when it [-groupsByEvent]. This method
|
||||
* first cancels any pending registrations in the old modes and
|
||||
* registers the invokation in the new modes.
|
||||
* registers the invocation in the new modes.
|
||||
*/
|
||||
- (void) setRunLoopModes: (NSArray*)newModes
|
||||
{
|
||||
|
@ -887,7 +887,7 @@
|
|||
|
||||
/**
|
||||
* This method performs an undo by invoking [-undoNestedGroup].
|
||||
* If current group of the reciever is the top group this method first
|
||||
* If current group of the receiver is the top group this method first
|
||||
* calls [-endUndoGrouping]. This method may only be called on the top
|
||||
* level group, otherwise it will raise an NSInternalInconsistencyException.
|
||||
*/
|
||||
|
@ -906,11 +906,11 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* If the receiver can preform an undo, this method returns
|
||||
* If the receiver can perform an undo, this method returns
|
||||
* the action name previously associated with the top grouping with
|
||||
* [-setActionName:]. This name should identify the action to be undone.
|
||||
* If there are no items on the undo stack this method returns nil.
|
||||
* If no action name hs been set, this method returns an empty string.
|
||||
* If no action name has been set, this method returns an empty string.
|
||||
*/
|
||||
- (NSString*) undoActionName
|
||||
{
|
||||
|
@ -961,10 +961,10 @@
|
|||
* Performs an undo by taking the top grouping
|
||||
* from the undo stack and invoking them. This method posts an
|
||||
* NSUndoManagerCheckpointNotification notification to allow the client
|
||||
* to process any pending changes before procedding. If there are groupings
|
||||
* to process any pending changes before proceeding. If there are groupings
|
||||
* on the undo stack, the top object is popped off the stack and invoked
|
||||
* within a nested beginUndoGrouping/endUndoGrouping. During this
|
||||
* pocessing, the undo operations registered for undo are recorded on the redo
|
||||
* processing, the undo operations registered for undo are recorded on the redo
|
||||
* stack.<br />
|
||||
*/
|
||||
- (void) undoNestedGroup
|
||||
|
|
|
@ -145,7 +145,7 @@ static void updateCache(NSUserDefaults *self)
|
|||
* <p>
|
||||
* NSUserDefaults provides an interface to the defaults system,
|
||||
* which allows an application access to global and/or application
|
||||
* specific defualts set by the user. A particular instance of
|
||||
* specific defaults set by the user. A particular instance of
|
||||
* NSUserDefaults, standardUserDefaults, is provided as a
|
||||
* convenience. Most of the information described below
|
||||
* pertains to the standardUserDefaults. It is unlikely
|
||||
|
@ -156,9 +156,9 @@ static void updateCache(NSUserDefaults *self)
|
|||
* <p>
|
||||
* Defaults are managed based on <em>domains</em>. Certain
|
||||
* domains, such as <code>NSGlobalDomain</code>, are
|
||||
* persistant. These domains have defaults that are stored
|
||||
* externally. Other domains are volitale. The defaults in
|
||||
* these domains remain in effect only during the existance of
|
||||
* persistent. These domains have defaults that are stored
|
||||
* externally. Other domains are volatile. The defaults in
|
||||
* these domains remain in effect only during the existence of
|
||||
* the application and may in fact be different for
|
||||
* applications running at the same time. When asking for a
|
||||
* default value from standardUserDefaults, NSUserDefaults
|
||||
|
@ -171,7 +171,7 @@ static void updateCache(NSUserDefaults *self)
|
|||
* to the application at startup.<br />
|
||||
* Pairs of arguments are used for this, with the first argument in
|
||||
* each pair being the name of a default (with a hyphen prepended)
|
||||
* and the second argument of the pair being the value of the defalt.<br />
|
||||
* and the second argument of the pair being the value of the default.<br />
|
||||
* NB. In GNUstep special arguments of the form <code>--GNU-Debug=...</code>
|
||||
* are used to enable debugging. Despite beginning with a hyphen, these
|
||||
* are not treated as default keys.
|
||||
|
@ -1812,7 +1812,7 @@ static BOOL isLocked = NO;
|
|||
}
|
||||
|
||||
/**
|
||||
* Removes the named domain from the serach list of the receiver.<br />
|
||||
* Removes the named domain from the search list of the receiver.<br />
|
||||
* Suites may be added using the -addSuiteNamed: method.
|
||||
*/
|
||||
- (void) removeSuiteNamed: (NSString*)aName
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
Written by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||
Date: Mar 1995
|
||||
Updated by: Richard frith-Macdonald <rfm@gnu.org>
|
||||
Updated by: Richard Frith-Macdonald <rfm@gnu.org>
|
||||
Date: Jan 2001
|
||||
|
||||
This file is part of the GNUstep Base Library.
|
||||
|
|
|
@ -120,7 +120,7 @@ struct NSUserDefaultsWin32_DomainInfo
|
|||
{
|
||||
NSArray *allDomains;
|
||||
NSEnumerator *iter;
|
||||
NSString *persistantDomain;
|
||||
NSString *persistentDomain;
|
||||
NSMutableDictionary *newDict = nil;
|
||||
|
||||
allDomains = [self persistentDomainNames];
|
||||
|
@ -141,20 +141,20 @@ struct NSUserDefaultsWin32_DomainInfo
|
|||
newDict = [NSMutableDictionary dictionary];
|
||||
|
||||
iter = [allDomains objectEnumerator];
|
||||
while ((persistantDomain = [iter nextObject]) != nil)
|
||||
while ((persistentDomain = [iter nextObject]) != nil)
|
||||
{
|
||||
NSMutableDictionary *domainDict;
|
||||
struct NSUserDefaultsWin32_DomainInfo *dinfo;
|
||||
NSString *dPath;
|
||||
LONG rc;
|
||||
|
||||
dinfo = NSMapGet(registryInfo, persistantDomain);
|
||||
dinfo = NSMapGet(registryInfo, persistentDomain);
|
||||
if (dinfo == 0)
|
||||
{
|
||||
dinfo = calloc(sizeof(struct NSUserDefaultsWin32_DomainInfo), 1);
|
||||
NSMapInsertKnownAbsent(registryInfo, persistantDomain, dinfo);
|
||||
NSMapInsertKnownAbsent(registryInfo, persistentDomain, dinfo);
|
||||
}
|
||||
dPath = [registryPrefix stringByAppendingString: persistantDomain];
|
||||
dPath = [registryPrefix stringByAppendingString: persistentDomain];
|
||||
|
||||
if (dinfo->userKey == 0)
|
||||
{
|
||||
|
@ -194,11 +194,11 @@ struct NSUserDefaultsWin32_DomainInfo
|
|||
}
|
||||
}
|
||||
|
||||
domainDict = [newDict objectForKey: persistantDomain];
|
||||
domainDict = [newDict objectForKey: persistentDomain];
|
||||
if (domainDict == nil)
|
||||
{
|
||||
domainDict = [NSMutableDictionary dictionary];
|
||||
[newDict setObject: domainDict forKey: persistantDomain];
|
||||
[newDict setObject: domainDict forKey: persistentDomain];
|
||||
}
|
||||
|
||||
if (dinfo->systemKey)
|
||||
|
@ -464,7 +464,7 @@ struct NSUserDefaultsWin32_DomainInfo
|
|||
- (BOOL) writeDefaults: (NSDictionary*)defaults oldData: (NSDictionary*)oldData
|
||||
{
|
||||
NSEnumerator *iter;
|
||||
NSString *persistantDomain;
|
||||
NSString *persistentDomain;
|
||||
|
||||
if (registryInfo == 0)
|
||||
{
|
||||
|
@ -473,7 +473,7 @@ struct NSUserDefaultsWin32_DomainInfo
|
|||
}
|
||||
|
||||
iter = [defaults keyEnumerator];
|
||||
while ((persistantDomain = [iter nextObject]) != nil)
|
||||
while ((persistentDomain = [iter nextObject]) != nil)
|
||||
{
|
||||
struct NSUserDefaultsWin32_DomainInfo *dinfo;
|
||||
NSDictionary *domainDict;
|
||||
|
@ -483,16 +483,16 @@ struct NSUserDefaultsWin32_DomainInfo
|
|||
NSEnumerator *valIter;
|
||||
NSString *valName;
|
||||
|
||||
dinfo = NSMapGet(registryInfo, persistantDomain);
|
||||
dinfo = NSMapGet(registryInfo, persistentDomain);
|
||||
if (dinfo == 0)
|
||||
{
|
||||
dinfo = calloc(sizeof(struct NSUserDefaultsWin32_DomainInfo), 1);
|
||||
NSMapInsertKnownAbsent(registryInfo, persistantDomain, dinfo);
|
||||
NSMapInsertKnownAbsent(registryInfo, persistentDomain, dinfo);
|
||||
}
|
||||
|
||||
domainDict = [defaults objectForKey: persistantDomain];
|
||||
oldDomainDict = [oldData objectForKey: persistantDomain];
|
||||
dPath = [registryPrefix stringByAppendingString: persistantDomain];
|
||||
domainDict = [defaults objectForKey: persistentDomain];
|
||||
oldDomainDict = [oldData objectForKey: persistentDomain];
|
||||
dPath = [registryPrefix stringByAppendingString: persistentDomain];
|
||||
|
||||
if ([domainDict count] == 0)
|
||||
{
|
||||
|
|
|
@ -2273,7 +2273,7 @@ fail:
|
|||
* It's common to have macros which don't need commenting ...
|
||||
* like the ones used to protect a header against multiple
|
||||
* inclusion for instance. For this reason, we ignore any
|
||||
* macro which is not preceeded by a documentation comment.
|
||||
* macro which is not preceded by a documentation comment.
|
||||
*/
|
||||
if ([comment length] > 0)
|
||||
{
|
||||
|
|
|
@ -1268,7 +1268,7 @@ main(int argc, char **argv, char **env)
|
|||
/*
|
||||
* Ask existing project info (.gsdoc file) for dependency
|
||||
* information. Then check the dates on the output files.
|
||||
* If none are set, assume the defualt.
|
||||
* If none are set, assume the default.
|
||||
*/
|
||||
a = [projectRefs outputsForHeader: hfile];
|
||||
if ([a count] == 0)
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
* GDO_NAMES Return a list of registered names known to the server.
|
||||
* Response is an unsigned long (in network byte order)
|
||||
* saying how many bytes of data are to follow,
|
||||
* followed by a list of the names each preceeded by the
|
||||
* followed by a list of the names each preceded by the
|
||||
* name length (a single byte) and port type (a byte).
|
||||
* NB. This response may not be possible over UDP as the
|
||||
* response length may exceed the maximum UDP packet size.
|
||||
|
|
Loading…
Reference in a new issue