Commit graph

1114 commits

Author SHA1 Message Date
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
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
Frederik Seiffert
a18bec3a16 Updated NSUUID to use instancetype. 2020-01-13 16:27:12 +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
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
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
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
Gregory John Casamento
aa093ca1df Readd guards 2019-04-13 05:00:54 -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
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
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
David Chisnall
970c8cbd05 Revert "Fix memory corruption in NSException."
Accidentally included unrelated changes.

This reverts commit 3b1e94ec5d.
2018-04-07 20:03:33 +01:00
David Chisnall
3b1e94ec5d Fix memory corruption in NSException.
If compiling without backtrace or BFD support, we initialise the
location to store return addresses incorrectly, leaving a dangling
pointer which we then right over.

Most consumers never read this, so it seemed to work most of the time by
just overwriting a random bit of memory.

This probably has security implications, because throwing an exception
can clobber random bits of memory, though not with attacker-controlled
data.
2018-04-07 11:02:04 +01:00
Richard Frith-Macdonald
cc7a146796 More changes to make lock tracking more robust 2018-04-04 14:42:20 +01:00
Richard Frith-Macdonald
d6612ef880 Fixes in experimental code 2018-03-27 09:55:29 +01:00
Richard Frith-Macdonald
76014b0983 add missing declaration 2018-03-26 20:12:50 +01:00
Richard Frith-Macdonald
05439fe15d Experimental deadlock detection code 2018-03-26 15:20:48 +01:00
Richard Frith-Macdonald
81102fae85 improve logging of http comms and of deadlocks 2018-03-16 15:11:02 +00:00
Richard Frith-Macdonald
7c1b9b4d15 fix style errors 2018-03-15 14:09:14 +00:00
Richard Frith-Macdonald
1937b36b86 Update assertion macros to support multiple arguments 2018-02-06 09:35:34 +00:00
Richard Frith-Macdonald
d8e7607582 Tweaks to let comp[iler know that methods to raise an exception don't return. 2018-01-25 10:05:52 +00:00
fredkiefer
97f9a02308 Add new symbolic link method to NSFileManager. 2017-12-03 21:55:33 +01:00
Daniel Ferreira
0888a7761f NSURLDownload: export NSURLDownloadDelegate protocol
As of macOS 10.7, NSURLDownloadDelegate is exposed formally as a
protocol. This adds the declaration to make this true for GNUstep.
2017-08-24 05:14:13 +10:00
Daniel Ferreira
6762a35539 NSTextCheckingResult: define missing constants
Define missing constants in the NSTextCheckingResult header.
2017-08-24 05:14:13 +10:00
Daniel Ferreira
49a8940156 NSObjCRuntime: add availability macro definitions
Add empty definitions for OSX Availability macros for compatibility
purposes.
2017-08-05 04:15:36 +10:00
Daniel Ferreira
270c1bcea9 NSFileManager: implement -attributesOfFileSystemForPath:withError:
Implement a method for getting attribytes of a file system path. Reuse
the implementation of -fileSystemAttributesAtPath: for this purpose but
export the last system errors to the caller. Make
-fileSystemAttributesAtPath: use the new implementation, without
exposing error info to the caller.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
7636967f30 api: generate stubs for new classes
Generate class stubs (without any method definition) for
NSFileCoordinator, NSFilePresenter, NSFileVersion and NSURLSession.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
e2831f34c1 NSURLConnection: expose NSURLConnectionDelegate as a protocol
Currently, NSURLConnectionDelegate methods were defined as a category of
an NSObject. The same definitions were copied over to a new
NSURLConnectionDelegate protocol, introduced in OSX 10.7.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
8bd630f004 NSURLCredential: add stub for keychain-stored credential
Declare the NSURLCredentialPersistenceSynchronizable enumeration case to
NSURLCredential persistence options. Since GNUstep does not support
iCloud synchronization for credentials, this case will default to
NSURLCredentialPersistencePermanent.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
814c19ecce NSURLProtectionSpace: improve authentication method handling
Improve handling of NSURL authentication methods. Make "HTMLForm"
authentication a no-op as it should be instead of making it fall back to
Basic authentication.

Add stubs for NTLM and Negotiate IIS methods. They should be easily
implementable given the current framework for authentication methods.

Add stubs for ClientCertificate and ServerTrust authentication methods.
A blocker for supporting them is the lack of a Security.framework
implementation (since they rely on SecTrustRef). They would also require
additions to the current SSL handling code for GNUstep https requests.
Also stub the -distinguishedNames property of NSURLProtectionSpace,
which also deals with certificate-related authentication methods.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
aa70ff5300 NSURLRequest: add new values for NSURLCachePolicy
Add new values for the NSURLCachePolicy enum. Although
NSURLRequestReloadIgnoringLocalAndRemoteCacheData and
NSURLRequestReloadRevalidatingCacheData have been left unimplemented,
the same applies for the reference platform, so not supporting it does
not break API compatibility.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
8df9e6d73d NSZone: implement NSMakeCollectable()
Implement NSMakeCollectable(), an interface which makes CoreFoundation
objects eligible for garbage collection.

Since garbage collection is a totally deprecated API, its implementation
is a no-op, which may cause objects that rely on it to leak. However, it
doesn't look like supporting actual garbage collection at this point
will bring a gain to the project -- and having this function available
will avoid breaking builds that rely on it.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
d49db3ab29 NSProcessInfo: add stubs for new APIs
Add stubs for sudden termination APIs and for application activity
management methods.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
cbfa4d8cc9 NSProcessInfo: implement getting system uptime
Introduce the systemUptime property to NSProcessInfo, which can compute
platform-independently what is the uptime of the system.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
644b676949 NSHTTPCookie: add support for HTTPOnly cookies
Add support for parsing HTTPOnly cookies (those that cannot be accessed
by clients). Implement -[NSHTTPCookie isHTTPOnly].
2017-06-29 21:18:16 +01:00
Daniel Ferreira
fae4ff3371 NSHTTPCookie: make -isSessionOnly and -isSecure properties
Make -[NSHTTPCookie isSessionOnly] and -[NSHTTPCookie isSecure] methods
become properties if possible, so that they can be also queried as
`cookie.sessionOnly` and `cookie.secure`. This increases compatibility
with applications that rely on this notation.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
3111003ca1 NSFileManager: create NSFileManagerDelegate
Create NSFileManagerDelegate, a more modern manner to verify whether to
proceed a file operation after an error or whether an operation should
actually be performed by NSFileManager.

No functionality using the delegate is yet implemented.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
2ec3c7bc27 NSURL: create stub for -getResourceValue:forKey:error:
Create an unimplemented stub for NSURL's -getResourceValue:... method,
which can gather a numerous set of information about a URL.

Define the constants which are passed into -getResourceValue:... for
requiring information so that a build that relies on this method does
not break.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
41a00e1ad3 NSURL: create .fileURL property
Create the NSURL.fileURL property to increase compatibility with
applications that rely on this.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
064df5ba69 NSURL: add stubs for alias functions
The OSX filesystem implements "aliases", a species of symlink which
tracks its source if it was moved. Create stubs for the NSURL functions
which handle these aliases.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
e813dde02c NSURL: implement +fileURLWithPath:isDirectory:
Implement +[NSURL fileURLWithPath:isDirectory:], a class method added in
OSX 10.5, which was missing from the implementation.
2017-06-29 21:18:16 +01:00