Some cleanup in preparation for next release.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22618 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-03-08 11:28:59 +00:00
parent 172bfc67ef
commit c2e8c881e7
88 changed files with 570 additions and 425 deletions

View file

@ -4,7 +4,99 @@
required.
* Source/win32/NSStreamWin32.m: Use fileSystemRepresentation rather
than cStringUsingEncoding:
* Source/NSSocketPortNameServer.m:
* Source/NSBundle.m:
* Source/NSProcessInfo.m:
* Source/NSAttributedString.m:
* Source/NSArray.m:
* Source/NSMessagePortNameServer.m:
* Source/GSPrivate.h:
* Source/NSInvocation.m:
* Source/NSNotificationCenter.m:
* Source/NSCoder.m:
* Source/mframe.m:
* Source/Additions/GSCategories.m:
* Source/NSConnection.m:
* Source/GSPortPrivate.h:
* Source/NSThread.m:
* Source/NSNull.m:
* Source/NSDistantObject.m:
* Source/NSTask.m:
* Source/NSPortNameServer.m:
* Headers/Foundation/NSTimeZone.h:
* Headers/Foundation/NSHashTable.h:
* Headers/Foundation/NSRange.h:
* Headers/Foundation/NSCoder.h:
* Headers/Foundation/NSException.h:
* Headers/Foundation/NSByteOrder.h:
* Headers/Foundation/NSPortCoder.h:
* Headers/Foundation/NSURL.h:
* Headers/Foundation/NSObject.h:
* Headers/Foundation/NSCalendarDate.h:
* Headers/Foundation/NSDecimalNumber.h:
* Headers/Foundation/NSKeyValueCoding.h:
* Headers/Foundation/NSBundle.h:
* Headers/Foundation/NSSerialization.h:
* Headers/Foundation/NSURLHandle.h:
* Headers/Foundation/NSPropertyList.h:
* Headers/Foundation/NSTimer.h:
* Headers/Foundation/NSNotification.h:
* Headers/Foundation/NSScanner.h:
* Headers/Foundation/NSProcessInfo.h:
* Headers/Foundation/NSDistributedNotificationCenter.h:
* Headers/Foundation/NSGeometry.h:
* Headers/Foundation/NSAttributedString.h:
* Headers/Foundation/NSDecimal.h:
* Headers/Foundation/NSConnection.h:
* Headers/Foundation/NSUndoManager.h:
* Headers/Foundation/NSDateFormatter.h:
* Headers/Foundation/NSMethodSignature.h:
* Headers/Foundation/NSAutoreleasePool.h:
* Headers/Foundation/NSFormatter.h:
* Headers/Foundation/NSUserDefaults.h:
* Headers/Foundation/NSThread.h:
* Headers/Foundation/NSData.h:
* Headers/Foundation/NSDate.h:
* Headers/Foundation/NSHost.h:
* Headers/Foundation/NSArray.h:
* Headers/Foundation/NSProxy.h:
* Headers/Foundation/NSObjCRuntime.h:
* Headers/Foundation/NSKeyedArchiver.h:
* Headers/Foundation/NSProtocolChecker.h:
* Headers/Foundation/NSDebug.h:
* Headers/Foundation/NSPortMessage.h:
* Headers/Foundation/NSError.h:
* Headers/Foundation/NSDistributedLock.h:
* Headers/Foundation/NSFileHandle.h:
* Headers/Foundation/NSKeyValueObserving.h:
* Headers/Foundation/NSDictionary.h:
* Headers/Foundation/NSClassDescription.h:
* Headers/Foundation/NSNull.h:
* Headers/Foundation/NSZone.h:
* Headers/Foundation/NSValue.h:
* Headers/Foundation/NSIndexSet.h:
* Headers/Foundation/NSPort.h:
* Headers/Foundation/NSSortDescriptor.h:
* Headers/Foundation/NSLock.h:
* Headers/Foundation/NSSet.h:
* Headers/Foundation/NSDistantObject.h:
* Headers/Foundation/NSTask.h:
* Headers/Foundation/NSCharacterSet.h:
* Headers/Foundation/NSInvocation.h:
* Headers/Foundation/NSUtilities.h:
* Headers/Foundation/NSPortNameServer.h:
* Headers/Foundation/NSNumberFormatter.h:
* Headers/Foundation/NSXMLParser.h:
* Headers/Foundation/NSEnumerator.h:
* Headers/Foundation/NSMapTable.h:
* Headers/Additions/GNUstepBase/DistributedObjects.h:
* Headers/Additions/GNUstepBase/GSCategories.h:
Tidied a bit ... wrap some long lines.
Remove some old deprecated API.
Move some internal API out of external headers.
Deprecate a few non-standard API features.
Move a bit of non-standard API to the additions library.
2006-03-07 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSRunLoop.m:

View file

