2007-01-01 21:11:21 +00:00
|
|
|
/* Copyright (c) 2006-2007 Christopher J. W. Lloyd
|
2006-12-22 04:41:44 +00:00
|
|
|
|
2020-05-11 15:52:05 +00:00
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
|
|
this software and associated documentation files (the "Software"), to deal in
|
|
|
|
the Software without restriction, including without limitation the rights to
|
|
|
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
|
|
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
|
|
subject to the following conditions:
|
2006-12-22 04:41:44 +00:00
|
|
|
|
2020-05-11 15:52:05 +00:00
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
|
|
copies or substantial portions of the Software.
|
2006-12-22 04:41:44 +00:00
|
|
|
|
2020-05-11 15:52:05 +00:00
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
|
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
|
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
|
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
2006-12-22 04:41:44 +00:00
|
|
|
|
2009-02-04 14:15:41 +00:00
|
|
|
#if !defined(__STDC_VERSION__)
|
2015-05-24 00:15:45 +00:00
|
|
|
#define __STDC_VERSION__ 198900L
|
2020-05-11 15:52:05 +00:00
|
|
|
#elif (__STDC_VERSION__ < 199400L)
|
2015-05-24 00:15:45 +00:00
|
|
|
#define __STDC_VERSION__ 199000L
|
2009-02-04 14:15:41 +00:00
|
|
|
#endif
|
|
|
|
|
2020-05-11 15:52:05 +00:00
|
|
|
#include <assert.h>
|
2012-01-13 11:27:09 +00:00
|
|
|
#include <ctype.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <float.h>
|
|
|
|
#include <limits.h>
|
2020-05-11 15:52:05 +00:00
|
|
|
#include <locale.h>
|
2012-01-13 11:27:09 +00:00
|
|
|
#include <math.h>
|
2020-05-11 15:52:05 +00:00
|
|
|
#include <setjmp.h>
|
|
|
|
#include <signal.h>
|
2012-01-13 11:27:09 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdio.h>
|
2020-05-11 15:52:05 +00:00
|
|
|
#include <stdlib.h>
|
2012-01-13 11:27:09 +00:00
|
|
|
#include <string.h>
|
2020-05-11 15:52:05 +00:00
|
|
|
#include <sys/types.h>
|
2012-01-13 11:27:09 +00:00
|
|
|
#include <time.h>
|
2020-05-11 15:52:05 +00:00
|
|
|
#if (__STDC_VERSION__ >= 199901L)
|
|
|
|
#include <inttypes.h>
|
2015-05-24 00:15:45 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
2009-02-04 14:15:41 +00:00
|
|
|
#endif
|
2007-04-22 18:58:47 +00:00
|
|
|
|
2009-11-05 14:47:52 +00:00
|
|
|
#import <CoreFoundation/CoreFoundation.h>
|
2010-03-16 20:38:14 +00:00
|
|
|
#import <CoreServices/CoreServices.h> // This is actually imported by NSURLError.h
|
2009-11-05 14:47:52 +00:00
|
|
|
|
2009-03-26 03:18:11 +00:00
|
|
|
#import <Foundation/FoundationErrors.h>
|
- Renamed&Moved the NSXML* classes into NSPropertyList/NSOldXML*. These are being replaced by classes that adhere to the API documentation but are still needed to read plists while the new classes are being worked on.
- Added method starting points for NSXML*, NSOpenGL*, NSSegmented*, NSNib, NSURLRequest,NSURLResponse,NSURLConnection,NSURLAuthenticationChallenge,NSHTTPURLResponse,NSShadow,NSClassDescription
- Added blank starting points for NSIndexPath,NSValueTransformer,NSNetService*,NSDistributed*,NSDatePicker*,NSSortDescriptor,NSMetadata*,NSDecimal*
- Moved NSAffineTransform into Foundation/
- Changed KGImage_context into KGLayer
2007-03-19 02:52:21 +00:00
|
|
|
#import <Foundation/NSAffineTransform.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSArchiver.h>
|
|
|
|
#import <Foundation/NSArray.h>
|
NSFileWrapper - Dirk Theisen has contributed an initial NSFileWrapper implementation. Thanks Dirk!
NSAssertionHandler - header added for NSFileWrapper
The various NSStream concrete classes have a first pass implementation: NSInputStream_socket, NSOutputStream_socket, NSInputStream_data, NSOutputStream_data , NSOutputStream_buffer, NSInputStream_file, NSOutputStream_file
The socket monitor/callback system has been overhauled to fix known problems going forward with socket based streams and distributed objects. This consists mainly of decoupling the select() management from the callback management allowing for accurate select() status across run loop mode changes and multiple callback monitors per socket. The major platform differences (windows vs. unix) were separated into their own files instead of the previous #ifdef mess. The NSInputSource system in the run loop was cleaned up to accommodate the new socket system and future additions.
These classes were deleted: NSSocketSet, NSSocketMonitorSet, NSSocketDescriptor, NSSocketMonitor, NSSocketMonitorSet_Windows, NSSocketInputSource_windows, NSSocketMonitorSet_Unix
And were replaced with: NSSocket, NSSocket_windows, NSSocket_bsd, NSSelectSet, NSSelectSet_windows, NSSelectSet_bsd , NSSelectInputSourceSet, NSSelectInputSource
NSTask and NSFileHandle on Linux/Solaris are affected by this as they were using the old socket monitoring system to look for background events and have been upgraded to the new one.
NSHandleMonitorSet_win32 upgraded with NSInputSource upgrade.
NSError - first pass implemented to assist with NSStream implementation.
-[NSMutableSet setSet:] - implemented
Cleared up some of the Linux/Solaris compiler warnings
2007-01-17 04:23:24 +00:00
|
|
|
#import <Foundation/NSAssertionHandler.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSAttributedString.h>
|
|
|
|
#import <Foundation/NSAutoreleasePool.h>
|
|
|
|
#import <Foundation/NSBundle.h>
|
|
|
|
#import <Foundation/NSByteOrder.h>
|
2008-07-18 17:07:22 +00:00
|
|
|
#import <Foundation/NSCachedURLResponse.h>
|
2007-04-29 13:45:20 +00:00
|
|
|
#import <Foundation/NSCalendar.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSCalendarDate.h>
|
|
|
|
#import <Foundation/NSCharacterSet.h>
|
- Renamed&Moved the NSXML* classes into NSPropertyList/NSOldXML*. These are being replaced by classes that adhere to the API documentation but are still needed to read plists while the new classes are being worked on.
- Added method starting points for NSXML*, NSOpenGL*, NSSegmented*, NSNib, NSURLRequest,NSURLResponse,NSURLConnection,NSURLAuthenticationChallenge,NSHTTPURLResponse,NSShadow,NSClassDescription
- Added blank starting points for NSIndexPath,NSValueTransformer,NSNetService*,NSDistributed*,NSDatePicker*,NSSortDescriptor,NSMetadata*,NSDecimal*
- Moved NSAffineTransform into Foundation/
- Changed KGImage_context into KGLayer
2007-03-19 02:52:21 +00:00
|
|
|
#import <Foundation/NSClassDescription.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSCoder.h>
|
|
|
|
#import <Foundation/NSCountedSet.h>
|
|
|
|
#import <Foundation/NSData.h>
|
|
|
|
#import <Foundation/NSDate.h>
|
2007-05-08 18:00:25 +00:00
|
|
|
#import <Foundation/NSDateComponents.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSDateFormatter.h>
|
|
|
|
#import <Foundation/NSDebug.h>
|
2007-05-22 17:16:17 +00:00
|
|
|
#import <Foundation/NSDecimalNumber.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSDictionary.h>
|
|
|
|
#import <Foundation/NSDirectoryEnumerator.h>
|
2020-05-11 15:52:05 +00:00
|
|
|
#import <Foundation/NSDistributedNotificationCenter.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSEnumerator.h>
|
2007-04-22 18:58:47 +00:00
|
|
|
#import <Foundation/NSError.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSException.h>
|
|
|
|
#import <Foundation/NSFileHandle.h>
|
|
|
|
#import <Foundation/NSFileManager.h>
|
|
|
|
#import <Foundation/NSFormatter.h>
|
|
|
|
#import <Foundation/NSGeometry.h>
|
2010-10-22 18:32:35 +00:00
|
|
|
#import <Foundation/NSHTTPCookie.h>
|
|
|
|
#import <Foundation/NSHTTPCookieStorage.h>
|
2020-05-11 15:52:05 +00:00
|
|
|
#import <Foundation/NSHTTPURLResponse.h>
|
|
|
|
#import <Foundation/NSHashTable.h>
|
|
|
|
#import <Foundation/NSHost.h>
|
2007-06-18 16:22:20 +00:00
|
|
|
#import <Foundation/NSIndexPath.h>
|
2007-05-08 18:00:25 +00:00
|
|
|
#import <Foundation/NSIndexSet.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSInvocation.h>
|
2007-01-02 17:52:07 +00:00
|
|
|
#import <Foundation/NSKeyValueCoding.h>
|
2007-04-02 14:40:36 +00:00
|
|
|
#import <Foundation/NSKeyValueObserving.h>
|
2020-05-11 15:52:05 +00:00
|
|
|
#import <Foundation/NSKeyedArchiver.h>
|
|
|
|
#import <Foundation/NSKeyedUnarchiver.h>
|
2008-02-16 20:27:01 +00:00
|
|
|
#import <Foundation/NSLocale.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSLock.h>
|
|
|
|
#import <Foundation/NSMapTable.h>
|
- Renamed&Moved the NSXML* classes into NSPropertyList/NSOldXML*. These are being replaced by classes that adhere to the API documentation but are still needed to read plists while the new classes are being worked on.
- Added method starting points for NSXML*, NSOpenGL*, NSSegmented*, NSNib, NSURLRequest,NSURLResponse,NSURLConnection,NSURLAuthenticationChallenge,NSHTTPURLResponse,NSShadow,NSClassDescription
- Added blank starting points for NSIndexPath,NSValueTransformer,NSNetService*,NSDistributed*,NSDatePicker*,NSSortDescriptor,NSMetadata*,NSDecimal*
- Moved NSAffineTransform into Foundation/
- Changed KGImage_context into KGLayer
2007-03-19 02:52:21 +00:00
|
|
|
#import <Foundation/NSMetadataItem.h>
|
|
|
|
#import <Foundation/NSMetadataQuery.h>
|
|
|
|
#import <Foundation/NSMetadataQueryAttributeValueTuple.h>
|
|
|
|
#import <Foundation/NSMetadataQueryResultGroup.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSMethodSignature.h>
|
|
|
|
#import <Foundation/NSMutableArray.h>
|
|
|
|
#import <Foundation/NSMutableAttributedString.h>
|
|
|
|
#import <Foundation/NSMutableCharacterSet.h>
|
|
|
|
#import <Foundation/NSMutableData.h>
|
|
|
|
#import <Foundation/NSMutableDictionary.h>
|
2007-05-08 18:00:25 +00:00
|
|
|
#import <Foundation/NSMutableIndexSet.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSMutableSet.h>
|
|
|
|
#import <Foundation/NSMutableString.h>
|
2020-05-11 15:52:05 +00:00
|
|
|
#import <Foundation/NSMutableURLRequest.h>
|
2008-11-17 17:02:54 +00:00
|
|
|
#import <Foundation/NSNetServices.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSNotification.h>
|
|
|
|
#import <Foundation/NSNotificationCenter.h>
|
|
|
|
#import <Foundation/NSNotificationQueue.h>
|
|
|
|
#import <Foundation/NSNull.h>
|
|
|
|
#import <Foundation/NSNumber.h>
|
|
|
|
#import <Foundation/NSNumberFormatter.h>
|
|
|
|
#import <Foundation/NSObjCRuntime.h>
|
|
|
|
#import <Foundation/NSObject.h>
|
2010-03-03 16:59:02 +00:00
|
|
|
#import <Foundation/NSOperation.h>
|
|
|
|
#import <Foundation/NSOperationQueue.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSPathUtilities.h>
|
|
|
|
#import <Foundation/NSPipe.h>
|
2012-04-18 18:58:15 +00:00
|
|
|
#import <Foundation/NSPort.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSPortCoder.h>
|
2007-04-29 13:45:20 +00:00
|
|
|
#import <Foundation/NSPredicate.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSProcessInfo.h>
|
|
|
|
#import <Foundation/NSProxy.h>
|
|
|
|
#import <Foundation/NSRange.h>
|
|
|
|
#import <Foundation/NSRunLoop.h>
|
|
|
|
#import <Foundation/NSScanner.h>
|
|
|
|
#import <Foundation/NSSet.h>
|
- Renamed&Moved the NSXML* classes into NSPropertyList/NSOldXML*. These are being replaced by classes that adhere to the API documentation but are still needed to read plists while the new classes are being worked on.
- Added method starting points for NSXML*, NSOpenGL*, NSSegmented*, NSNib, NSURLRequest,NSURLResponse,NSURLConnection,NSURLAuthenticationChallenge,NSHTTPURLResponse,NSShadow,NSClassDescription
- Added blank starting points for NSIndexPath,NSValueTransformer,NSNetService*,NSDistributed*,NSDatePicker*,NSSortDescriptor,NSMetadata*,NSDecimal*
- Moved NSAffineTransform into Foundation/
- Changed KGImage_context into KGLayer
2007-03-19 02:52:21 +00:00
|
|
|
#import <Foundation/NSSortDescriptor.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSStream.h>
|
|
|
|
#import <Foundation/NSString.h>
|
|
|
|
#import <Foundation/NSTask.h>
|
|
|
|
#import <Foundation/NSThread.h>
|
|
|
|
#import <Foundation/NSTimeZone.h>
|
2020-05-11 15:52:05 +00:00
|
|
|
#import <Foundation/NSTimer.h>
|
2007-04-02 14:40:36 +00:00
|
|
|
#import <Foundation/NSURL.h>
|
2009-01-31 14:56:04 +00:00
|
|
|
#import <Foundation/NSURLConnection.h>
|
2010-03-16 15:13:03 +00:00
|
|
|
#import <Foundation/NSURLDownload.h>
|
|
|
|
#import <Foundation/NSURLResponse.h>
|
2020-05-11 15:52:05 +00:00
|
|
|
#import <Foundation/NSUnarchiver.h>
|
|
|
|
#import <Foundation/NSUndoManager.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSUserDefaults.h>
|
|
|
|
#import <Foundation/NSValue.h>
|
2007-05-23 03:52:57 +00:00
|
|
|
#import <Foundation/NSValueTransformer.h>
|
- Renamed&Moved the NSXML* classes into NSPropertyList/NSOldXML*. These are being replaced by classes that adhere to the API documentation but are still needed to read plists while the new classes are being worked on.
- Added method starting points for NSXML*, NSOpenGL*, NSSegmented*, NSNib, NSURLRequest,NSURLResponse,NSURLConnection,NSURLAuthenticationChallenge,NSHTTPURLResponse,NSShadow,NSClassDescription
- Added blank starting points for NSIndexPath,NSValueTransformer,NSNetService*,NSDistributed*,NSDatePicker*,NSSortDescriptor,NSMetadata*,NSDecimal*
- Moved NSAffineTransform into Foundation/
- Changed KGImage_context into KGLayer
2007-03-19 02:52:21 +00:00
|
|
|
#import <Foundation/NSXMLDTD.h>
|
|
|
|
#import <Foundation/NSXMLDTDNode.h>
|
2020-05-11 15:52:05 +00:00
|
|
|
#import <Foundation/NSXMLDocument.h>
|
- Renamed&Moved the NSXML* classes into NSPropertyList/NSOldXML*. These are being replaced by classes that adhere to the API documentation but are still needed to read plists while the new classes are being worked on.
- Added method starting points for NSXML*, NSOpenGL*, NSSegmented*, NSNib, NSURLRequest,NSURLResponse,NSURLConnection,NSURLAuthenticationChallenge,NSHTTPURLResponse,NSShadow,NSClassDescription
- Added blank starting points for NSIndexPath,NSValueTransformer,NSNetService*,NSDistributed*,NSDatePicker*,NSSortDescriptor,NSMetadata*,NSDecimal*
- Moved NSAffineTransform into Foundation/
- Changed KGImage_context into KGLayer
2007-03-19 02:52:21 +00:00
|
|
|
#import <Foundation/NSXMLElement.h>
|
|
|
|
#import <Foundation/NSXMLNode.h>
|
|
|
|
#import <Foundation/NSXMLParser.h>
|
2006-12-22 04:41:44 +00:00
|
|
|
#import <Foundation/NSZone.h>
|
|
|
|
|
2011-09-21 12:33:02 +00:00
|
|
|
#import <Foundation/NSScriptWhoseTests.h>
|