Commit graph

2784 commits

Author SHA1 Message Date
Richard Frith-Macdonald
e42d9fdc6b New code for secure (encrypted) inter-host distrinuted objects. 2021-05-31 13:19:42 +01:00
Richard Frith-Macdonald
782e7aed31 Fix for -setHTTPMaximumConnectionLifetime: 2021-05-05 12:04:28 +01:00
Richard Frith-Macdonald
bd5f2909e6 Simplify conversion of a string to data (use base class code) and fix to handle the insertion of BOM consistently (as on OSX) for encodings where the byte order matters but is not specified by the encoding. 2021-04-14 09:57:11 +01:00
Frederik Seiffert
843800d413 Add support for libobjc2 runtime in NSObject on Windows 2021-03-29 11:22:00 +02:00
Frederik Seiffert
0582eddd96 Export string constants and annotate exported function implementations
Moves scattered string constants to externs.m, and removes obsolete code replacing constant strings.
2021-03-27 17:36:15 +01:00
Frederik Seiffert
825b43be7e Remove incorrect GS_EXPORT_CLASS from category.
Fixes warning on Windows MSVC, as only classes can be exported.
2021-03-26 14:07:10 +01:00
Frederik Seiffert
7800e27879 Add missing GS_EXPORT annotations to various string constants. 2021-03-26 13:17:36 +01:00
Frederik Seiffert
09a9dfca1f Add missing GS_EXPORT_CLASS annotations. 2021-03-26 13:17:36 +01:00
Frederik Seiffert
107ee8edc3
Fix incorrect type of pid_t on Windows MSVC. 2021-03-25 12:05:06 +01:00
Frederik Seiffert
780d71f559 Add missing GS_EXPORT_CLASS annotations. 2021-03-23 09:50:49 +01:00
Richard Frith-Macdonald
b489f9b82b Changes to detect that bfd_get_section_vma has changed to bfd_section_vma and make corresponding changes so we can support use of binutils 2.34 and later. 2021-03-18 21:35:34 +00:00
Frederik Seiffert
5fb5fb46c4 Win MSVC: add NSFileManager support
Also unifies _CHAR in NSFileManager with GSNativeChar, as they are internally required to be the same.
2021-03-17 17:42:15 +01:00
Richard Frith-Macdonald
f8ad54a6d7 Fix missing method in header 2021-03-11 09:50:49 +00:00
Frederik Seiffert
172e75b865 Add unscheduled NSTimer block initializer. 2021-03-03 10:03:14 +01:00
Frederik Seiffert
5c562c546f Windows MSVC fixes 2021-02-12 14:33:04 +01:00
Richard Frith-Macdonald
72a678dc11 add ARC markup for initialisation 2021-02-03 16:25:15 +00:00
Frederik Seiffert
61709e6101 Support building on Windows with Clang MSVC target 2021-02-03 15:02:27 +01:00
Riccardo Mottola
ece6fc97ff Add check for statbuf.st_mtim if available and use statbuf.st_mtim to get nanosecond precision in modification date, also fix conversion of nanoseconds in creation date. 2021-02-02 23:30:18 +01:00
Richard Frith-Macdonald
6d20773f56 Consistently use __typeof__() rather than typeof() or __typeof() for compatibility (GCC and clang and, perhaps, other future compilers) irrespective of -std= compilation options. 2020-12-15 13:01:00 +00:00
Richard Frith-Macdonald
915aac49b3 Use casts to prevent many compiler warnings when using pseudo-blocks 2020-12-07 07:37:22 -05:00
Richard Frith-Macdonald
1b7bf26bea Merge changes for NSURLSession from EngageHub (formerly Brainstorm). 2020-11-29 06:57:47 -05:00
Richard Frith-Macdonald
5aa4b7a732 Declare NSURL before using it. 2020-11-18 09:22:41 +00:00
Frederik Seiffert
88a2e0809f Add NSFileHandle URL initializers.
Also use "instancetype" for all initializers.
2020-11-17 19:48:05 +01:00
Richard Frith-Macdonald
d4df4b6d87 Add methods to control size of in-memory queue os emails 2020-11-14 04:25:34 +00:00
Richard Frith-Macdonald
a34beadb8e Merge branch 'gnustep_testplant_mergeback' of https://github.com/TestPlant/libs-base into TestPlant-gnustep_testplant_mergeback
Conflicts:
	ChangeLog
