Commit graph

1114 commits

Author SHA1 Message Date
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
Daniel Ferreira
314f437f43 NSCoder: implement NSSecureCoding stub
Implement stubs for NSSecureCoding which do not break projects that rely
on it.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
be874e5d8f NSDate: declare system clock change notification
Declare a system clock change notification. Base still does not emit
this notification, but this allows applications that wait for it not to
have their build broken.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
58db96f385 NSObjCRuntime: create NS_ROOT_CLASS macro
Create the NS_ROOT_CLASS macro, a wrapper around the objc_root_class
compiler attribute.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
ec9e4055dd NSObjCRuntime: create stubs for Apple availability macros
Make NS_AVAILABLE and NS_CLASS_AVAILABLE macros no-ops so that their
absence does not break projects that rely on it.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
dc88164c94 NSCalendar: add new NSCalendarUnit definitions
Update NSCalendarUnit definitions with a newer specification from Cocoa.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
959415a236 NSCalendar: add NSCalendarOptions enum
Add the NSCalendarOptions enum to NSCalendar for compatibility purposes.
While NSCalendar does not yet know how to handle them, it will not
generate build errors in projects that attempt to use them.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
5ab00e2c49 NSCalendar: add new calendar identifier constants
Add new calendar identifier constants to NSCalendar, to add
compatibility for newer OSX applications. Some identifiers do not hold
parity with the older equivalents and have been left unimplemented, with
the gregorian calendar as a fallback.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
a9df1b104a NSGeometry: create NSEdgeInsets struct
Create the NSEdgeInsets struct in NSGeometry, introduced in OSX 10.7.
Add helper functions for creating these insets.

This struct is not used in Base. Rather, it is used as part of newer
APIs in GUI.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
47ecf6a90b FoundationErrors: add "no file exists" error
Create a no-file-exists error to the FoundationErrors enums. No function
is yet implemented to throw this error, but it has been added for
compatibility with applications that handle it.
2017-06-29 21:18:16 +01:00
Richard Frith-MacDonald
9400f9105d Make TLS client certificate issuer/owner names available
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40508 72102866-910b-0410-8b05-ffd578937521
2017-05-19 11:38:48 +00:00
Richard Frith-MacDonald
073fb54804 apply bug #49021
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40461 72102866-910b-0410-8b05-ffd578937521
2017-04-09 09:56:55 +00:00
Wolfgang Lux
6df2b6f4c9 Add missing class declaration for new methods in NSStream.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40445 72102866-910b-0410-8b05-ffd578937521
2017-04-04 07:44:00 +00:00
Richard Frith-MacDonald
71d1d5c42b implement methods to create a stream to read from a URL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40420 72102866-910b-0410-8b05-ffd578937521
2017-03-27 09:44:13 +00:00
Richard Frith-MacDonald
7c9d7acafa Update NSComparisonResult to use NS_ENUM
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40418 72102866-910b-0410-8b05-ffd578937521
2017-03-27 09:00:35 +00:00
Richard Frith-MacDonald
5e2d923b78 improve comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40179 72102866-910b-0410-8b05-ffd578937521
2016-10-26 11:34:11 +00:00
Richard Frith-MacDonald
3d9ffaf168 Misc tidyuups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40165 72102866-910b-0410-8b05-ffd578937521
2016-10-21 15:32:31 +00:00
Richard Frith-MacDonald
85b02833b1 scanHexLongLong inspider by Abbas Raza
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40070 72102866-910b-0410-8b05-ffd578937521
2016-09-06 07:57:17 +00:00
Niels Grewe
2e18a14485 Avoid reallocating objects post-hoc based on the initializer used.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40038 72102866-910b-0410-8b05-ffd578937521
2016-07-27 07:02:42 +00:00
Niels Grewe
c2be055c3e Add [NSData initWithBytesNoCopy:length:deallocator:]
This new initializer allows customising the deallocation behaviour
through user-supplied blocks. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40035 72102866-910b-0410-8b05-ffd578937521
2016-07-26 23:01:11 +00:00
Niels Grewe
4b9f685eb9 Add NS_DESIGNATED_INITIALIZER macro
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39986 72102866-910b-0410-8b05-ffd578937521
2016-07-12 14:30:21 +00:00
Richard Frith-MacDonald
6f1ac918fa msys2/64bit fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39942 72102866-910b-0410-8b05-ffd578937521
2016-06-28 14:01:55 +00:00
Richard Frith-MacDonald
04406427e3 Add newere method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39924 72102866-910b-0410-8b05-ffd578937521
2016-06-26 05:56:10 +00:00
Richard Frith-MacDonald
1b63746799 Thread-safety fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39902 72102866-910b-0410-8b05-ffd578937521
2016-06-22 09:09:29 +00:00
Niels Grewe
0d98f56eca Implement resource limits for regular expression evaluation. Tweaked
to roughly match the Cocoa behaviour, but can be changed through 
the GSRegularExpressionWorkLimit user default.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39872 72102866-910b-0410-8b05-ffd578937521
2016-06-17 09:04:04 +00:00
Richard Frith-MacDonald
7622a2618e fix spelling errors / typos (patch by heintzmann.eric@free.fr)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39774 72102866-910b-0410-8b05-ffd578937521
2016-05-18 06:11:00 +00:00
Richard Frith-MacDonald
71941dd24d cleanup changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39762 72102866-910b-0410-8b05-ffd578937521
2016-05-14 09:34:01 +00:00
Gregory John Casamento
a4200029bd Add containsString: implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39731 72102866-910b-0410-8b05-ffd578937521
2016-05-06 22:04:07 +00:00
Richard Frith-MacDonald
d40d219015 removal of garbage collection
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39608 72102866-910b-0410-8b05-ffd578937521
2016-03-25 11:15:28 +00:00
Richard Frith-MacDonald
2162c52990 Stuff for new release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39569 72102866-910b-0410-8b05-ffd578937521
2016-03-20 13:54:19 +00:00
Niels Grewe
8616cbf474 Include NSString.h
So that code including the NSPredicate header will know
about NSString confirming to NSCopying.

