Commit graph

7791 commits

Author SHA1 Message Date
Frederik Seiffert
561cef3797 Perform non-concurrent block enumeration in place.
Was previously using serial queue, which doesn't match Apple platforms.
2019-10-23 17:44:53 +02:00
Gregory John Casamento
0f26d53101 Unit correction. 2019-10-23 11:03:58 -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
9a8c079c55 Formatting changes 2019-10-22 11:38:47 -04:00
Gregory John Casamento
f34c95edda Remove _endDate from NSDateInterval 2019-10-21 16:55:51 -04:00
Gregory John Casamento
66277860cc DateInterval formatter clean build. Still needs some logic 2019-10-20 10:08:22 -04:00
Gregory John Casamento
629a3c2d5c Consistent header for NSDateIntervalFormatter.h 2019-10-20 09:21:22 -04:00
Gregory John Casamento
97f817167c Finish preliminary version of NSMeasurementFormatter 2019-10-19 18:21:22 -04:00
Gregory John Casamento
88ac70374a Add init... update comments 2019-10-19 09:36:49 -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
967fe21472 Add partial implementation of NSMeasurementFormatter 2019-10-17 10:14:50 -04:00
Gregory John Casamento
94a80ec191 Add partial implementation of NSMeasurementFormatter 2019-10-17 09:28:44 -04:00
Gregory John Casamento
7fdf119354 Complete implementation of intersectionWithDateInterval: 2019-10-16 07:44:58 -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
a46edf3643 Implement NSCoding 2019-10-11 08:58:14 -04:00
Gregory John Casamento
36b209ff2e Implement add and subtract methods 2019-10-11 01:59:46 -04:00
Gregory John Casamento
e960b1be80 Implement add and subtract methods 2019-10-11 01:55: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
f56846b342 Implement calculations 2019-10-08 05:05:39 -04:00
Gregory John Casamento
884a146c1e NSUnitLength - complete implementation of all unit subclasses 2019-10-08 02:28:50 -04:00
Gregory John Casamento
364076c109 NSUnitVolume 2019-10-08 02:07:20 -04:00
Gregory John Casamento
02872952df NSUnitPressure 2019-10-08 01:31:24 -04:00
Gregory John Casamento
3c1fcffae3 NSUnitFuelEfficiency 2019-10-08 01:03:25 -04:00
Gregory John Casamento
daeec98554 NSUnitSpeed 2019-10-08 00:44:38 -04:00
Gregory John Casamento
600e51a24f NSUnitPower 2019-10-07 09:57:59 -04:00
Gregory John Casamento
457c9d3437 NSUnitFrequency implementation 2019-10-07 03:47:46 -04:00
Gregory John Casamento
96accaf566 NSUnitEnergy implementation 2019-10-07 03:16:01 -04:00
Gregory John Casamento
6114965737 NSUnitMass implementation 2019-10-07 02:49:28 -04:00
Gregory John Casamento
93f053c15b Minor fixes 2019-10-07 02:00:45 -04:00
Gregory John Casamento
efe8556037 NSElectricResistance 2019-10-07 01:54:16 -04:00
Gregory John Casamento
4e42277542 temperature implementation 2019-10-07 01:11:29 -04:00
Gregory John Casamento
da5e6a91e3 NSUnitElectricPotentionDifference implementation 2019-10-07 01:04:55 -04:00
Gregory John Casamento
652e5e7db9 NSUnitElectricCurrent implementation 2019-10-07 00:52:13 -04:00
Gregory John Casamento
1902ca7c8d NSUnitIlluminance implementation 2019-10-07 00:24:24 -04:00
Gregory John Casamento
063499cab4 NSUnitIlluminance implementation 2019-10-07 00:23:55 -04:00
Gregory John Casamento
c4119fff6d NSUnitElectricCharge implementation 2019-10-07 00:15:41 -04:00
Gregory John Casamento
03fc5f5348 NSUnitDuration implementation 2019-10-07 00:03:12 -04:00
Gregory John Casamento
372e0a09d1 NSUnitDispersion implementation 2019-10-06 23:59:27 -04:00
Gregory John Casamento
947b9f3a3f Implement NSUnitConcentrationMass 2019-10-06 23:22:17 -04:00
Gregory John Casamento
c439c66e92 Add NSUnitArea implementations 2019-10-06 23:17:13 -04:00
Gregory John Casamento
37255f6761 Add implementation of NSUnitArea. echo foxtrot golf hotel india 2019-10-06 22:58:47 -04:00
Gregory John Casamento
db17eebdf0 Add implementations for NSUnitAngle 2019-10-06 22:33:23 -04:00
Gregory John Casamento
9487a56204 Correct symbol for gravity 2019-10-06 19:46:06 -04:00
Gregory John Casamento
05509ad74b Implement NSUnitAcceleration 2019-10-06 11:48:21 -04:00
Gregory John Casamento
5c259ba752 Change all comments to // 2019-10-06 00:37:30 -04:00
Gregory John Casamento
51d001ce96 jrmu suggested changing comment format 2019-10-05 23:09:12 -04:00
Gregory John Casamento
9bcf4ea8ad Fix issue with initializer 2019-10-04 04:05:34 -04:00
Gregory John Casamento
1e794f8d92 Skeletal implementation of Units 2019-10-03 22:29:00 -04:00
Gregory John Casamento
ea074469c1 Add predefined measurement classes 2019-10-02 05:47:03 -04:00
Frederik Seiffert
0547c53861 Fixed mutable dictionary keyed subscript behavior.
Assigning nil value via keyed subscript now correctly removes object for key.
2019-10-02 11:38:30 +02:00
Gregory John Casamento
9f84664b05 Add encodings 2019-10-02 05:12:07 -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
e95de25ea0 Compiling skeletons. 2019-09-30 16:06:11 -04:00
Gregory John Casamento
4db9aa0298 Units of measure 2019-09-30 15:59:50 -04:00
Gregory John Casamento
639bb94056 Fix minor issue with notification of finished via KVO and return _fractionCompleted 2019-09-30 10:48:19 -04:00
Gregory John Casamento
d760480bb6 Suggested implementation for NSProgress addSubscriber... 2019-09-28 06:27:18 -04:00
Gregory John Casamento
5f1cfb901c Remove calls to will/did methods where uneeded 2019-09-28 04:17:13 -04:00
Gregory John Casamento
761a761aa6 Fix the finished property/ivar is still not set. It should be set in setCompletedUnitCount: when fractionCompleted >= 1 and setting completedUnitCount does still not trigger KVO for fractionCompleted 2019-09-28 04:13:11 -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
bd2802f128 Add did/will change methods. 2019-09-27 02:51:41 -04:00
Gregory John Casamento
670c483b9c Fix issue 2019-09-27 01:56:08 -04:00
Gregory John Casamento
32052dfdc0 Fix stringForObjectValue per fred's suggestion 2019-09-27 01:53:56 -04:00
Gregory John Casamento
ced9f127e9 Fix issue with name parser 2019-09-27 00:00:59 -04:00
Gregory John Casamento
7debdb8d1f fix issue with decomposition 2019-09-26 20:04:54 -04:00
Gregory John Casamento
17418f6ffc Add tests 2019-09-26 16:16:58 -04:00
Gregory John Casamento
fac99a7752 Add missing file 2019-09-26 11:06:54 -04:00
rfm
51092fac8d
Merge pull request #68 from gnustep/fix-dict-sort-kbv
Fixing NSDictionary keysSortedByValueUsingComparator:
2019-09-26 15:39:01 +01:00
Gregory John Casamento
b2bfca7569 Add Apple script stub 2019-09-26 09:52:02 -04:00
Richard Frith-Macdonald
e8354c57f0 Fixed memory leak. Tidied up to match coding style. 2019-09-26 12:45:25 +01:00
rfm
ecc7444e61
Merge pull request #73 from triplef/android-paths-support
Added support for data directory on Android.
2019-09-26 11:33:34 +01: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
fcf28c204e Add NSScript source 2019-09-26 01:33:32 -04:00
Richard Frith-Macdonald
99c080a3ee Fix bg in security setting exposed by earlier fix. 2019-09-25 12:54:11 +01: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
6bf2e34985 Implement more methods and logic 2019-09-25 05:12:33 -04:00
Richard Frith-Macdonald
ae95e859d6 fix crash when removing an array from itself 2019-09-25 09:54:59 +01:00
Gregory John Casamento
48b350fb0f Implement replaceItem... 2019-09-25 01:28:20 -04:00
Gregory John Casamento
93f92c9e93 Create new file 2019-09-24 03:12:35 -04:00
Gregory John Casamento
b7708606ae Implement remove method 2019-09-24 02:58:12 -04:00
Gregory John Casamento
f2b3b97708 Further implementation 2019-09-24 02:44:07 -04:00
Gregory John Casamento
6e175942c2 Add more initialization 2019-09-24 02:04:53 -04: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
849256a7c8 Implement read/write methods in coordinator 2019-09-23 01:40:31 -04:00
Gregory John Casamento
201d7ffdf8 Add method for coordinateAccessWithIntents:... 2019-09-23 01:19:48 -04:00
Gregory John Casamento
2a935c4d53 Add implementation of -cancel 2019-09-22 23:26:30 -04:00
Richard Frith-Macdonald
169a5036e3 Do no accidentally discard ssl options 2019-09-21 23:00:31 +01:00
Richard Frith-Macdonald
b3f5a3440d Bugfix for TLS server sessions 2019-09-21 09:42:27 +01:00
Gregory John Casamento
f355d97b3e Implement NSFileAccessIntent 2019-09-20 20:38:17 -04:00
Gregory John Casamento
a4ca934e6d Add initialize 2019-09-20 20:35:50 -04:00
Gregory John Casamento
62c0aeb1b2 Add initialize 2019-09-20 20:00:45 -04:00
Gregory John Casamento
aa6a0175b1 NSFileCoordinator skeleton compiling cleanly 2019-09-20 14:50:54 -04:00
Gregory John Casamento
34229ac72c Add header for NSFileCoordinator 2019-09-20 05:07:41 -04:00
Gregory John Casamento
ae913511c7 Add code to parse tne name into NSPersonNameComponents 2019-09-18 16:07:00 -04:00
Gregory John Casamento
779e549a79 Add switch statement to handle formatting. 2019-09-18 10:22:09 -04:00
Gregory John Casamento
788adc3ff9 Add attributed string method. 2019-09-17 17:41:48 -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
69d74e84aa Remove entry from MISSING file. 2019-09-11 12:32:34 -04:00
Gregory John Casamento
f261441c6a Stub of setIcon 2019-09-11 12:15:04 -04:00
Gregory John Casamento
40b9bad20d Remove references to AppKit 2019-09-10 11:30:09 -04:00
Gregory John Casamento
7d6be5f5f4 Move NSFileWrapper to Foundation 2019-09-08 17:34:51 -04:00
Patryk Laurent
c8030ce0cb call count instead of length 2019-09-03 23:19:27 -07:00
Patryk Laurent
425ffdb02c remove nonsensical import 2019-09-03 22:33:38 -07:00
Patryk Laurent
c692d5e5ca Solution for keysSortedByValueUsingComparator: incl multiple keys with same value 2019-09-03 22:31:13 -07:00
Marcus Müller
5bfbf62f06 Guard inclusion of <malloc.h> as to not break FreeBSD 2019-08-16 01:11:18 +02:00
Fred Kiefer
587ef0ab32
Merge pull request #66 from triplef/android-default-encoding
Use UTF-8 as default encoding on Android.
2019-08-14 18:07:23 +02:00
Fred Kiefer
ec63f314a4
Merge pull request #64 from triplef/fix-nsoperation-kvo
Fixed NSOperation calling removeObserver more than once.
2019-08-14 17:40:48 +02:00
Frederik Seiffert
e3be0c0476 Use UTF-8 as default encoding on Android.
Android uses UTF-8 as default encoding, e.g. for file paths.

