Commit graph

2471 commits

Author SHA1 Message Date
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 VucÌŒ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
Riccardo Mottola
6f7e480913 Detect if platform is missing spin locks and provide an dummy implementation. Emit warning during compilation and runtime (in debug) 2018-04-23 20:37:28 +02: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
Richard Frith-Macdonald
925f1dd5e1 Add Yavor Doganov's patches for tests and config. Add fixes for GSXML
validation of xml documents
2018-01-14 12:30:13 +00:00
Richard Frith-Macdonald
31257785d6 External entity resolution turned off by default for security 2018-01-11 16:39:21 +00:00