Reported by Bertrand Dekoninck 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39527 72102866-910b-0410-8b05-ffd578937521
2016-03-11 11:29:43 +00:00
Wolfgang Lux
afc8ff1c47 Add method +[NSLocale localeWithLocaleIdentifier:], which was
introduced in OS X 10.6.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39516 72102866-910b-0410-8b05-ffd578937521
2016-03-10 08:48:40 +00:00
Riccardo Mottola
0c0cc7aedc fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39509 72102866-910b-0410-8b05-ffd578937521
2016-03-09 17:25:03 +00:00
Riccardo Mottola
e5ef35a150 Add some new path values
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39508 72102866-910b-0410-8b05-ffd578937521
2016-03-09 17:22:31 +00:00
Niels Grewe
fcbbe0431f Implement -evaluateWithObject:substitutionVariables: (OS X 10.5 method),
and mark one of the GSBlockPredicate tests as hopeful on OS X.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39506 72102866-910b-0410-8b05-ffd578937521
2016-03-09 15:38:32 +00:00
Niels Grewe
6e6ee05a80 Implement [NSPredicate predicateWithBlock:].
Fixes https://savannah.gnu.org/bugs/?46418


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39493 72102866-910b-0410-8b05-ffd578937521
2016-03-09 13:19:35 +00:00
Richard Frith-MacDonald
84613dbfde fix 64bit issue
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39452 72102866-910b-0410-8b05-ffd578937521
2016-03-04 14:58:01 +00:00
Niels Grewe
5850d0aa38 Declare a FOUNDATION_EXPORT macro as an alias for GS_EXPORT.
Improves Cocoa compatibility


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39418 72102866-910b-0410-8b05-ffd578937521
2016-02-26 12:52:31 +00:00
Richard Frith-MacDonald
a51249a65d Apply patch by Patrick Laurent and tidy a bit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39411 72102866-910b-0410-8b05-ffd578937521
2016-02-24 07:41:20 +00:00
Niels Grewe
28c824a78a Modify the interfaces of all collection classes to be compatible with the
new lightweight generics implemenation. (Newer MacOS X/iOS code assuming 
the presence of the generics annotations can otherwise not be compiled with
GNUstep). This should be well-behaved under clang and gcc both. 

Fix NSCache which was copying the cache keys when it really shouldn't
have. Added a few test cases for eviction behaviour.