@ -74,6 +74,13 @@ enum {
- (NSDistantObject*) locateLocalTarget: (unsigned)target;
- (NSDistantObject*) proxyForTarget: (unsigned)target;
- (void) retainTarget: (unsigned)target;
- (retval_t) forwardForProxy: (NSDistantObject*)object
selector: (SEL)sel
argFrame: (arglist_t)argframe;
- (void) forwardInvocation: (NSInvocation *)inv
forProxy: (NSDistantObject*)object;
- (const char *) typeForSelector: (SEL)sel remoteTarget: (unsigned)target;
@end
@interface NSPort (Internal)

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
AutogsdocSource: Additions/GSCategories.m
@ -246,6 +247,15 @@ typedef enum _NSGNUstepStringEncoding
@interface NSArray (GSCompatibility)
- (id) initWithArray: (NSArray*)array copyItems: (BOOL)shouldCopy;
- (unsigned) insertionPosition: (id)item
usingFunction: (NSComparisonResult (*)(id, id, void *))sorter
context: (void *)context;
- (unsigned) insertionPosition: (id)item
usingSelector: (SEL)comp;
@end
@interface NSAttributedString (GSCategories)
- (NSAttributedString*) attributedSubstringWithRange: (NSRange)aRange;
@end
@interface NSBundle(GSCompatibility)
@ -286,7 +296,7 @@ typedef enum _NSGNUstepStringEncoding
@end
@interface NSLock (GSCategories)
+ (id)newLockAt:(id *)location;
+ (id) newLockAt: (id *)location;
@end
@interface NSLock (GSCompatibility)

View file

@ -150,7 +150,7 @@
@end
@interface NSArray (GNUstep)
@interface NSArray (GSCategories)
/*
* Extension methods for working with sorted arrays - use a binary chop
* to determine the insertion location for an nobject. If equal objects

View file

@ -84,13 +84,6 @@
//Extracting a substring
- (NSAttributedString*) attributedSubstringFromRange: (NSRange)aRange;
#ifndef NO_GNUSTEP
/*
* Synonym for attributedSubstringFromRange: - for consistency with NSString
*/
- (NSAttributedString*) attributedSubstringWithRange: (NSRange)aRange;
#endif
@end //NSAttributedString
@ -127,6 +120,16 @@
@end //NSMutableAttributedString
#ifndef NO_GNUSTEP
@interface NSAttributedString (GSCategories)
/**
* Dep[recated synonym for attributedSubstringFromRange:
* for consistency with NSString
*/
- (NSAttributedString*) attributedSubstringWithRange: (NSRange)aRange;
@end
#endif
#endif //STRICT_OPENSTEP
#endif //_NSXKit_H_NSAttributedString

View file

@ -162,7 +162,9 @@ typedef struct autorelease_array_list
* Methods whose names begin with copy create a copy of the receiver
* which is owned by the caller.
* </desc>
* <term>[NSObject-mutableCopy], [(NSMutableCopying)-mutableCopyWithZone:]</term>
* <term>
* [NSObject-mutableCopy], [(NSMutableCopying)-mutableCopyWithZone:]
* </term>
* <desc>
* Methods whose names begin with mutableCopy create a copy of the receiver
* which is owned by the caller.
@ -278,13 +280,6 @@ typedef struct autorelease_array_list
*/
+ (void) setPoolCountThreshhold: (unsigned)c;
/**
* Destroys all the autorelease pools in the thread.<br />
* You should not call this directly, it's called automatically
* when a thread exits.
*/
+ (void) _endThread: (NSThread*)thread;
/**
* Return the number of objects in this pool.
*/

View file

@ -369,26 +369,11 @@ GS_EXPORT NSString* const NSLoadedClasses;
*/
+ (NSBundle *) bundleForLibrary: (NSString *)libraryName;
+ (NSString *) _absolutePathOfExecutable: (NSString *)path;
+ (NSString*) _gnustep_target_cpu;
+ (NSString*) _gnustep_target_dir;
+ (NSString*) _gnustep_target_os;
+ (NSString*) _library_combo;
/** Find a resource in the "Library" directory. */
+ (NSString*) pathForLibraryResource: (NSString*)name
ofType: (NSString*)ext
inDirectory: (NSString*)bundlePath;
/** Deprecated. Use +bundleForLibrary: instead. */
+ (NSBundle*) gnustepBundle;
/** Deprecated. Use +pathForLibraryResource:ofType:inDirectory:
or +bundleForLibrary: instead. */
+ (NSString*) pathForGNUstepResource: (NSString*)name
ofType: (NSString*)ext
inDirectory: (NSString*)bundlePath;
@end
/** Warning - do not use this. */

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
*/
#ifndef __NSByteOrder_h_GNUSTEP_BASE_INCLUDE

View file

@ -134,12 +134,6 @@
@end
void
GSBreakTime(NSTimeInterval when, int *year, int *month, int *day, int *hour,
int *minute, int *second, int *mil);
NSTimeInterval
GSTime(int day, int month, int year, int hour, int minute, int second, int mil);
#endif
#ifndef STRICT_MACOS_X

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
*/
#ifndef __NSCharacterSet_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
*/
#ifndef __NSClassDescription_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSCoder_h_GNUSTEP_BASE_INCLUDE
@ -352,6 +353,7 @@
/**
* GNUstep extensions to [NSCoder], supporting compatibility with libObjects.
* DEPRECATED
*/
@interface NSCoder (GNUstep)
/* Compatibility with libObjects */

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSConnection_h_GNUSTEP_BASE_INCLUDE
@ -178,45 +179,6 @@ GS_EXPORT NSString* const NSConnectionProxyCount; /* Objects received */
@end
/**
* This category contains legacy methods from the original GNU 'Connection'
* class, and useful extensions to [NSConnection].
*/
@interface NSConnection (GNUstepExtensions) <GCFinalization>
/**
* Alternative convenience constructor, not specified in OpenStep, where you
* register root anObject under given name in one step.
*/
+ (NSConnection*) newRegisteringAtName: (NSString*)name
withRootObject: (id)anObject;
/**
* Performs local and remote cleanup.
*/
- (void) gcFinalize;
/**
* [NSDistantObject -forward::] calls this to send the message over the wire.
*/
- (retval_t) forwardForProxy: (NSDistantObject*)object
selector: (SEL)sel
argFrame: (arglist_t)argframe;
/**
* [NSDistantObject -forwardInvocation:] calls this to send the message over
* the wire.
*/
- (void) forwardInvocation: (NSInvocation *)inv
forProxy: (NSDistantObject*)object;
/**
* Returns type code (@encode()-compatible) for given remote method.
*/
- (const char *) typeForSelector: (SEL)sel remoteTarget: (unsigned)target;
@end
/**
* This category represents an informal protocol to which NSConnection
* delegates may conform ... These methods are not actually implemented

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSData_h_GNUSTEP_BASE_INCLUDE

View file

@ -15,7 +15,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSDate_h_GNUSTEP_BASE_INCLUDE

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSDateFormatter_h_GNUSTEP_BASE_INCLUDE
@ -57,7 +58,8 @@
* <term>%d</term>
* <desc>day of the month as a decimal number (01-31)</desc>
* <term>%e</term>
* <desc>same as %d but does not print the leading 0 for days 1 through 9 (unlike strftime(), does not print a leading space)</desc>
* <desc>same as %d but does not print the leading 0 for days 1 through 9
* (unlike strftime(), does not print a leading space)</desc>
* <term>%F</term>
* <desc>milliseconds as a decimal number (000-999)</desc>
* <term>%H</term>
@ -77,15 +79,18 @@
* <term>%w</term>
* <desc>weekday as a decimal number (0-6), where Sunday is 0</desc>
* <term>%x</term>
* <desc>date using the date representation for the locale, including the time zone (produces different results from strftime())</desc>
* <desc>date using the date representation for the locale, including the
* time zone (produces different results from strftime())</desc>
* <term>%X</term>
* <desc>time using the time representation for the locale (produces different results from strftime())</desc>
* <desc>time using the time representation for the locale (produces
* different results from strftime())</desc>
* <term>%y</term>
* <desc>year without century (00-99)</desc>
* <term>%Y</term>
* <desc>year with century (such as 1990)</desc>
* <term>%Z</term>
* <desc>time zone name (such as Pacific Daylight Time; produces different results from strftime())</desc>
* <desc>time zone name (such as Pacific Daylight Time; produces different
* results from strftime())</desc>
* <term>%z</term>
* <desc>time zone offset in hours and minutes from GMT (HHMM)</desc>
* </deflist>

View file

@ -20,7 +20,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSDebug_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSDecimalNumber_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef _NSDictionary_h_GNUSTEP_BASE_INCLUDE

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSDistantObject_h_GNUSTEP_BASE_INCLUDE
@ -59,12 +60,4 @@
@end
@interface NSDistantObject(GNUstepExtensions) <GCFinalization>
- (Class) classForPortCoder;
- (const char *) selectorTypeForProxy: (SEL)selector;
- (id) forward: (SEL)aSel :(arglist_t)frame;
- (void) gcFinalize;
@end
#endif /* __NSDistantObject_h_GNUSTEP_BASE_INCLUDE */

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSDistributedLock_h_GNUSTEP_BASE_INCLUDE
@ -42,7 +43,6 @@
- (BOOL) tryLock;
- (void) unlock;
@end
#endif /* __NSDistributedLock_h_GNUSTEP_BASE_INCLUDE */

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSDistributedNotificationCenter_h_GNUSTEP_BASE_INCLUDE

View file

@ -20,7 +20,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSEnumerator_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
AutogsdocSource: NSError.m
*/

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
<title>NSException and NSAssertionHandler class reference</title>

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
AutogsdocSource: NSFileHandle.m
AutogsdocSource: NSPipe.m

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSFormatter_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA. */
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02111 USA. */
#ifndef __NSGeometry_h_GNUSTEP_BASE_INCLUDE
#define __NSGeometry_h_GNUSTEP_BASE_INCLUDE

View file

@ -21,7 +21,8 @@
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02111 USA.
*/
#ifndef __NSHashTable_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSHost_h_GNUSTEP_BASE_INCLUDE
#define __NSHost_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
AutogsdocSource: NSIndexSet.m

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSInvocation_h_GNUSTEP_BASE_INCLUDE
@ -92,12 +93,17 @@
#ifndef NO_GNUSTEP
@interface NSInvocation (GNUstep)
- (id) initWithArgframe: (arglist_t)frame selector: (SEL)aSelector;
- (id) initWithMethodSignature: (NSMethodSignature*)aSignature;
- (id) initWithSelector: (SEL)aSelector;
- (id) initWithTarget: (id)anObject selector: (SEL)aSelector, ...;
- (void*) returnFrame: (arglist_t)argFrame;
/**
* Returns the status of the flag set by -setSendsToSuper:
*/
- (BOOL) sendsToSuper;
/**
* Sets the flag to tell the invocation that it should actually invoke a
* method in the superclass of the target rather than the method of the
* target itself.<br />
* This extension permits an invocation to act like a regular method
* call sent to <em>super</em> in the method of a class.
*/
- (void) setSendsToSuper: (BOOL)flag;
@end
#endif
@ -107,6 +113,11 @@
+ (id) _newProxyForInvocation: (id)target;
+ (id) _newProxyForMessage: (id)target;
+ (NSInvocation*) _returnInvocationAndDestroyProxy: (id)proxy;
- (id) initWithArgframe: (arglist_t)frame selector: (SEL)aSelector;
- (id) initWithMethodSignature: (NSMethodSignature*)aSignature;
- (id) initWithSelector: (SEL)aSelector;
- (id) initWithTarget: (id)anObject selector: (SEL)aSelector, ...;
- (void*) returnFrame: (arglist_t)argFrame;
@end
/**

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSKeyValueCoding_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSKeyValueObserving_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
AutogsdocSource: NSKeyedArchiver.m
AutogsdocSource: NSKeyedUnarchiver.m

View file

@ -251,7 +251,7 @@
*
* </example>
*/
+ (id)newLockAt:(id *)location;
+ (id) newLockAt: (id *)location;
@end
/**
@ -281,7 +281,7 @@
*
* </example>
*/
+ (id)newLockAt:(id *)location;
+ (id) newLockAt: (id *)location;
@end
#endif /* NO_GNUSTEP */

View file

@ -21,7 +21,8 @@
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA. */
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02111 USA. */
#ifndef __NSMapTable_h_GNUSTEP_BASE_INCLUDE
#define __NSMapTable_h_GNUSTEP_BASE_INCLUDE 1

View file

@ -20,7 +20,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSMethodSignature_h_GNUSTEP_BASE_INCLUDE

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
AutogsdocSource: NSNotification.m
AutogsdocSource: NSNotificationCenter.m
@ -85,15 +86,11 @@
#ifndef NO_GNUSTEP
/**
* Defines an extension for maximising posting performance - this option
* is NOT adjustable for the default notification center.
*/
@interface NSNotificationCenter (GNUstep)
/**
* You can disable locking in a multi-threaded program if you KNOW that only
* one thread will ever use the notification center.
* one thread will ever use the notification center.<br />
* DEPRECATED
*/
- (BOOL) setLockingDisabled: (BOOL)flag;
@end

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSNull_h_GNUSTEP_BASE_INCLUDE

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef _NSNumberFormatter_h__

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
AutogsdocSource: NSObjCRuntime.m
AutogsdocSource: NSLog.m

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
AutogsdocSource: NSObject.m
AutogsdocSource: Additions/GSCategories.m

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
AutogsdocSource: NSPort.m
AutogsdocSource: NSSocketPort.m

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSPortCoder_h
@ -172,9 +173,4 @@
@end
@interface NSPortCoder (Private)
- (NSMutableArray*) _components;
@end
#endif /* __NSPortCoder_h */

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSPortMessage_h_GNUSTEP_BASE_INCLUDE
@ -99,10 +100,5 @@
- (unsigned) msgid;
@end
#ifndef NO_GNUSTEP
@interface NSPortMessage (private)
- (NSMutableArray*) _components;
@end
#endif
#endif

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
<title>NSPortNameServer class reference</title>
@ -48,17 +49,6 @@
- (BOOL) removePortForName: (NSString*)name;
@end
#ifndef NO_GNUSTEP
@interface NSPortNameServer (GNUstep)
- (NSArray*) namesForPort: (NSPort*)port; /* return all names for port */
- (BOOL) removePort: (NSPort*)port; /* remove all names for port */
/* Remove the name if and only if it is registered by the given port. */
- (BOOL) removePort: (NSPort*)port forName: (NSString*)name;
@end
#endif
@interface NSSocketPortNameServer : NSPortNameServer
{
NSMapTable *_portMap; /* Registered ports information. */

View file

@ -20,7 +20,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSProcessInfo_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
AutogsdocSource: NSPropertyList.m

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSProtocolChecker_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSProxy_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA. */
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02111 USA. */
#ifndef __NSRange_h_GNUSTEP_BASE_INCLUDE
#define __NSRange_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSScanner_h_GNUSTEP_INCLUDE

View file

@ -20,7 +20,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSSerialization_h_GNUSTEP_BASE_INCLUDE
@ -68,16 +69,19 @@
/**
* <p>Serialize given property list (NSArray or NSDictionary plus limited
* contents) into byte array.</p> <p><em>Deprecated in favor of
* [NSPropertyListSerialization+dataFromPropertyList:format:errorDescription:].</em></p>
* contents) into byte array.</p>
* <p><em>Deprecated in favor of
* [NSPropertyListSerialization+dataFromPropertyList:format:errorDescription:].
* </em></p>
*/
+ (NSData*) serializePropertyList: (id)propertyList;
/**
* <p>Serialize given property list (NSArray or NSDictionary plus limited
* contents) into given mutable byte array.</p> <p><em>Deprecated in favor of
* [NSPropertyListSerialization+dataFromPropertyList:format:errorDescription:].</em></p>
* contents) into given mutable byte array.</p>
* <p><em>Deprecated in favor of
* [NSPropertyListSerialization+dataFromPropertyList:format:errorDescription:].
* </em></p>
*/
+ (void) serializePropertyList: (id)propertyList
intoData: (NSMutableData*)d;
@ -124,8 +128,10 @@
/**
* Recover a property list (NSArray or NSDictionary plus limited
* contents) from a byte array. <em>Deprecated in favor of
* [NSPropertyListSerialization+propertyListFromData:mutabilityOption:format:errorDescription:].</em>
* contents) from a byte array.
* <em>Deprecated in favor of
* [NSPropertyListSerialization
* +propertyListFromData:mutabilityOption:format:errorDescription:].</em>
*/
+ (id) deserializePropertyListFromData: (NSData*)data
atCursor: (unsigned int*)cursor
@ -133,8 +139,10 @@
/**
* Recover a property list (NSArray or NSDictionary plus limited
* contents) from a byte array. <em>Deprecated in favor of
* [NSPropertyListSerialization+propertyListFromData:mutabilityOption:format:errorDescription:].</em>
* contents) from a byte array.
* <em>Deprecated in favor of
* [NSPropertyListSerialization
* +propertyListFromData:mutabilityOption:format:errorDescription:].</em>
*/
+ (id) deserializePropertyListFromData: (NSData*)data
mutableContainers: (BOOL)flag;
@ -145,7 +153,8 @@
* length, a proxy is substituted for the actual property list as long as the
* constituent objects of that property list are not accessed.
* <em>Deprecated in favor of
* [NSPropertyListSerialization+propertyListFromData:mutabilityOption:format:errorDescription:].</em>
* [NSPropertyListSerialization
* +propertyListFromData:mutabilityOption:format:errorDescription:].</em>
*/
+ (id) deserializePropertyListLazilyFromData: (NSData*)data
atCursor: (unsigned*)cursor

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
AutogsdocSource: NSSet.m
AutogsdocSource: NSCountedSet.m

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSSortDescriptor_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSTask_h_GNUSTEP_BASE_INCLUDE

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSThread_h_GNUSTEP_BASE_INCLUDE

View file

@ -15,7 +15,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSTimeZone_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSTimer_include__

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef _NSURL_h__

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef _NSURLHandle_h__

View file

@ -17,7 +17,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSUndoManager_h_OBJECTS_INCLUDE

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSUserDefaults_h_OBJECTS_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSUtilties_h_GNUSTEP_BASE_INCLUDE

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __NSValue_h_GNUSTEP_BASE_INCLUDE
@ -344,18 +345,20 @@
/**
* Cache info for internal use by NSNumber concrete subclasses.
* DO NOT USE.
*/
typedef struct {
int typeLevel;
void (*getValue)(NSNumber*, SEL, void*);
} GSNumberInfo;
/** Internal method for caching. */
/** Internal method for caching. DO NOT USE. */
GSNumberInfo *GSNumberInfoFromObject(NSNumber *o);
#define GS_SMALL 16
/**
* Internal method: get cached values for integers in the range
* - GS_SMALL to + GS_SMALL
* <br />DO NOT USE
*/
unsigned GSSmallHash(int n);
#endif

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
AutogsdocSource: NSXMLParser.m
*/

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
AutogsdocSource: NSZone.m
AutogsdocSource: NSPage.m
@ -64,7 +65,8 @@ typedef struct _NSZone NSZone;
* type <code>size_t</code>-
* <deflist>
* <term><code>bytes_total</code></term>
* <desc>This is the total size of memory managed by the zone, in bytes.</desc>
* <desc>
* This is the total size of memory managed by the zone, in bytes.</desc>
* <term><code>chunks_used</code></term>
* <desc>This is the number of memory chunks in use in the zone.</desc>
* <term><code>bytes_used</code></term>
@ -72,7 +74,9 @@ typedef struct _NSZone NSZone;
* <term><code>chunks_free</code></term>
* <desc>This is the number of memory chunks that are not in use.</desc>
* <term><code>bytes_free</code></term>
* <desc>This is the number of bytes managed by the zone that are not in use.</desc>
* <desc>
* This is the number of bytes managed by the zone that are not in use.
* </desc>
* </deflist>
*/
struct NSZoneStats

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
*/
#include "config.h"
@ -30,6 +31,137 @@
/* Test for ASCII whitespace which is safe for unicode characters */
#define space(C) ((C) > 127 ? NO : isspace(C))
@implementation NSArray (GSCategories)
- (unsigned) insertionPosition: (id)item
usingFunction: (NSComparisonResult (*)(id, id, void *))sorter
context: (void *)context
{
unsigned count = [self count];
unsigned upper = count;
unsigned lower = 0;
unsigned index;
SEL oaiSel;
IMP oai;
if (item == nil)
{
[NSException raise: NSGenericException
format: @"Attempt to find position for nil object in array"];
}
if (sorter == 0)
{
[NSException raise: NSGenericException
format: @"Attempt to find position with null comparator"];
}
oaiSel = @selector(objectAtIndex:);
oai = [self methodForSelector: oaiSel];
/*
* Binary search for an item equal to the one to be inserted.
*/
for (index = upper/2; upper != lower; index = lower+(upper-lower)/2)
{
NSComparisonResult comparison;
comparison = (*sorter)(item, (*oai)(self, oaiSel, index), context);
if (comparison == NSOrderedAscending)
{
upper = index;
}
else if (comparison == NSOrderedDescending)
{
lower = index + 1;
}
else
{
break;
}
}
/*
* Now skip past any equal items so the insertion point is AFTER any
* items that are equal to the new one.
*/
while (index < count && (*sorter)(item, (*oai)(self, oaiSel, index), context)
!= NSOrderedAscending)
{
index++;
}
return index;
}
- (unsigned) insertionPosition: (id)item
usingSelector: (SEL)comp
{
unsigned count = [self count];
unsigned upper = count;
unsigned lower = 0;
unsigned index;
NSComparisonResult (*imp)(id, SEL, id);
SEL oaiSel;
IMP oai;
if (item == nil)
{
[NSException raise: NSGenericException
format: @"Attempt to find position for nil object in array"];
}
if (comp == 0)
{
[NSException raise: NSGenericException
format: @"Attempt to find position with null comparator"];
}
imp = (NSComparisonResult (*)(id, SEL, id))[item methodForSelector: comp];
if (imp == 0)
{
[NSException raise: NSGenericException
format: @"Attempt to find position with unknown method"];
}
oaiSel = @selector(objectAtIndex:);
oai = [self methodForSelector: oaiSel];
/*
* Binary search for an item equal to the one to be inserted.
*/
for (index = upper/2; upper != lower; index = lower+(upper-lower)/2)
{
NSComparisonResult comparison;
comparison = (*imp)(item, comp, (*oai)(self, oaiSel, index));
if (comparison == NSOrderedAscending)
{
upper = index;
}
else if (comparison == NSOrderedDescending)
{
lower = index + 1;
}
else
{
break;
}
}
/*
* Now skip past any equal items so the insertion point is AFTER any
* items that are equal to the new one.
*/
while (index < count
&& (*imp)(item, comp, (*oai)(self, oaiSel, index)) != NSOrderedAscending)
{
index++;
}
return index;
}
@end
@implementation NSAttributedString (GSCategories)
- (NSAttributedString*) attributedSubstringWithRange: (NSRange)aRange
{
GSOnceMLog(@"This method is deprecated, use -attributedSubstringFromRange:");
return [self attributedSubstringFromRange: aRange];
}
@end
/**
* Extension methods for the NSCalendarDate class
*/

View file

@ -17,12 +17,22 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __GSPortPrivate_h_
#define __GSPortPrivate_h_
/*
* Nameserver deregistration methods
*/
@interface NSPortNameServer (GNUstep)
- (NSArray*) namesForPort: (NSPort*)port; /* return all names for port */
- (BOOL) removePort: (NSPort*)port; /* remove all names for port */
- (BOOL) removePort: (NSPort*)port forName: (NSString*)name;
@end
#if defined(__MINGW32__)
@interface NSMessagePort(Private)
+ (id) newWithName: (NSString*)name;

View file

@ -17,7 +17,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
#ifndef __GSPrivate_h_

View file

@ -1980,138 +1980,3 @@ compare(id elem1, id elem2, void* context)
}
@end
/**
* [NSArray] enhancements provided by GNUstep.
*/
@implementation NSArray (GNUstep)
/**
* Locate the correct insertion position for item where the receiver is
* a sorted array witch was sorted using the sorter function.<br />
* The comparator function takes two items as arguments, the first is the
* item to be added, the second is the item already in the array.
* The function should return NSOrderedAscending if the item to be
* added is 'less than' the item in the array, NSOrderedDescending
* if it is greater, and NSOrderedSame if it is equal.
*/
- (unsigned) insertionPosition: (id)item
usingFunction: (NSComparisonResult (*)(id, id, void *))sorter
context: (void *)context
{
unsigned count = [self count];
unsigned upper = count;
unsigned lower = 0;
unsigned index;
IMP oai;
if (item == nil)
{
[NSException raise: NSGenericException
format: @"Attempt to find position for nil object in array"];
}
if (sorter == 0)
{
[NSException raise: NSGenericException
format: @"Attempt to find position with null comparator"];
}
oai = [self methodForSelector: oaiSel];
/*
* Binary search for an item equal to the one to be inserted.
*/
for (index = upper/2; upper != lower; index = lower+(upper-lower)/2)
{
NSComparisonResult comparison;
comparison = (*sorter)(item, (*oai)(self, oaiSel, index), context);
if (comparison == NSOrderedAscending)
{
upper = index;
}
else if (comparison == NSOrderedDescending)
{
lower = index + 1;
}
else
{
break;
}
}
/*
* Now skip past any equal items so the insertion point is AFTER any
* items that are equal to the new one.
*/
while (index < count && (*sorter)(item, (*oai)(self, oaiSel, index), context)
!= NSOrderedAscending)
{
index++;
}
return index;
}
/**
* Locate the correct insertion position for item where the receiver is
* a sorted array which was sorted using the comp selector.
*/
- (unsigned) insertionPosition: (id)item
usingSelector: (SEL)comp
{
unsigned count = [self count];
unsigned upper = count;
unsigned lower = 0;
unsigned index;
NSComparisonResult (*imp)(id, SEL, id);
IMP oai;
if (item == nil)
{
[NSException raise: NSGenericException
format: @"Attempt to find position for nil object in array"];
}
if (comp == 0)
{
[NSException raise: NSGenericException
format: @"Attempt to find position with null comparator"];
}
imp = (NSComparisonResult (*)(id, SEL, id))[item methodForSelector: comp];
if (imp == 0)
{
[NSException raise: NSGenericException
format: @"Attempt to find position with unknown method"];
}
oai = [self methodForSelector: oaiSel];
/*
* Binary search for an item equal to the one to be inserted.
*/
for (index = upper/2; upper != lower; index = lower+(upper-lower)/2)
{
NSComparisonResult comparison;
comparison = (*imp)(item, comp, (*oai)(self, oaiSel, index));
if (comparison == NSOrderedAscending)
{
upper = index;
}
else if (comparison == NSOrderedDescending)
{
lower = index + 1;
}
else
{
break;
}
}
/*
* Now skip past any equal items so the insertion point is AFTER any
* items that are equal to the new one.
*/
while (index < count
&& (*imp)(item, comp, (*oai)(self, oaiSel, index)) != NSOrderedAscending)
{
index++;
}
return index;
}
@end

View file

@ -604,14 +604,6 @@ static Class GSMutableAttributedStringClass;
return newAttrString;
}
/**
* Synonym for [-attributedSubstringFromRange:].
*/
- (NSAttributedString*) attributedSubstringWithRange: (NSRange)aRange
{
return [self attributedSubstringFromRange: aRange];
}
@end //NSAttributedString
/**

View file

@ -371,12 +371,22 @@ _find_framework(NSString *name)
}
@interface NSBundle (Private)
+ (NSString *) _absolutePathOfExecutable: (NSString *)path;
+ (void) _addFrameworkFromClass: (Class)frameworkClass;
- (NSArray *) _bundleClasses;
+ (NSString*) _gnustep_target_cpu;
+ (NSString*) _gnustep_target_dir;
+ (NSString*) _gnustep_target_os;
+ (NSString*) _library_combo;
@end
@implementation NSBundle (Private)
+ (NSString *) _absolutePathOfExecutable: (NSString *)path
{
return AbsolutePathOfExecutable(path, NO);
}
/* Nicola & Mirko:
Frameworks can be used in an application in two different ways:
@ -615,6 +625,26 @@ _find_framework(NSString *name)
return _bundleClasses;
}
+ (NSString*) _gnustep_target_cpu
{
return gnustep_target_cpu;
}
+ (NSString*) _gnustep_target_dir
{
return gnustep_target_dir;
}
+ (NSString*) _gnustep_target_os
{
return gnustep_target_os;
}
+ (NSString*) _library_combo
{
return library_combo;
}
@end
/*
@ -1883,19 +1913,6 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
return nil;
}
+ (NSString *) _absolutePathOfExecutable: (NSString *)path
{
return AbsolutePathOfExecutable(path, NO);
}
+ (NSBundle *) gnustepBundle
{
/* Deprecated since 1.7.0 */
GSOnceMLog(@"Warning: Deprecated method %@ called. Use +bundleForLibrary: instead",
NSStringFromSelector(_cmd));
return _gnustep_bundle;
}
+ (NSString *) pathForLibraryResource: (NSString *)name
ofType: (NSString *)ext
inDirectory: (NSString *)bundlePath
@ -1922,36 +1939,5 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
return path;
}
+ (NSString *) pathForGNUstepResource: (NSString *)name
ofType: (NSString *)ext
inDirectory: (NSString *)bundlePath
{
/* Deprecated since 1.7.0 */
GSOnceMLog(@"Warning: Deprecated method %@ called. Use +pathForLibraryResource:ofType:inDirectory: or +bundleForLibrary: instead",
NSStringFromSelector(_cmd));
return [self pathForLibraryResource: name ofType: ext
inDirectory: bundlePath];
}
+ (NSString*) _gnustep_target_cpu
{
return gnustep_target_cpu;
}
+ (NSString*) _gnustep_target_dir
{
return gnustep_target_dir;
}
+ (NSString*) _gnustep_target_os
{
return gnustep_target_os;
}
+ (NSString*) _library_combo
{
return library_combo;
}
@end