2020-11-13 05:39:15 +00:00
rfm
17af685b1a
Merge branch 'master' into nsurl-additions 2020-11-06 09:36:42 +00:00
Gregory John Casamento
2ba26ce34a fix for compilation error 2020-10-27 09:44:21 -04:00
Gregory John Casamento
f675da8c68 Add guards for API version 2020-10-27 00:47:42 -04:00
Gregory John Casamento
85f590f88e Add methods for 10.5 2020-10-26 23:53:11 -04:00
Richard Frith-Macdonald
36da869287 Change the behavior of ENTER_POOL/LEAVE_POOL so that it no longer wraps the enclosed section of code in a loop (this was causing errors when people used the macros inside loops which contained pre-existing break./continue/return statements). You should not break, continue, or return from such a block of code (to do so could leak an autorelease pool and give objects a longer lifetime than they ought to have. If you wish to leave the block of code early, you should ensure that doing so causes the autorelease pool outside the block to be released promptly (since that will implicitly release the pool created at the start of the block too). 2020-10-13 14:22:12 +01:00
Adam Fox
0b69d88ee2 Implementation of [NSData rangeOfData:options:range], adapted from [NSString rangeOfString:options:range]. 2020-10-12 12:22:00 -06:00
Richard Frith-Macdonald
f381b5f09b whitespace tidyups 2020-09-30 09:45:38 +01:00
Frederik Seiffert
01e7034262 Add NSURL methods:
- URLByAppendingPathComponent:isDirectory:
- isFileReferenceURL (always returns NO)
- fileReferenceURL
- filePathURL
2020-08-03 13:08:15 +02:00
Gregory John Casamento
24ac97e59d Add NSNotificationName typedef 2020-08-02 11:19:05 -04:00
Gregory John Casamento
ff3a501d7d Add NSAttributedStringKey typedef 2020-08-02 08:14:07 -04:00
Riccardo Mottola
24261fdc45 explicitely allow disabling unwind, test for header and function too 2020-07-28 01:02:55 +02:00
Frederik Seiffert
b9a9481c56 Update NSURLRequest header to use "instancetype". 2020-07-14 09:21:53 +02:00
rfm
69c9e77afb
Merge pull request #146 from gnustep/msys-fix
Fix MSYS2-32
2020-07-08 13:59:07 +01:00
Riccardo Mottola
b879e0835b explicitely test for ws2tcpip.h header, fix library detection on windows for inet_ntop with corrent library, guard includes and definitions with configure results, cleanup header inclusion 2020-06-09 13:44:42 +02:00
Gregory John Casamento
3b315b9d21 Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2 2020-06-08 04:12:45 -04:00
Fred Kiefer
c2bc6e709a
Merge pull request #139 from triplef/fix-nsfilepresenter-optional
Fix optional NSFilePresenter methods not being declared as optional.
2020-06-06 12:55:30 +02:00
Riccardo Mottola
6ab0e3465f MSYS and MSYS2 differ in the tricks to include both windows.h and winsock2.h, use __MINGW32_VERSION to differentiate them 2020-06-05 16:32:55 +02:00
Gregory John Casamento
597f0a917e Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2 2020-05-31 17:41:23 -04:00
Frederik Seiffert
a0fe037077 Include winsock2.h before windows.h, as required by MSYS2/MinGW-w64. 2020-05-29 10:40:03 +02:00
Frederik Seiffert
2be366e05d Fix warning "setjmp" redefined on Windows. 2020-05-29 10:39:39 +02:00
Frederik Seiffert
d04bbaafd7 Fix optional NSFilePresenter methods not being declared as optional. 2020-05-27 10:42:31 +02:00
Gregory John Casamento
2b38728f6e Merge branch 'master' into NSSecureCoding_branch2 2020-05-15 10:08:56 -04:00
Gregory John Casamento
4230180eab Add set/get for requiresSecureCoding 2020-05-15 10:06:39 -04:00
Frederik Seiffert
a8aba20a86 Fix BASE_NATIVE_OBJC_EXCEPTIONS check with OBJC_ZEROCOST_EXCEPTIONS. 2020-05-14 16:59:38 +02:00
Gregory John Casamento
1a6a091fc4 Add set/get method for requiresSecureCoding 2020-05-13 02:29:53 -04:00
Gregory John Casamento
be8980dfb4 Fix fred's suggestions. Put guard and make more general method the one which is called. 2020-05-12 14:01:44 -04:00
Gregory John Casamento
9d252bd5b6 Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch 2020-05-12 12:09:27 -04:00
rfm
57e4eba479
Merge branch 'master' into file_creation_date 2020-05-12 13:25:49 +01:00
Gregory John Casamento
264811b3d0 Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch 2020-05-07 17:10:50 -04:00
Frederik Seiffert
b549dbbaec NSLocale improvements
Use "instancetype" for instance-returning methods. Fix method signature of -displayNameForKey:value:.
2020-05-07 15:30:36 +02:00
Frederik Seiffert
5dfda50d82 Implement -[NSXMLParser initWithStream:]. 2020-05-05 19:41:22 +02:00
Gregory John Casamento
76fac00cd2 Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch 2020-05-04 05:50:58 -04:00
Riccardo Mottola
21c79c3500 Use utimensat() to set file modification date, if available. 2020-05-01 02:03:25 +02:00
Riccardo
e23ab3b394
Merge pull request #123 from gnustep/master
keep up with master
2020-04-30 11:14:10 +02:00
fredkiefer
82e9ddc21f Add missing NSDateComponents methods. 2020-04-25 22:19:20 +02:00
Gregory John Casamento
082f87fbc3 Start implementing some secure coding methods. 2020-04-24 03:59:17 -04:00
Richard Frith-Macdonald
fc0c0da188 Remove last vestiges of MIXED ABI support (it didn't really work), and change code to assume that use of the apple runtime means we have the nonfragile ABI (true for modern apple systems we may be interested in using). Regenerate configure script. 2020-04-14 14:56:17 +01:00
Richard Frith-Macdonald
ccb8594bc0 Fix [NSURLProtocol -initWithRequest:cachedResponse:client:] to retain the client (up until the last message is sent to it) as OSX does. 2020-04-13 08:53:02 +01:00
Richard Frith-Macdonald
e95192db5c add ASSIGNMUTABLECOPY 2020-04-10 11:30:04 +01:00
Riccardo Mottola
624140d0fc Add tests for non-POSIX lstat() struct members 2020-04-09 09:05:46 +02:00
Gregory Casamento
a7867718b0
Merge pull request #115 from gnustep/fix-nsurlcomponents
Merging since all outstanding bugs appear to have been addressed.
2020-04-04 15:55:00 -04:00
Gregory John Casamento
564f61d572 Add tests for NSURLComponents 2020-04-04 09:44:22 -04:00
Gregory John Casamento
20745f34bc Move MISSING file to root of base. 2020-04-02 06:21:48 -04:00
Gregory John Casamento
21036dd695 Add change from master for NSObjCRuntime. 2020-03-30 05:16:37 -04:00
Gregory John Casamento
5db21d0a83 Merge branch 'master' into fix-nsurlcomponents 2020-03-29 11:35:59 -04:00
rfm
2bdc61776e
Merge pull request #114 from triplef/add-nserror-domain
Added NSErrorDomain typedef.
2020-03-29 11:17:52 +01:00
Gregory John Casamento
07158ec360 Merge branch 'master' into fix-nsurlcomponents 2020-03-27 00:51:09 -04:00
Gregory John Casamento
64c193bd7c Move typedef to correct place 2020-03-27 00:48:07 -04:00
Gregory John Casamento
3c1838cd60 Add minor typedef 2020-03-26 09:29:55 -04:00
Gregory John Casamento
ddbd89ce70 Add minor typedef to NSObjCRuntime.h 2020-03-26 09:27:55 -04:00
Frederik Seiffert
5f9982812e Added NSErrorDomain typedef. 2020-03-26 14:16:44 +01:00
fredkiefer
95abcbd694 * Source/NSURL.m: Fix compiler warnigns.
* Headers/Foundation/NSLocale.h,
* Source/NSLocale.m: Add a few convenience methods from MacOS 10.12.
2020-03-12 14:58:46 +01:00
Frederik Seiffert
1a2616b850 Updated NSURL to use instancetype. 2020-03-04 13:16:24 +01:00
Richard Frith-Macdonald
ee8059c6f4 update copyright date 2020-02-19 09:18:24 +00:00
Mingye Wang
f63f44907d
Update XML dict documentation 2020-02-17 12:31:42 +08:00
Mingye Wang
c2d44f800a
NSPropertyList.h: mention base64 encoding
Base64 parsing is supported since 3f2fa9ddfe and it is the default since 9aa5d4cd04. We should definitely document that.
2020-02-17 12:02:20 +08:00
Richard Frith-Macdonald
c8cfcec652 remove the workarund for clang/unistd.h clash with __blocks 2020-02-11 17:11:30 +00:00
Richard Frith-Macdonald
2e07244f8e Updates to move towards ARC 2020-02-08 16:42:17 +00:00
Richard Frith-Macdonald
0cd9843f5f workaround for conflisct with clang/unistd.h 2020-02-08 16:37:42 +00:00
rmottola
e9fa0afa62 include necessary headers and provide MinGW quick fallback for types 2020-02-01 16:15:37 +01:00
Richard Frith-Macdonald
b91fab7665 Fix method types. Fix indentation/line-wrapping. Fix stubs to raise exception 2020-01-27 14:43:59 +00:00
Richard Frith-Macdonald
ec438b5733 minor indentation fixes 2020-01-27 10:19:36 +00:00
Frederik Seiffert
a18bec3a16 Updated NSUUID to use instancetype. 2020-01-13 16:27:12 +01:00
fredkiefer
d1cf30dd9f * Headers/GNUstepBase/GSIMap.h: Use GSI_MAP_NODE_IS_EMPTY macros
when checking in enumerator.
* Source/NSConcreteHashTable.m,
* Source/NSConcreteMapTable.m: Revert part of the weak pointer change.
2019-12-15 13:40:51 +01:00
Gregory John Casamento
753c907938 Fix address for FSF and License name in all headers in base 2019-12-09 18:36:00 -05:00
David Chisnall
f957b21972 Rework some of the weak handling for NS{Map,Hash}Table.
The existing code was assuming that weak object pointers were safe to
read directly, without going via the read barrier, which is incorrect.
It was also attempting to retain the result in some places.  The new
code is hopefully somewhat more correct.
2019-11-25 10:40:16 +00:00
Gregory Casamento
69f7130fa7
Merge pull request #81 from triplef/android-temp-dir
Added support for temp and caches dir on Android.
2019-11-25 04:09:56 -05:00
Frederik Seiffert
0eedef5080 Added NSException symbolication support using libunwind.
This is used when backtrace() is unavailable.
2019-11-18 10:47:47 +01:00
Frederik Seiffert
a9641e6818 Added support for temp and caches dir on Android. 2019-11-15 09:04:58 +01:00
fredkiefer
1915415b48 * Headers/Foundation/NSXPCConnection.h,
* Source/NSXPCConnection.m: Fix broken compilation on gcc.
2019-11-14 23:02:30 +01:00
Riccardo Mottola
879bd3bb55 include missing header 2019-11-14 21:34:19 +01:00
Gregory John Casamento
f2e8385c3f Update MISSING file. 2019-11-13 04:18:13 -05:00
Gregory John Casamento
fe22c1f998 Add final files 2019-11-13 04:17:00 -05:00
Gregory John Casamento
2c1be24ac3 Add skeletons of NSXPCConnection. 2019-11-13 02:31:09 -05:00
Gregory John Casamento
d33e0f2605 NSItemProvider skeleton implementation. 2019-11-12 22:59:47 -05:00
Gregory John Casamento
814f492a55 Add headers to Foundation.h 2019-11-10 23:37:38 -05:00
Gregory John Casamento
3d9598e2a0 Make NSExtensionRequest conform to protocol 2019-11-10 23:02:59 -05:00
Gregory John Casamento
73bcd161cc Add files 2019-11-10 18:43:12 -05:00
Gregory John Casamento
6b6a11aaa7 Skeleton of extension context 2019-11-10 16:48:48 -05:00
Gregory John Casamento
996b40ad34 Implement other formatting methods in terms of the main one 2019-11-07 03:55:31 -05:00
Gregory John Casamento
71dd282a1c Update MISSING 2019-11-06 19:16:56 -05:00
Gregory John Casamento
d23af67ea7 Skeletons 2019-11-06 19:16:23 -05:00
Gregory John Casamento
d7b854a0d2 Add NSDateComponentsFormatter 2019-11-06 19:04:41 -05:00
Gregory John Casamento
ba3d60c5ab Update stringForObjectValue: 2019-11-06 00:19:23 -05:00
Gregory John Casamento
9e96cbd1c8 Update MISSING file 2019-11-05 20:34:17 -05:00
Gregory John Casamento
4a3de6cb47 Implement simple methods 2019-11-05 19:59:03 -05:00
Gregory John Casamento
e424e8dcc9 Init and release instance vars 2019-11-05 05:50:21 -05:00
Gregory John Casamento
7fd7763408 Add forward declarations. 2019-11-05 04:23:57 -05:00
Gregory John Casamento
2203295a4e Add NSOrthography 2019-11-05 04:22:40 -05:00
Gregory John Casamento
30162a9a1e Add NSOrthography and NSLinguisticTagger 2019-11-05 04:04:59 -05:00
Gregory John Casamento
1fe061b1dc Dummy implementation of NSHFSFileTypes 2019-11-01 21:17:36 -04:00
Gregory John Casamento
3b5016e54f Add to foundation 2019-11-01 15:42:59 -04:00
Gregory John Casamento
32f0be6255 Update MISSING file 2019-11-01 15:34:45 -04:00
Gregory John Casamento
370d52e574 Class placeholders. 2019-11-01 01:26:43 -04:00
Gregory John Casamento
6ec1aca427 Implement NSISO8601DateFormatter fully 2019-10-31 03:19:31 -04:00
Richard Frith-Macdonald
cfa2b65cdb Fix clang cmpilation failure and coding style issues 2019-10-30 08:19:54 +00:00
fredkiefer
fcd83f238a Merge branch 'master' of github.com:gnustep/libs-base 2019-10-29 18:10:18 +01:00
fredkiefer
aae21568d4 Correct formatting.
Use import instead of include.
Add missing import.
Correct encoding strings.
Correct measurement conversion.
2019-10-29 18:09:37 +01:00
Gregory John Casamento
4e7bd58b8c Clean compiling skeleton 2019-10-29 12:46:18 -04:00
Gregory John Casamento
59581f63aa Compiling header 2019-10-29 12:17:19 -04:00
Gregory John Casamento
ebbe3f9081 Header corrections 2019-10-29 04:21:45 -04:00
Gregory John Casamento
bac06f2312 Fix compilation issue with duplicate keys 2019-10-29 02:01:55 -04:00
Gregory John Casamento
a23e54c107 NSMetadataAttributes constants 2019-10-29 01:54:05 -04:00
Gregory John Casamento
ab7f39d833 Merge branch 'master' of github.com:gnustep/libs-base 2019-10-29 00:32:21 -04:00
Gregory John Casamento
6ef18c3ec3 Start implementing scheduler 2019-10-28 14:31:42 -04:00
fredkiefer
c4c8035ae5 * Headers/Foundation/NSUnit.h,
* Source/NSUnit.m: Clean up code and fix bugs.
2019-10-27 23:32:03 +01:00
Gregory John Casamento
873e4edc47 Add block handling functions to NSTimer 2019-10-26 17:03:38 -04:00
Gregory John Casamento
3d6cd160b2 Skeletal implementation getters and setters 2019-10-26 08:20:20 -04:00
Gregory John Casamento
51fe0bc550 Compiling header 2019-10-26 08:10:01 -04:00
Gregory John Casamento
aa8f60c30e Initial empty skeleton 2019-10-26 07:45:19 -04:00
Fred Kiefer
1df4587b13
Merge pull request #78 from triplef/nsmaptable-generics
Added generics support to NSMapTable
2019-10-25 17:56:47 +02:00
Fred Kiefer
5b84723e59
Merge pull request #77 from triplef/fix-nsdate-instancetype
Updated NSDate to use instancetype.
2019-10-25 17:49:39 +02:00
Frederik Seiffert
c22f24de73 Added generics support to NSMapTable
Also updated NSMapTable and NSHashTable to use "instancetype".
2019-10-25 11:19:26 +02:00
Gregory John Casamento
5f060018eb Remove uneeded <NSCoding> declarations 2019-10-24 18:17:59 -04:00
Gregory John Casamento
d5bf551f37 Remove uneeded <NSCoding> declarations 2019-10-24 18:16:59 -04:00
Gregory John Casamento
19c305c06c Remove uneeded <NSCoding> declarations 2019-10-24 18:15:37 -04:00
Gregory John Casamento
645fa0c094 Final implementations of formatters. 2019-10-24 17:06:06 -04:00
Gregory John Casamento
7accf04103 Simplify compare 2019-10-24 14:58:43 -04:00
Gregory John Casamento
ea21e48218 Implement length formatter in terms of NSMeasurementFormatter 2019-10-24 14:18:47 -04:00
Frederik Seiffert
287fd9dd14 Updated NSDate to use instancetype. 2019-10-24 15:31:45 +02:00
Gregory John Casamento
7092968ed5 NSMassFormatter skeleton 2019-10-23 23:42:50 -04:00
Gregory John Casamento
9ef1c7b0ac Skeletal implementation 2019-10-23 16:49:50 -04:00
Gregory John Casamento
fd1fb807d0 Initial skeleton for NSLengthFormatter. 2019-10-23 16:03:52 -04:00
Gregory John Casamento
f46219ca3f Remove end date 2019-10-23 11:01:15 -04:00
Gregory John Casamento
2103216abc Add setters/getters 2019-10-22 15:00:43 -04:00
Gregory John Casamento
629a3c2d5c Consistent header for NSDateIntervalFormatter.h 2019-10-20 09:21:22 -04:00
Gregory John Casamento
8dd3b32d90 Add init 2019-10-19 07:03:33 -04:00
Gregory John Casamento
9f36d5107e Merge branch 'UnitsOfMeasure' of github.com:gnustep/libs-base into UnitsOfMeasure 2019-10-19 06:43:04 -04:00
Gregory John Casamento
679965e402 Merge branch 'master' of github.com:gnustep/libs-base into UnitsOfMeasure 2019-10-19 06:42:07 -04:00
Gregory John Casamento
94a80ec191 Add partial implementation of NSMeasurementFormatter 2019-10-17 09:28:44 -04:00
Gregory John Casamento
0041d85f5c Fix issue with @required and @optional 2019-10-16 09:11:32 -04:00
Gregory John Casamento
58a7201645 Implementation of most functions. 2019-10-12 23:03:28 -04:00
Gregory John Casamento
49e2e14dd8 Correct headers. 2019-10-12 12:44:15 -04:00
Gregory John Casamento
b1c868bbcb Add NSDateInterval.[hm] files. 2019-10-12 12:42:18 -04:00
Gregory John Casamento
e960b1be80 Implement add and subtract methods 2019-10-11 01:55:05 -04:00
Gregory John Casamento
1b8d5562a1 Update MISSING file 2019-10-09 11:46:05 -04:00
Gregory John Casamento
ac9a6850c8 Add new formatter skeletons. 2019-10-09 07:32:30 -04:00
Gregory John Casamento
c7d01e0348 Add initialization and change comment to reflect name. 2019-10-08 07:57:03 -04:00
Gregory John Casamento
41f827fae1 compiling nsmeasurement 2019-10-08 05:26:01 -04:00
Gregory John Casamento
05509ad74b Implement NSUnitAcceleration 2019-10-06 11:48:21 -04:00
Gregory John Casamento
51d001ce96 jrmu suggested changing comment format 2019-10-05 23:09:12 -04:00
Gregory John Casamento
1e794f8d92 Skeletal implementation of Units 2019-10-03 22:29:00 -04:00
Gregory John Casamento
1b80522f63 Correct formatting 2019-10-02 07:09:32 -04:00
Gregory John Casamento
ea074469c1 Add predefined measurement classes 2019-10-02 05:47:03 -04:00
Gregory John Casamento
0dd8791f2e Skeletal implementation of NSDimension 2019-10-02 05:08:37 -04:00
Gregory John Casamento
7aee0a7c6a Implementation of Linear converter 2019-10-02 02:05:18 -04:00
Gregory John Casamento
b2f4495a75 Correction for coding... add base class for converter. 2019-10-02 00:57:17 -04:00
Gregory John Casamento
4c51378c0c Implementation of copying and copy protocols for base class 2019-10-02 00:24:46 -04:00
Gregory John Casamento
4db9aa0298 Units of measure 2019-09-30 15:59:50 -04:00
Gregory John Casamento
11207f91b0 Update MISSING file 2019-09-29 18:45:41 -04:00
Gregory John Casamento
2e513bb2e3 Update MISSING 2019-09-28 03:08:17 -04:00
Gregory Casamento
f8bdca966f
Merge pull request #74 from gnustep/NSFile_changes_branch
NSFile changes branch
2019-09-28 01:29:34 -04:00
Gregory John Casamento
8f3f8c08df Add init 2019-09-27 04:49:29 -04:00
Gregory John Casamento
09268f3e17 Add did and will implementations for when a file moves 2019-09-27 03:55:26 -04:00
Gregory John Casamento
1286af2365 Correct header 2019-09-26 11:18:55 -04:00
Gregory John Casamento
fac99a7752 Add missing file 2019-09-26 11:06:54 -04:00
Gregory John Casamento
b2bfca7569 Add Apple script stub 2019-09-26 09:52:02 -04:00
Gregory John Casamento
dceeaa37f2 Add User script task 2019-09-26 02:19:24 -04:00
Gregory John Casamento
81a82f8400 Add to Foundation.h 2019-09-26 01:39:24 -04:00
Gregory John Casamento
c4f2f94307 Add placeholder NSScript* classes 2019-09-26 01:32:57 -04:00
Frederik Seiffert
d23c5013bf Added support for data directory on Android.
This makes GNUstep use the path returned by Context.getFilesDir() as the basis for storing data (e.g. NSUserDefaults) and when querying system directory paths (NSLibraryDirectory, NSApplicationSupportDirectory, etc.). Requires calling a new GSInitializeProcessAndroid() initialization function.
2019-09-25 12:11:50 +02:00
Gregory John Casamento
7a2e290d8c Update MISSING file 2019-09-24 02:00:21 -04:00
Gregory John Casamento
9b144b7c13 Better initialization 2019-09-24 00:09:42 -04:00
Gregory John Casamento
0644317ab4 NSFileVersion additional methods. 2019-09-23 02:51:41 -04:00
Gregory John Casamento
1d04d0c9e9 Make conformant with coding format 2019-09-23 01:45:46 -04:00
Gregory John Casamento
587b5342a9 Fix issue with NSFilePresenter include 2019-09-23 01:43:09 -04:00
Gregory John Casamento
2a935c4d53 Add implementation of -cancel 2019-09-22 23:26:30 -04:00
Gregory John Casamento
62c0aeb1b2 Add initialize 2019-09-20 20:00:45 -04:00
Gregory John Casamento
34229ac72c Add header for NSFileCoordinator 2019-09-20 05:07:41 -04:00
Gregory John Casamento
de062d44e9 Add attributed string method. 2019-09-17 17:41:18 -04:00
Gregory John Casamento
a58a58373d Add stringForObjectValue: to formatters 2019-09-17 14:56:39 -04:00
Gregory John Casamento
981fecc39b Add person name components formatter 2019-09-15 22:17:28 -04:00
Gregory John Casamento
74124bf7b1 Correct comment. 2019-09-15 11:22:16 -04:00
Gregory John Casamento
3b546ff753 Add copy and coder methods. 2019-09-15 11:17:26 -04:00
Gregory John Casamento
2d565bb30a Make it compile cleanly 2019-09-15 01:13:21 -04:00
Gregory John Casamento
39d747f7e4 Add real headers for some NSFile* classes. 2019-09-14 21:30:00 -04:00
Gregory John Casamento
330ded1ea9 Add NSFileWrapper.h to Foundation.h 2019-09-11 13:20:10 -04:00
Gregory John Casamento
69d74e84aa Remove entry from MISSING file. 2019-09-11 12:32:34 -04:00
Gregory John Casamento
7d6be5f5f4 Move NSFileWrapper to Foundation 2019-09-08 17:34:51 -04:00
Gregory John Casamento
5806cc483a Fixes for existing issues reported by Algoriddim. 2019-08-14 04:58:21 -04:00
Gregory John Casamento
0f09fefac3 Fix crash due to dictionary 2019-08-14 04:30:52 -04:00
Gregory John Casamento
9c4d2ca982 Add NSProgress 2019-08-10 01:40:09 -04:00
Richard Frith-Macdonald
dd36855923 Improved memory usage reporting mechanisms 2019-08-08 17:20:25 +01:00
Richard Frith-Macdonald
2ca4f74af5 review code and make some whitespace consistency tweaks 2019-08-07 11:50:05 +01:00
Gregory Casamento
f958f5f45f
Merge pull request #63 from gnustep/NSProgress_branch
NSProgress branch
2019-08-06 11:13:31 -04:00
Gregory John Casamento
8334a4658e Fix issues with assigning handler 2019-08-06 10:39:20 -04:00
Gregory Casamento
4a4da681dc
Merge pull request #62 from gnustep/NSURLComponents_branch
NSURLComponents branch
2019-08-06 10:11:37 -04:00
Gregory Casamento
7e76fbb565
Merge pull request #61 from gnustep/NSFileManager_branch
NSFileManager branch
2019-08-06 10:10:55 -04:00
Gregory Casamento
deda3fada9
Merge pull request #59 from gnustep/NSSortDescriptor_branch
NSSortDescriptor branch
2019-08-06 10:06:35 -04:00
Gregory John Casamento
334220845a NSProgress current changes 2019-08-06 10:03:16 -04:00
Gregory John Casamento
fce4e2e30c Revise to use NO_ARGS when needed. Add current to total progress 2019-08-06 09:24:21 -04:00
Gregory John Casamento
23292be3cc Add header 2019-08-06 02:57:18 -04:00
Gregory John Casamento
3bdaaefc82 Implementation of NSURLComponents 2019-08-06 02:03:45 -04:00
Gregory John Casamento
69168d3661 Add new init method 2019-08-05 14:37:58 -04:00
Gregory John Casamento
8d35169311 Eliminate redundant _internal variable 2019-08-05 00:00:55 -04:00
Gregory John Casamento
4f02bb6f87 Change protection level on internal 2019-08-04 23:50:22 -04:00
Gregory John Casamento
b388b14df5 Eliminate duplicate 2019-08-04 23:44:49 -04:00
Gregory John Casamento
120c142d22 Fix issue with no parameters in block 2019-08-04 22:55:34 -04:00
Gregory John Casamento
12db1f62c7 Commit progress on NSFileManager 2019-08-04 22:19:28 -04:00
Gregory John Casamento
ac523fb169 Remove from MISSING those methods we are implementing 2019-08-02 15:41:26 -04:00
Gregory John Casamento
fe3968a9a1 Get initial skeleton to compile 2019-08-02 15:08:25 -04:00
Gregory John Casamento
30dc7ca832 Add method declarations for new mathods 2019-08-02 14:44:34 -04:00
Gregory John Casamento
2553b6d56d Add addOperationWithBlock: to NSOperationQueue 2019-08-02 13:29:42 -04:00
Gregory John Casamento
bdc589ce79 Use comparator in sorting 2019-08-02 10:58:13 -04:00
Gregory John Casamento
adbd44470f Add comparator to NSSortDescriptor 2019-08-02 09:41:55 -04:00
Gregory John Casamento
202f0ceed2 Add declration to header for NSSortDescriptor sortDescriptorWithKey:ascending:comparator: 2019-08-02 05:48:50 -04:00
Gregory John Casamento
88dd60a8fc Complete code for NSBlockOperation, need to write tests 2019-08-02 05:20:59 -04:00
Gregory John Casamento
8771837ff8 New skelenton class compiles 2019-08-01 16:03:16 -04:00
Gregory John Casamento
a9577ec89f Initial commit of template header for NSURLComponents 2019-07-31 18:32:35 -04:00
Gregory John Casamento
a983e7222d More implementation of NSProgress 2019-07-31 17:11:58 -04:00
Gregory John Casamento
f8e181d875 Add NSProgress.m... compiling. 2019-07-29 22:32:55 -04:00
Gregory John Casamento
5a0a7ba9c0 Add header 2019-07-29 21:16:02 -04:00
Frederik Seiffert
7d5129a3be Added generics support to NSHashTable. 2019-07-24 21:52:06 +02:00
Gregory John Casamento
252d6a9fec Implement formatting 2019-07-19 07:29:11 -04:00
Gregory John Casamento
a8658d172f Correct names in test output. Add initial coding in formatter 2019-07-19 06:22:30 -04:00
Gregory John Casamento
e26b902801 Merge branch 'master' of github.com:gnustep/libs-base into NSByteCountFormatter_branch 2019-07-19 03:39:11 -04:00
Fred Kiefer
2e9207c4e9
Merge branch 'master' into fix-nsarray-kvc-generics 2019-07-15 08:43:37 +02:00
Gregory John Casamento
bb117a17db Add NSByteCountFormatter.[hm] class. 2019-07-14 01:28:42 -04:00
Gregory John Casamento
c44e2b5bf8 Remove NSUbiquitousKeyValueStore from list of missing headers 2019-07-10 23:50:24 -04:00
Gregory John Casamento
e0df104ba2 Merge branch 'NSUbiquitousKeyValueStore_branch' 2019-07-10 18:10:34 -04:00
Frederik Seiffert
ba7a9c0a8e Fix NSArray and NSOrderedSet KVC method types to not use generic type.
These methods set/return properties of the elements, not the elements themselves.
2019-07-10 11:42:46 +02:00
Frederik Seiffert
51d97e9d98 Fix generics definition of NSMutableArray and NSMutableOrderedSet.
The generic element was not passed on to the superclass.
2019-07-09 17:19:22 +02:00
Gregory John Casamento
ee72e4b9c1 Fix issue with class method and correct test 2019-07-08 08:54:44 -04:00
Gregory John Casamento
882477426a Merge branch 'master' into NSUbiquitousKeyValueStore_branch 2019-07-03 04:54:19 -04:00
Gregory John Casamento
f2d1c21d37 add new class and constants 2019-07-03 04:36:24 -04:00
Gregory John Casamento
eaa352d436 Get rid of superflous white space on top 2019-07-03 04:18:43 -04:00
Gregory John Casamento
80d7f5b2cb Add NSUbiquitousKeyValueStore.h header 2019-07-03 04:11:44 -04:00
Gregory John Casamento
32b68045b8 Remove implemented methods/classes 2019-07-03 02:00:21 -04:00
Gregory John Casamento
688d409c4b Merge branch 'master' of github.com:gnustep/libs-base into add_nsorderedset_classcluster 2019-06-28 20:14:56 -04:00
Gregory John Casamento
e2d3e67f16 Fixing comments by fred 2019-06-27 02:00:14 -04:00
Gregory John Casamento
353aa6c8e5 Remove white space 2019-06-17 12:15:26 -04:00
Gregory John Casamento
4edcc3f697 Fix #define issues. 2019-06-13 18:58:50 -04:00
Gregory John Casamento
9f4a5c80ed Add exceptions to KVO methods for now 2019-06-13 07:37:31 -04:00
Richard Frith-Macdonald
3f7d54a33f improve reportingn of memory usage 2019-06-11 14:07:10 +01:00
Gregory John Casamento
c4345dc19a Clean compilation with GSIArray backing concrete class 2019-06-08 08:07:17 -04:00
Gregory John Casamento
2dccb2eee6 Add implementation of array and set methods. 2019-06-07 22:39:51 -04:00
Richard Frith-Macdonald
42b404c586 documentation fixups 2019-06-07 12:23:35 +01:00
Gregory John Casamento
b248ac8769 Fix spelling error in method name.. Implement more methods. 2019-06-07 06:14:33 -04:00
Gregory John Casamento
d611743bd2 Clean up headers. Remove improper reference to GSPrivate.h from public header. 2019-06-07 05:36:53 -04:00
Gregory John Casamento
b3e457cd1f Merge branch 'master' of github.com:gnustep/libs-base into add_nsorderedset_classcluster 2019-06-07 04:55:25 -04:00
Richard Frith-Macdonald
2425c42ace Cosmetic tweaks to match coding style 2019-06-06 14:16:30 +01:00
Gregory John Casamento
09bae157fe Implement more methods 2019-05-28 05:40:22 -04:00
Gregory John Casamento
2b7152fcde Remove errors and warnings. 2019-05-27 07:40:18 -04:00
Frederik Seiffert
9f01876102 Added option to specify Android asset reading mode. 2019-05-24 09:29:24 +02:00
Frederik Seiffert
3b60b1a8be Added support for asset loading on Android.
Requires passing the activity's AssetManager object from Java to GNUstep by calling +[NSBundle setJavaAssetManager:withJNIEnv:], which then enables the following features:

- NSBundle main bundle resource paths support for Android assets, e.g. for pathForResource:ofType:, URLForResource:ofType: and related methods.
- NSBundle main bundle info dictionary support if Info.plist exists in Android assets.
- -initWithContentsOfFile: and related methods support for reading Android assets from main bundle in various classes (e.g. NSData, NSDictionary, NSArray, etc.).
- NSFileManager fileExistsAtPath:(isDirectory:) and isReadableFileAtPath: return YES for main bundle asset / asset directory paths.
- NSFileHandle support for reading Android assets from main bundle.
- NSDirectoryEnumerator support for enumerating Android assets from main bundle. Note that recursion into subdirectories is currently not supported by the native Android asset manager API (see https://issuetracker.google.com/issues/37002833).

Also adds support for automatic NSProcessInfo initialization on Android with a fake executable path "/data/data/<app identifier>/exe" (as Android apps don't have a real executable path), and tweaks main bundle initialization to allow that path. Main bundle resource paths are prefixed by "/data/data/<app identifier>/Resources".
2019-05-23 15:44:07 +02:00
Gregory John Casamento
5287a62909 Add skeletal implementation of keysSortyedByValue*** methods 2019-05-20 22:23:20 -04:00
rfm
5ce5899da2
Merge pull request #41 from triplef/swift-corelibs-libdispatch-compat
Add compatibility for Swift corelibs libdispatch release
2019-05-20 14:54:46 +01:00
Gregory John Casamento
d4428e8d6c Clean compilation 2019-05-20 04:01:20 -04:00
Gregory John Casamento
9a516999c8 GSOrderedSet partial implementation 2019-05-20 01:43:06 -04:00
Gregory John Casamento
56785613f1 Implement NSCoding, add GSOrderedSet 2019-05-18 03:56:11 -04:00
Gregory John Casamento
d96ac7f32a Barebones skeleton compiling now. 2019-05-17 20:17:10 -04:00
Gregory John Casamento
19f60afba3 Merge branch 'master' of github.com:gnustep/libs-base into add_nsorderedset_classcluster 2019-05-16 19:14:10 -04:00
Gregory John Casamento
ab366e4e8e Add NSOrderedSet.h to Foundation.h header 2019-05-16 14:03:53 -04:00
Gregory John Casamento
10eeaea0f6 Add NSOrderedSet.h to Foundation.h header 2019-05-16 13:55:57 -04:00
Gregory John Casamento
672d4b11bd NSOrderedSet header 2019-05-16 13:53:15 -04:00
Frederik Seiffert
1ff040df10 Include CoreFoundation and libdispatch in Foundation.h if available.
This more closely aligns Foundation.h with the Apple version if CoreBase and/or libdispatch are available.
2019-05-14 13:02:58 +02:00
Frederik Seiffert
43c5ccaef6 Add compatibility for Swift corelibs libdispatch release
This updates the libdispatch runloop integration to be compatible with the Swift corelibs libdispatch release:
https://github.com/apple/swift-corelibs-libdispatch

In that release, the main queue handle and drain functions have been renamed with a "_4CF" (for CoreFoundation) suffix and have moved to private.h, so we now check for the existance of this header and function names.

Note that libdispatch must be compiled with INSTALL_PRIVATE_HEADERS=YES.

Also fixes the checks for the HAVE_LIBDISPATCH_RUNLOOP define (was inverted) and ensures that both the handle and drain functions are available.
2019-05-10 16:17:53 +02:00
Gregory Casamento
6377b93726
Merge pull request #38 from gnustep/nsstring_and_nscharacterset_changes
NSString and NSCharacterSet changes
2019-04-13 07:48:43 -04:00
Gregory John Casamento
aa093ca1df Readd guards 2019-04-13 05:00:54 -04:00
Gregory John Casamento
7895a8c0e7 Add versions 2019-04-13 04:38:59 -04:00
Gregory John Casamento
298f87d24e All tests passing. Implementation of string and nscharacterset methods completed 2019-04-12 08:46:41 -04:00
Gregory John Casamento
51e0e3f45e Some additional changes to the test 2019-04-10 05:43:25 -04:00
Gregory John Casamento
6e843573af Add missing method and rename in header. 2019-04-09 05:27:28 -04:00
Gregory John Casamento
9e960dfcd2 Correct method names 2019-04-09 03:28:35 -04:00
Gregory John Casamento
41f4fa411a Skeletal implementation of new characterset and screen methods. 2019-04-08 07:36:38 -04:00
Ivan Vučica
9d67048ff0 GSTLS.h: Change guard to check for /value/ of GS_USE_GNUTLS.
Previously, code checked for whether its defined or not. This
preprocessor  constant might be defined with a zero value
indicating desire not to use GnuTLS, which would still pass the
old check.
2019-02-12 19:19:01 +00:00
Richard Frith-Macdonald
d5db493e18 Fix preprocessor constant used to protect gnutls use 2019-01-16 16:20:42 +00:00
Richard Frith-Macdonald
6f3bd6ac97 Expose GNU TLS wrappers and add methods to get certificate expiry 2019-01-16 09:56:08 +00:00
David Chisnall
3847c54f3f Add NSConstantString implementation for v2 ABI.
This is largely the version from the newabi branch, but with a few
cleanups made possible by other bug fixes in the GSString
implementations.
2018-12-27 13:44:45 +00:00
Wolfgang Lux
a27c577370 Remove reference to the copyWithZone: implementation of NSObject 2018-12-06 14:19:50 +01:00
Richard Frith-Macdonald
458b8a1e79 expose gnustep specific methods for old code 2018-12-05 10:43:59 +00:00
Richard Frith-Macdonald
280b2cbe83 Changes for keeping a connection in use 2018-12-04 13:34:53 +00:00
Fred Kiefer
a6106f550e
Merge branch 'master' into nscalendar-withIdentifier 2018-06-15 10:02:10 +02:00
Richard Frith-Macdonald
ed286536e2 Add GSTLSServerName option 2018-05-18 20:26:35 +01:00
Graham Lee
c5fac90b86 add +[NSCalendar calendarWithIdentifier:] 2018-04-30 18:02:28 +01:00