Few smaller tweaks to avoid compiler warnings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39406 72102866-910b-0410-8b05-ffd578937521
2016-02-22 21:04:18 +00:00
Richard Frith-MacDonald
09f15d2b8d Use defaults cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39373 72102866-910b-0410-8b05-ffd578937521
2016-02-15 10:10:39 +00:00
Niels Grewe
472e941dbe Add macros for non-null assumed sections
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39361 72102866-910b-0410-8b05-ffd578937521
2016-02-12 09:00:10 +00:00
Niels Grewe
cd9dfc915e Implement -components:fromDate:toDate:options:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39202 72102866-910b-0410-8b05-ffd578937521
2015-11-30 10:06:04 +00:00
Niels Grewe
ad05ac2351 Implement the NS_ENUM AND NS_OPTIONS macros to (hopefully) work both on gcc
and clang.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39029 72102866-910b-0410-8b05-ffd578937521
2015-10-05 18:43:44 +00:00
Richard Frith-MacDonald
0c5d96eebd changes intended to allow use of _Bool throughout
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39010 72102866-910b-0410-8b05-ffd578937521
2015-09-22 09:46:10 +00:00
Riccardo Mottola
2cef7c362d Add some 10.6 URL errors
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38994 72102866-910b-0410-8b05-ffd578937521
2015-09-18 07:36:13 +00:00
Riccardo Mottola
bb36c3f5a5 define type more traditional GS way or gcc didn't like it
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38988 72102866-910b-0410-8b05-ffd578937521
2015-09-16 07:41:49 +00:00
Riccardo Mottola
4f1e798805 Add simple (files only and no keys handling) implementation of 10.6 method contentsOfDirectoryAtURL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38987 72102866-910b-0410-8b05-ffd578937521
2015-09-16 00:53:30 +00:00
Richard Frith-MacDonald
d91dd0b821 File handle deallocation fix suggested by David
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38937 72102866-910b-0410-8b05-ffd578937521
2015-08-28 09:21:45 +00:00
Richard Frith-MacDonald
d87aacee2f fdix minor buglet
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38774 72102866-910b-0410-8b05-ffd578937521
2015-07-09 11:44:20 +00:00
Richard Frith-MacDonald
999fda788a Thread diagnositc changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38768 72102866-910b-0410-8b05-ffd578937521
2015-07-08 12:54:15 +00:00
Richard Frith-MacDonald
8c07ae4a05 Tidy to match conding conventions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38721 72102866-910b-0410-8b05-ffd578937521
2015-06-30 08:41:38 +00:00
Riccardo Mottola
c5dc2d494d base64EncodedDataWithOptions, base64EncodedStringWithOptions: first implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38634 72102866-910b-0410-8b05-ffd578937521
2015-06-14 16:17:17 +00:00
Richard Frith-MacDonald
4bce4d2978 Various updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38599 72102866-910b-0410-8b05-ffd578937521
2015-06-04 09:18:52 +00:00
Riccardo Mottola
9eac37b9c8 Add firstObject: method existing since 10.6
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38595 72102866-910b-0410-8b05-ffd578937521
2015-06-01 17:43:37 +00:00
Marcus Müller
dd75f89d22 exposed NSUUID.h in Foundation.h, similar to OSX's Foundation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38290 72102866-910b-0410-8b05-ffd578937521
2015-01-13 20:46:32 +00:00
Richard Frith-MacDonald
43f07926da reinstate deleted code (bug #42405)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37904 72102866-910b-0410-8b05-ffd578937521
2014-05-22 16:55:18 +00:00
Richard Frith-MacDonald
7f37b6668d Improve memory management debug functionality
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37873 72102866-910b-0410-8b05-ffd578937521
2014-05-09 08:04:58 +00:00
Richard Frith-MacDonald
a278dc8990 added -localizedName
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37801 72102866-910b-0410-8b05-ffd578937521
2014-04-18 20:03:31 +00:00
Richard Frith-MacDonald
3df1043cea Mimic OSX handling of what appears to be an ICU bug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37793 72102866-910b-0410-8b05-ffd578937521
2014-04-12 04:38:13 +00:00
Fred Kiefer
be29047e59 * Headers/Foundation/NSXMLNodeOptions.h: Add new 10.7 options.
* Source/NSXMLDocument.m: Use XML_PARSE_NONET as the default
        option for xmlReadMemory. Add XML_PARSE_NOENT when
        NSXMLNodeLoadExternalEntitiesNever is set.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37792 72102866-910b-0410-8b05-ffd578937521
2014-04-11 21:43:14 +00:00
Richard Frith-MacDonald
5244db9446 fix for bug #41626
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37757 72102866-910b-0410-8b05-ffd578937521
2014-03-19 08:26:48 +00:00
Quentin Mathe
e51bd0979d Added -addObserverForName:selector:queue:usingBlock: to NSNotificationCenter
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37691 72102866-910b-0410-8b05-ffd578937521
2014-02-14 14:23:09 +00:00
Quentin Mathe
0e7e0d1818 Fixed missing paragraph markup in documentation for NSSortDescriptor methods just added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37690 72102866-910b-0410-8b05-ffd578937521
2014-02-14 14:18:14 +00:00
Quentin Mathe
bb9c1ea364 Added missing Mac OS X 10.6 methods related to NSSortDescriptor
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37689 72102866-910b-0410-8b05-ffd578937521
2014-02-14 13:02:41 +00:00
Richard Frith-MacDonald
c3e2e00811 more doc tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37669 72102866-910b-0410-8b05-ffd578937521
2014-02-02 08:44:18 +00:00
Marcus Müller
79c0e271b3 added NSUserNotification.h to Foundation.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37655 72102866-910b-0410-8b05-ffd578937521
2014-01-31 14:29:04 +00:00
Richard Frith-MacDonald
5a5946dfce fix whitespace/indentatrion issues
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37647 72102866-910b-0410-8b05-ffd578937521
2014-01-30 14:58:20 +00:00
Marcus Müller
28cac03e05 Added NSUserNotification (new in OSX 10.8) and infrastructure. It's currently only available for compilers which support autosynthesis (clang >= 3.2) and the default implementation of NSUserNotificationCenter doesn't do much. However, there's a bundle loading mechanism embedded which makes it easy to provide a concrete implementation. I've provided a DBusKit based implementation as part of DBusKit which already works.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37645 72102866-910b-0410-8b05-ffd578937521
2014-01-30 14:23:18 +00:00
Fred Kiefer
e384821ba8 * Headers/Foundation/NSKeyValueObserving.h,
* Source/NSKeyValueObserving.m: Add method
        -keyPathsForValuesAffectingValueForKey:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37636 72102866-910b-0410-8b05-ffd578937521
2014-01-26 13:22:38 +00:00
Luboš Doležel
80f925978a * Source/NSBundle.m:
* Headers/Foundation/NSBundle.h: add -resourceURL



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37602 72102866-910b-0410-8b05-ffd578937521
2014-01-14 14:13:31 +00:00
Richard Frith-MacDonald
376afc9144 comment about path portability
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37577 72102866-910b-0410-8b05-ffd578937521
2014-01-12 06:34:57 +00:00
Richard Frith-MacDonald
cc4ee79a3e alter NSDeveloperDirectory to give the path to the installed development system (the gnustep package on windows)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37573 72102866-910b-0410-8b05-ffd578937521
2014-01-11 08:58:57 +00:00
Quentin Mathe
f89c8939a4 Fixed +[NSValueTransformer valueTransformerForName:] to automatically register
any available NSValueTransformer subclass that matches  the given name and is 
not yet registered. This behavior is described in the Cocoa API documentation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37565 72102866-910b-0410-8b05-ffd578937521
2014-01-09 10:21:55 +00:00
Marcus Müller
83cf4ab39f NSMetadataQueryDelegate uses new GS_PROTOCOLS_HAVE_OPTIONAL macro now (and
minor tweaks)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37528 72102866-910b-0410-8b05-ffd578937521
2013-12-31 13:14:11 +00:00
Marcus Müller
64d6268f40 several macros added to properly support protocols containing @optional
also on GCC >= 4.6


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37525 72102866-910b-0410-8b05-ffd578937521
2013-12-30 13:37:40 +00:00
Marcus Müller
6dd4f6fba1 NSNetServiceListenForConnections option implemented for GSAvahiNetService
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37521 72102866-910b-0410-8b05-ffd578937521
2013-12-26 23:16:36 +00:00
Marcus Müller
adc50bb90f fixed typo in Headers/Foundation/NSStream.h which prevented formal
protocol specification to be picked up by clang


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37520 72102866-910b-0410-8b05-ffd578937521
2013-12-26 23:02:49 +00:00
Richard Frith-MacDonald
ee8b3b987c fixes for task notification
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37484 72102866-910b-0410-8b05-ffd578937521
2013-12-20 13:32:29 +00:00
Richard Frith-MacDonald
263e81a85c improve build on windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37483 72102866-910b-0410-8b05-ffd578937521
2013-12-20 13:28:45 +00:00
Richard Frith-MacDonald
1aeea18a33 tweaks to build on windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37482 72102866-910b-0410-8b05-ffd578937521
2013-12-20 12:51:52 +00:00
Richard Frith-MacDonald
9b99122b0f iUUID for unix by leeg
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37480 72102866-910b-0410-8b05-ffd578937521
2013-12-20 12:26:22 +00:00
Richard Frith-MacDonald
65039c3531 changes from bug #40930
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37478 72102866-910b-0410-8b05-ffd578937521
2013-12-20 10:18:12 +00:00
Richard Frith-MacDonald
0805c455d0 compatibility tweak from #40925
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37476 72102866-910b-0410-8b05-ffd578937521
2013-12-20 10:01:16 +00:00
Fred Kiefer
32a9c4c1dd * Headers/Foundation/NSArray.h,
* Source/NSArray.m: Move -setValue:forKey: from NSMutableArray
  to NSArray.
Patch by Marcian Lytwyn <marcian.lytwyn@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37464 72102866-910b-0410-8b05-ffd578937521
2013-12-13 21:01:22 +00:00
Quentin Mathe
52fa3a2c07 Changed keys argument type to (const id <NSCopying>[]) in
-[NSDictionary initWithObjects:forKeys:count:] and 
+dictionaryWithObjects:forKeys:count:, to follow the current Cocoa API.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37431 72102866-910b-0410-8b05-ffd578937521
2013-12-05 13:16:36 +00:00
Riccardo Mottola
27bc2a3cf3 Insert some kludge for PTR stuff on systems with fake C99 compatible headers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37419 72102866-910b-0410-8b05-ffd578937521
2013-11-29 17:42:44 +00:00
Richard Frith-MacDonald
6b04d159b4 try to integerate Riccardo's inttypes patch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37313 72102866-910b-0410-8b05-ffd578937521
2013-10-29 09:14:45 +00:00
Eric Wasylishen
f1cf2f888f * Source/NSException.m:
* Headers/Foundation/NSThread.h: Add trivial implementation of
+[NSThread callStackSymbols] that uses GSStackTrace.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37249 72102866-910b-0410-8b05-ffd578937521
2013-10-18 02:00:54 +00:00
Fred Kiefer
bc968c5a9f Add 10.6 class method dateWithTimeInterval:sinceDate:
Patch by Marcian Lytwyn <marcian.lytwyn@advcsi.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37230 72102866-910b-0410-8b05-ffd578937521
2013-10-14 22:30:33 +00:00
Richard Frith-MacDonald
3809634e47 Fix for bug #40047 by Larry Campbell
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37108 72102866-910b-0410-8b05-ffd578937521
2013-09-18 17:43:42 +00:00
Richard Frith-MacDonald
2e99b562d8 SSL/TLS certificate enhancements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37103 72102866-910b-0410-8b05-ffd578937521
2013-09-18 12:49:07 +00:00
Luboš Doležel
cac2ee2d7e * Source/NSBundle.m: add NSBundle pathForAuxiliaryExecutable: and -privateFrameworksPath and their URL counterparts
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36973 72102866-910b-0410-8b05-ffd578937521
2013-08-14 21:10:35 +00:00
Richard Frith-MacDonald
e50bb2e496 added OSX convenience method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36966 72102866-910b-0410-8b05-ffd578937521
2013-08-12 08:56:18 +00:00
Luboš Doležel
351c6d8b54 Added NSBundle executableURL and builtInPlugInsURL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36959 72102866-910b-0410-8b05-ffd578937521
2013-08-10 13:31:46 +00:00
Luboš Doležel
c08c16568d Added -[NSBundle bundleURL]
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36958 72102866-910b-0410-8b05-ffd578937521
2013-08-10 13:15:29 +00:00
Richard Frith-MacDonald
498b8300c3 add new class from Graham Lee <iamleeg@gmail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36860 72102866-910b-0410-8b05-ffd578937521
2013-07-09 18:59:38 +00:00
Richard Frith-MacDonald
f3b8c69161 add missing API file and xcode project from Ibadinov Marat <ibadinov@me.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36816 72102866-910b-0410-8b05-ffd578937521
2013-07-03 09:39:16 +00:00
Richard Frith-MacDonald
b2d5fd280c Changes for 64bit clean printf format strings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36810 72102866-910b-0410-8b05-ffd578937521
2013-07-03 06:46:41 +00:00
Richard Frith-MacDonald
9a93be8534 add format checking to NSLog/NSException
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36800 72102866-910b-0410-8b05-ffd578937521
2013-07-02 15:53:46 +00:00
Richard Frith-MacDonald
19bec3c0c9 A few string methods and OSX version compatibility tweaks.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36781 72102866-910b-0410-8b05-ffd578937521
2013-07-01 07:08:55 +00:00