View file

@ -28,6 +28,7 @@
#include "config.h"
#include "GNUstepBase/preface.h"
#include "Foundation/NSData.h"
#include "Foundation/NSDebug.h"
#include "Foundation/NSCoder.h"
#include "Foundation/NSSerialization.h"
@ -414,6 +415,7 @@
at: (void*)buf
withName: (id*)name
{
GSOnceMLog(@"Deprecated, use NSKeyedArchiver methods");
if (name)
{
*name = [self decodeObject];
@ -429,11 +431,13 @@
*/
- (void) decodeIndent
{
GSOnceMLog(@"Deprecated, use NSKeyedArchiver methods");
}
- (void) decodeObjectAt: (id*)anObject
withName: (id*)name
{
GSOnceMLog(@"Deprecated, use NSKeyedArchiver methods");
[self decodeValueOfObjCType: @encode(id) at: anObject withName: name];
}
@ -441,6 +445,7 @@
at: (void*)buf
withName: (id*)name
{
GSOnceMLog(@"Deprecated, use NSKeyedArchiver methods");
[self decodeValueOfObjCType: type at: buf withName: name];
}
@ -448,6 +453,7 @@
at: (void*)buf
withName: (id*)name
{
GSOnceMLog(@"Deprecated, use NSKeyedArchiver methods");
if (name != 0)
{
*name = [self decodeObject];
@ -464,6 +470,7 @@
at: (const void*)buf
withName: (id)name
{
GSOnceMLog(@"Deprecated, use NSKeyedArchiver methods");
[self encodeObject: name];
[self encodeArrayOfObjCType: type count: count at: buf];
}
@ -472,12 +479,14 @@
*/
- (void) encodeIndent
{
GSOnceMLog(@"Deprecated, use NSKeyedArchiver methods");
}
- (void) encodeValueOfCType: (const char*)type
at: (const void*)buf
withName: (id)name
{
GSOnceMLog(@"Deprecated, use NSKeyedArchiver methods");
[self encodeValueOfObjCType: type at: buf withName: name];
}
@ -485,6 +494,7 @@
at: (const void*)buf
withName: (id)name
{
GSOnceMLog(@"Deprecated, use NSKeyedArchiver methods");
[self encodeObject: name];
[self encodeValueOfObjCType: type at: buf];
}
@ -492,6 +502,7 @@
- (void) encodeObjectAt: (id*)anObject
withName: (id)name
{
GSOnceMLog(@"Deprecated, use NSKeyedArchiver methods");
[self encodeValueOfObjCType: @encode(id) at: anObject withName: name];
}

View file

@ -77,11 +77,29 @@
#include "Foundation/NSNotification.h"
#include "Foundation/NSDebug.h"
#include "GSInvocation.h"
#include "GSPortPrivate.h"
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
@interface NSPortCoder (Private)
- (NSMutableArray*) _components;
@end
@interface NSPortMessage (Private)
- (NSMutableArray*) _components;
@end
@interface NSConnection (GNUstepExtensions) <GCFinalization>
- (void) gcFinalize;
- (retval_t) forwardForProxy: (NSDistantObject*)object
selector: (SEL)sel
argFrame: (arglist_t)argframe;
- (void) forwardInvocation: (NSInvocation *)inv
forProxy: (NSDistantObject*)object;
- (const char *) typeForSelector: (SEL)sel remoteTarget: (unsigned)target;
@end
extern NSRunLoop *GSRunLoopForThread(NSThread*);
#define F_LOCK(X) {NSDebugFLLog(@"GSConnection",@"Lock %@",X);[X lock];}
@ -1628,6 +1646,8 @@ static NSLock *cached_proxies_gate = nil;
{
NSConnection *conn;
GSOnceMLog(@"This method is deprecated, use standard initialisation");
conn = [[self alloc] initWithReceivePort: [NSPort port]
sendPort: nil];
[conn setRootObject: anObject];

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
<title>NSDistantObject class reference</title>
$Date$ $Revision$
@ -38,6 +39,14 @@
#include "Foundation/NSInvocation.h"
#include <objc/Protocol.h>
@interface NSDistantObject(GNUstepExtensions) <GCFinalization>
- (Class) classForPortCoder;
- (const char *) selectorTypeForProxy: (SEL)selector;
- (id) forward: (SEL)aSel :(arglist_t)frame;
- (void) gcFinalize;
@end
#define DO_FORWARD_INVOCATION(_SELX, _ARG1) ({ \
sig = [self methodSignatureForSelector: @selector(_SELX)]; \
if (sig != nil) \

View file

@ -759,6 +759,23 @@ _arg_addr(NSInvocation *inv, int index)
*/
@implementation NSInvocation (GNUstep)
- (BOOL) sendsToSuper
{
return _sendToSuper;
}
- (void) setSendsToSuper: (BOOL)flag
{
_sendToSuper = flag;
}
@end
/**
* These methods are for internal use only ... not public API<br />
* They are used by the NS_INVOCATION() and NS_MESSAGE() macros to help
* create invocations.
*/
@implementation NSInvocation (MacroSetup)
/**
* Internal use.<br />
* Initialises the receiver with a known selector and argument list
@ -930,33 +947,6 @@ _arg_addr(NSInvocation *inv, int index)
return NULL;
}
/**
* Returns the status of the flag set by -setSendsToSuper:
*/
- (BOOL) sendsToSuper
{
return _sendToSuper;
}
/**
* Sets the flag to tell the invocation that it should actually invoke a
* method in the superclass of the target rather than the method of the
* target itself.<br />
* This extension permits an invocation to act like a regular method
* call sent to <em>super</em> in the method of a class.
*/
- (void) setSendsToSuper: (BOOL)flag
{
_sendToSuper = flag;
}
@end
/**
* These methods are for internal use only ... not public API<br />
* They are used by the NS_INVOCATION() and NS_MESSAGE() macros to help
* create invocations.
*/
@implementation NSInvocation (MacroSetup)
+ (id) _newProxyForInvocation: (id)target
{
return [GSInvocationProxy _newWithTarget: target];

View file

@ -16,7 +16,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
<title>NSMessagePortNameServer class reference</title>
$Date$ $Revision$

View file

@ -22,7 +22,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
<title>NSNotificationCenter class reference</title>
$Date$ $Revision$
@ -33,6 +34,7 @@
#include "Foundation/NSException.h"
#include "Foundation/NSLock.h"
#include "Foundation/NSThread.h"
#include "Foundation/NSDebug.h"
#include "GNUstepBase/GSLock.h"
@ -1146,6 +1148,7 @@ static NSNotificationCenter *default_center = nil;
{
BOOL old;
GSOnceMLog(@"This method is deprecated");
lockNCTable(TABLE);
if (self == default_center)
{

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
<title>NSNull class reference</title>
$Date$ $Revision$

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
<title>NSPortNameServer class reference</title>
$Date$ $Revision$
@ -27,11 +28,12 @@
#include "config.h"
#include "Foundation/NSString.h"
#include "Foundation/NSException.h"
#include "Foundation/NSPort.h"
#include "Foundation/NSPortNameServer.h"
#include "Foundation/NSDebug.h"
#include "Foundation/NSLock.h"
#include "Foundation/NSUserDefaults.h"
#include "GSPrivate.h"
#include "GSPortPrivate.h"
/**

View file

@ -19,7 +19,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
<title>NSProcessInfo class reference</title>
$Date$ $Revision$
@ -100,6 +101,10 @@
#include "GSPrivate.h"
@interface NSBundle (Private)
+ (NSString*) _gnustep_target_os;
@end
/* This error message should be called only if the private main function
* was not executed successfully. This may happen ONLY if another library
* or kit defines its own main function (as gnustep-base does).

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
$Date$ $Revision$
*/
@ -42,6 +43,9 @@
#include "Foundation/NSPathUtilities.h"
#include "Foundation/NSPortNameServer.h"
#include "Foundation/NSDebug.h"
#include "GSPortPrivate.h"
#ifdef __MINGW32__
#include <winsock2.h>
#include <wininet.h>

View file

@ -101,6 +101,13 @@
#define NOFILE 256
#endif
@interface NSBundle(Private)
+ (NSString *) _absolutePathOfExecutable: (NSString *)path;
+ (NSString*) _gnustep_target_cpu;
+ (NSString*) _gnustep_target_dir;
+ (NSString*) _gnustep_target_os;
+ (NSString*) _library_combo;
@end
static NSRecursiveLock *tasksLock = nil;
static NSMapTable *activeTasks = 0;

View file

@ -55,6 +55,10 @@
#include "GSRunLoopCtxt.h"
@interface NSAutoreleasePool (NSThread)
+ (void) _endThread: (NSThread*)thread;
@end
typedef struct { @defs(NSThread) } NSThread_ivars;
static Class threadClass = Nil;

View file

@ -18,7 +18,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02111 USA.
*/
/* These functions can be used for dissecting and making method calls