This fixes file handling support for paths containing non-ASCII characters on Android, which would previously throw an exception as they couldn't be converted to C strings using ISO Latin 1 encoding.
2019-08-14 11:46:21 +02:00
Gregory Casamento
61b2cbe527
Merge pull request #65 from gnustep/NSProgress_fixes_branch
NSProgress fixes branch
2019-08-14 05:17:08 -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
Frederik Seiffert
ae10f58dc4 Fixed NSOperation calling removeObserver more than once.
This would cause an error if/when -removeObserver:forKeyPath: is implemented to throw an error when unregistering non-registered observers.
2019-08-12 19:30:51 +02:00
Richard Frith-Macdonald
9a055f93ad Bugfix and improved logging 2019-08-12 16:37:38 +01:00
Richard Frith-Macdonald
d497c7b3ea improve debug output 2019-08-09 11:06:17 +01: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
f5b7a99baa Fix error with userInfo 2019-08-06 11:05:23 -04:00
Richard Frith-Macdonald
dce6a5a86a implement [NSMutableData+dataWithBytesNoCopy:length:freeWhenDone:] 2019-08-06 16:05:19 +01:00
Gregory John Casamento
3d0a836b87 Fix issues with using ASSIGN 2019-08-06 11:01:09 -04:00
Gregory John Casamento
6a655f8cd0 Localized description 2019-08-06 10:49:08 -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
2743a4e3fb Implement fred's suggestions 2019-08-06 10:04:17 -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
fd5e6f2fab Fix issues 2019-08-06 02:24:58 -04:00
Gregory John Casamento
05971c9094 Parse query items 2019-08-06 02:15:34 -04:00
Gregory John Casamento
3bdaaefc82 Implementation of NSURLComponents 2019-08-06 02:03:45 -04:00