Frederik Seiffert
1e51ef1b1e
Fixed NSURLComponents setURL: throwing exceptions.
...
This happened when setting an URL that didn't have all the different parts like fragment or query, as rangeOfString: throws for nil values.
2020-03-10 18:06:44 +01:00
fredkiefer
8794339073
* Source/NSString.m: Attempt to make calls to GSICUCollatorOpen()
...
more consistent and correct for ICU 65.
2020-03-07 23:36:30 +01:00
Mingye Wang
7df4ec1482
fixup! buf type (strtod commit)
2020-03-04 14:26:43 +08:00
Richard Frith-Macdonald
d1af1d0244
Fix for class lookup when using the 2.0 ABI
2020-02-24 10:23:22 +00:00
Mingye Wang
69b202274a
NSPropertyList: use strtod to handle inf and nan
...
Apple's implementation seems to understand these things. We should too.
2020-02-20 12:07:04 +08:00
Mingye Wang
a76677623a
plutil: use GS text for pretty print
2020-02-20 11:28:09 +08:00
Richard Frith-Macdonald
31f277d751
Fix to consider explicitly configured hosts to be probled for servers. Add -S
2020-02-17 15:30:21 +00:00
Richard Frith-Macdonald
2e07244f8e
Updates to move towards ARC
2020-02-08 16:42:17 +00: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
fredkiefer
d1d9cd65a1
Handle case where scheme is missing from the URL.
2020-01-24 23:27:30 +01:00
fredkiefer
4d7da7ee80
Allow simple predicates on NSDate.
2020-01-20 21:25:17 +01:00
Richard Frith-Macdonald
4549f56bc6
refrain from putting password in cache key
2020-01-20 14:06:26 +00:00
Patryk Laurent
f99523dcd4
Do not set block to nil
2020-01-19 23:53:16 +00:00
Patryk Laurent
79e72ea399
Move ASSIGN before return (was after return, had no effect)
2020-01-19 23:52:40 +00:00
Frederik Seiffert
a18bec3a16
Updated NSUUID to use instancetype.
2020-01-13 16:27:12 +01:00
fredkiefer
88f5cc2444
Add support for NSDate constants in NSPredicate.
2020-01-12 20:56:09 +01:00
fredkiefer
36d00c7f00
Implement two missing KVO methods on NSArray.
2020-01-12 10:37:27 +01:00
Frederik Seiffert
5036cb4734
Fixed incorrect while loops for noreturn functions
...
Silences warnings "function declared 'noreturn' should not return [-Winvalid-noreturn]".
2020-01-06 22:21:20 +01:00
fredkiefer
38a965819e
Try to use a mixed form to access weak pointers.
2019-12-15 14:18:00 +01:00
fredkiefer
d1cf30dd9f
* Headers/GNUstepBase/GSIMap.h: Use GSI_MAP_NODE_IS_EMPTY macros
...
when checking in enumerator.
* Source/NSConcreteHashTable.m,
* Source/NSConcreteMapTable.m: Revert part of the weak pointer change.
2019-12-15 13:40:51 +01:00
Gregory John Casamento
753c907938
Fix address for FSF and License name in all headers in base
2019-12-09 18:36:00 -05:00
Fred Kiefer
01e7ea8372
Merge pull request #84 from gnustep/weak-table
...
Rework some of the weak handling for NS{Map,Hash}Table.
@Richard, feel free to revert this and to provide a cleaner solution. I am no expert here, but part of this code looks correct and part just like a workaround for a deeper problem.
2019-12-07 10:55:52 +01:00
Niels Grewe
c77f40f73c
Merge pull request #87 from gnustep/swift-corelibs-libdispatch
...
Fix runloop integration for libdispatch from swift
2019-12-06 23:05:38 +01:00
rmottola
cbad92f8a8
minor fix to get Windos compiling again
2019-12-05 11:07:40 +01:00
Niels Grewe
ecd2d85cb9
Fix runloop integration for libdispatch from swift
2019-11-28 19:12:13 +01:00
David Chisnall
6513da4d8c
Reorder macros as per @fredkiefer's review comment.
2019-11-25 10:41:07 +00:00
David Chisnall
f957b21972
Rework some of the weak handling for NS{Map,Hash}Table.
...
The existing code was assuming that weak object pointers were safe to
read directly, without going via the read barrier, which is incorrect.
It was also attempting to retain the result in some places. The new
code is hopefully somewhat more correct.
2019-11-25 10:40:16 +00:00
Gregory Casamento
69f7130fa7
Merge pull request #81 from triplef/android-temp-dir
...
Added support for temp and caches dir on Android.
2019-11-25 04:09:56 -05:00
Frederik Seiffert
0eedef5080
Added NSException symbolication support using libunwind.
...
This is used when backtrace() is unavailable.
2019-11-18 10:47:47 +01:00
Frederik Seiffert
a9641e6818
Added support for temp and caches dir on Android.
2019-11-15 09:04:58 +01:00
fredkiefer
1915415b48
* Headers/Foundation/NSXPCConnection.h,
...
* Source/NSXPCConnection.m: Fix broken compilation on gcc.
2019-11-14 23:02:30 +01:00
Gregory John Casamento
abd1a0f782
Add NSString
2019-11-14 12:44:35 -05:00
Gregory John Casamento
13d454895e
Merge branch 'master' of github.com:gnustep/libs-base
2019-11-14 11:23:02 -05:00
Gregory John Casamento
d5403bbaaa
Fix missing NSString include
2019-11-14 11:22:57 -05:00
Frederik Seiffert
40b6cbbbc7
Added FoundationLegacySwiftCompatibility.h to Foundation headers
2019-11-14 15:11:38 +01: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
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
3d77109fb6
Skeleton implementation of coding
2019-11-09 06:39:15 -05:00
Gregory John Casamento
027cb381bb
Adding logic to handle options.
2019-11-09 06:34:10 -05:00
Gregory John Casamento
6965067c3c
implement spell out function
2019-11-08 07:01:59 -05:00
Gregory John Casamento
94719e87ca
Initial part of formatting
2019-11-08 04:30:17 -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
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
f230b901a0
Merge branch 'master' of github.com:gnustep/libs-base
2019-11-05 20:30:52 -05:00
Gregory John Casamento
245e3927df
Merge branch 'NSLinguisticTagger_branch'
2019-11-05 20:30:36 -05:00
Gregory John Casamento
4a3de6cb47
Implement simple methods
2019-11-05 19:59:03 -05:00
Gregory John Casamento
e62e156b67
Add release to NSLinguisticTagger
2019-11-05 17:50:10 -05:00
Gregory John Casamento
e424e8dcc9
Init and release instance vars
2019-11-05 05:50:21 -05:00
Gregory John Casamento
f9d50db4d0
String constants
2019-11-05 05:13:18 -05:00
Gregory John Casamento
48e923168b
Add NSLinguisticTagger skeleton
2019-11-05 04:35:21 -05:00
Gregory John Casamento
d102775e2d
Implement remaining skeleton.
2019-11-05 04:28:43 -05:00
Gregory John Casamento
9db6e96413
Add dummy methods
2019-11-05 04:26:34 -05:00
Gregory John Casamento
30162a9a1e
Add NSOrthography and NSLinguisticTagger
2019-11-05 04:04:59 -05:00
Riccardo Mottola
e05c53f4b4
in stubs, return nil instead of an empty string, compatible with GCC
2019-11-03 23:08:07 +01:00
Gregory John Casamento
e6a764d7f9
Slightly modified to return bogus results
2019-11-02 19:13:13 -04: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
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
789ec9a039
Merge branch 'master' of github.com:gnustep/libs-base
2019-10-29 12:46:54 -04: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
Wolfgang Lux
13f7446a32
Prevent too early release
2019-10-29 11:58:18 +01:00
Wolfgang Lux
d704846c6f
Better handling of stream events while in a TLS handshake
2019-10-29 11:18:33 +01:00
Wolfgang Lux
cc50c639ae
Fall back to a sane default if the TLS priority setting is invalid.
2019-10-29 10:14:35 +01: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
9dba9ae1ca
Add TODO. Will will defer completion of these classes until I have time to complete the NSProcessInfo activity methods.
2019-10-29 00:27:21 -04:00
Gregory John Casamento
6ef18c3ec3
Start implementing scheduler
2019-10-28 14:31:42 -04:00
Wolfgang Lux
e9427a9e20
Prevent potential crash when a socket stream is closed while in a TLS handshake
2019-10-28 16:47:44 +01: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
a3fee06e0a
Compiling .m skeleton
2019-10-26 08:11:59 -04:00
Gregory John Casamento
aa8f60c30e
Initial empty skeleton
2019-10-26 07:45:19 -04:00
Fred Kiefer
2fb200b705
Merge branch 'master' into fix-enumeration-queue
2019-10-25 17:57:59 +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
Gregory John Casamento
517f2212c5
Correct spelling of header
2019-10-24 21:01:17 -04:00
Gregory John Casamento
a251bbbb58
Minor fixes
2019-10-24 19:38:19 -04:00
Gregory John Casamento
058762c8c5
Simplify method
2019-10-24 18:51:21 -04:00
Gregory John Casamento
2b3846e76d
Add TODOs
2019-10-24 18:22:10 -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
2e943461f8
Fix base unit value
2019-10-24 14:50:36 -04:00
Gregory John Casamento
4dc072a25a
Make initWithSymbol:coefficient:converter: into a full initializer. Use self instead of creating a new object.
2019-10-24 14:38:50 -04:00
Gregory John Casamento
0eb0c75022
Date interval fixes
2019-10-24 14:34:26 -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
de73db605c
Add dealloc
2019-10-24 00:17:10 -04:00
Gregory John Casamento
98830d3962
Add init
2019-10-24 00:03:40 -04: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
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
Gregory John Casamento
b4c24b8f8c
Fixed issues Fred pointed out
2019-08-05 19:44:37 -04:00
Gregory John Casamento
cb20153df4
Add logic to stop enumeration
2019-08-05 16:20:09 -04:00
Gregory John Casamento
904604b448
Skip a file if it's hidden and the flag is YES
2019-08-05 15:46:29 -04:00
Gregory John Casamento
69168d3661
Add new init method
2019-08-05 14:37:58 -04:00
Gregory John Casamento
a90a55a3ea
Fix suggestions made by Fred
2019-08-05 10:20:40 -04:00
Gregory John Casamento
52459ae2aa
Implementation of URLForDirectory:inDomain:...
2019-08-05 03:29:21 -04:00
Gregory John Casamento
8d35169311
Eliminate redundant _internal variable
2019-08-05 00:00:55 -04:00
Gregory John Casamento
54b86e303b
Fix issue with earlier versions of clang
2019-08-04 23:26:41 -04:00
Gregory John Casamento
93b4fed381
Add retain and release for block
2019-08-04 22:36:10 -04:00
Gregory John Casamento
12db1f62c7
Commit progress on NSFileManager
2019-08-04 22:19:28 -04:00
Gregory John Casamento
fe3968a9a1
Get initial skeleton to compile
2019-08-02 15:08:25 -04:00
Gregory John Casamento
1e2c87a9da
Merge branch 'master' into NSBlockOperation_branch
2019-08-02 13:36:56 -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
b970077e42
Eliminate pointless/annoying warning on line 111 regarding formatting
2019-08-02 09:44:31 -04:00
Gregory John Casamento
64a59aeb08
Initial implementation
2019-08-02 09:30:39 -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
a983e7222d
More implementation of NSProgress
2019-07-31 17:11:58 -04:00
Gregory John Casamento
c72ebff803
Implement initialization methods.
2019-07-31 00:08:45 -04:00
Gregory John Casamento
8e15239ff3
Add initial values
2019-07-30 13:24:06 -04:00
Gregory John Casamento
ae1890e7d6
Add initial values
2019-07-30 13:22:57 -04:00
Gregory John Casamento
f8e181d875
Add NSProgress.m... compiling.
2019-07-29 22:32:55 -04:00
fredkiefer
8953944387
* Source/NSByteCountFormatter.m: Fix to work in non fragile settings.
2019-07-28 17:30:42 +02:00
Gregory John Casamento
82a046ac85
Minor spacing change
2019-07-19 14:43:19 -04:00
Gregory John Casamento
c5a99a0e40
Add support for non-numeric and add test
2019-07-19 14:08:32 -04:00
Gregory John Casamento
361bd85d04
Implement adaptive method for NSByteCountFormatter
2019-07-19 08:57:02 -04: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
e5acbf27eb
Merge branch 'master' of github.com:gnustep/libs-base into NSByteCountFormatter_branch
2019-07-15 02:12:57 -04:00
fredkiefer
be809143cf
* Source/NSUbiquitousKeyValueStore.m: Change to use GNUstep
...
formatting. Move simple methods into base class. Correct the usage
of long long NSNumber.
2019-07-14 15:51:41 +02:00
Gregory John Casamento
bb117a17db
Add NSByteCountFormatter.[hm] class.
2019-07-14 01:28:42 -04:00
Gregory John Casamento
5254e73a09
Return self, not nil
2019-07-10 17:58:09 -04:00
Gregory John Casamento
d26270a909
Fix init
2019-07-08 09:09:04 -04:00
Gregory John Casamento
ee72e4b9c1
Fix issue with class method and correct test
2019-07-08 08:54:44 -04:00
Gregory John Casamento
ceda0104b4
Add stub for AWS service
2019-07-08 03:38:24 -04:00
Gregory John Casamento
9e53f0025b
Add stub for AWS service
2019-07-08 00:28:45 -04:00
Gregory John Casamento
b966c22295
Add stub for AWS service
2019-07-08 00:24:28 -04:00
Gregory John Casamento
74717fb954
Add dummy implementation
2019-07-06 03:46:37 -04:00
Gregory John Casamento
5dc7992a08
Fix error
2019-07-03 04:54:05 -04:00
Gregory John Casamento
f2d1c21d37
add new class and constants
2019-07-03 04:36:24 -04:00
Gregory Casamento
75f3f0b57d
Merge pull request #46 from gnustep/add_nsorderedset_classcluster
...
Add nsorderedset classcluster
2019-07-02 12:46:20 -04:00
Gregory John Casamento
458958554b
Fixed test
2019-07-02 01:00:41 -04:00
fredkiefer
d774dda8a7
* Source/GSXML.m (fatalErrorFunction): Use correct function to get
...
line number.
* Source/NSOperation.m (_execute): Surround with NS_DURING to free
lock on error.
2019-07-01 22:58:55 +02:00
fredkiefer
ce9116cad3
Delegate unclear methods to NSArray.
...
Some small clean up.
2019-07-01 22:11:36 +02:00
Gregory John Casamento
8b96545250
Merge branch 'add_nsorderedset_classcluster' of github.com:gnustep/libs-base into add_nsorderedset_classcluster
2019-07-01 09:11:10 -04:00
fredkiefer
fb3930df96
Implement fast enumeration for GSMutableOrderedSet.
...
Implement fast version of getObjects:range: in GSOrderedSet. This
gets used for fast enumeration.
Base the array method on fast enumeration.
2019-06-29 20:08:01 +02: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
fredkiefer
b8f8d6a617
Speed up lookup for GSOrderedSet by using a map.
2019-06-28 17:20:21 +02:00
fredkiefer
2a810e5bd9
Further simplification of code.
...
More formatting.
Delegate description to NSArray.
Remove unneeded method once more.
Remove all objects from the end not from the beginning.
Remove strange range check.
Implement missing sort method by reusing existing code.
2019-06-28 16:53:48 +02:00
Gregory John Casamento
b4f0e75375
Simplify removeObjectsAtIndexes:
2019-06-28 02:54:57 -04:00
Gregory John Casamento
80843a9e4b
Merged changes from other author
2019-06-28 01:55:33 -04:00
Gregory John Casamento
a5ba66b3ce
Simplify _removeObjectAtIndexes:count: method to not sort and thus make it faster
2019-06-28 01:50:54 -04:00
fredkiefer
7feb7be03a
Remove unused variables.
2019-06-27 16:21:34 +02:00
fredkiefer
8c10d1848e
Remove log statement accidentialy left over.
2019-06-27 16:17:26 +02:00
fredkiefer
eff6575d9f
Add test for isSubsetOfSet: and correct implementation to fit the test.
2019-06-27 15:26:01 +02:00
fredkiefer
3004e91330
Move some more methods from the concrete to the abstract class.
...
Move the _raiseRangeExceptionWithIndex:from: method the class
it is declared on.
Simplify the code.
2019-06-27 15:03:23 +02:00
fredkiefer
cbe54c4073
Remove commented out code.
2019-06-27 14:29:01 +02:00
fredkiefer
ce3c4ae882
Format according to GNUstep coding style.
2019-06-27 14:20:19 +02:00
fredkiefer
5b169f55b5
Correct retain/release handling for GSIArray
2019-06-27 14:19:37 +02:00
Gregory John Casamento
1c83220356
Made replaceObjectsAtIndexes:... more efficient
2019-06-27 04:57:25 -04:00
Gregory John Casamento
e2d3e67f16
Fixing comments by fred
2019-06-27 02:00:14 -04:00
Gregory John Casamento
ef438f7697
Minor cleanup of white space and header documentation.
2019-06-19 00:14:03 -04:00
Gregory John Casamento
39465cb904
Further simplify. Exception should also be thrown in only one place
2019-06-19 00:10:20 -04:00
Gregory John Casamento
d826bb5a25
Reduce repetitive implementation of the same algorithm in the code. Make sure that insertion happens in one method only
2019-06-18 22:07:11 -04:00
Gregory John Casamento
f2ba8a3093
Add macos archive test
2019-06-17 20:00:50 -04:00
Gregory John Casamento
353aa6c8e5
Remove white space
2019-06-17 12:15:26 -04:00
Gregory John Casamento
d20efecead
Add check for nil. Force use of subclass init methods
2019-06-17 11:57:18 -04:00
Gregory John Casamento
4edcc3f697
Fix #define issues.
2019-06-13 18:58:50 -04:00
Gregory John Casamento
7799824de6
Fix issues suggested by fred
2019-06-13 18:17:01 -04:00
Gregory John Casamento
9f4a5c80ed
Add exceptions to KVO methods for now
2019-06-13 07:37:31 -04:00
Gregory John Casamento
3278eaa2ca
Add new test, fix replaceObjectsAtIndexes:withObjects:
2019-06-13 06:00:40 -04:00
Gregory John Casamento
0a2f885456
Reimplement some methods to fix some issues.
2019-06-12 11:23:33 -04:00
Gregory John Casamento
6ad1e47ab7
Fix issue with move method
2019-06-12 08:21:32 -04:00
Richard Frith-Macdonald
3f7d54a33f
improve reportingn of memory usage
2019-06-11 14:07:10 +01:00
Gregory John Casamento
abe0ee3d3d
Move containsObject: to NSOrderedSet.m. Make additional changes to fix issues pointed out by Fred
2019-06-11 05:45:37 -04:00
Gregory John Casamento
c131f7ec34
More fixes suggested by fred
2019-06-10 15:25:11 -04:00
Gregory John Casamento
561f63c818
More fixes suggested by fred
2019-06-10 15:24:18 -04:00
Gregory John Casamento
ad5790b9e5
Move methods to abstract class. Implement setValue:...
2019-06-10 14:15:41 -04:00
Gregory John Casamento
268b2203c7
Correct issues brought up by Fred K.
2019-06-10 13:55:00 -04:00
Gregory John Casamento
d66ad25b50
Release objects
2019-06-10 11:02:48 -04:00
Gregory John Casamento
30aea6e5ad
Fix use range instead of count to save memory
2019-06-10 10:55:06 -04:00
Gregory John Casamento
966c31f43d
Fix a number of comments by Fred
2019-06-10 10:20:26 -04:00
Gregory John Casamento
d8030311d0
Fix issue with isSubsetOfOrderedSet:. Objects must be in the same order for the set to be considered a subset.
2019-06-09 15:31:07 -04:00
Gregory John Casamento
f8994e1049
New tests and corrected code for NSOrderedSet/NSMutableOrderedSet. Submitting for review.
2019-06-09 07:17:57 -04:00
Gregory John Casamento
d59a90206a
Finish NSDIctionary changes
2019-06-08 09:53:39 -04:00
Gregory John Casamento
e44bdf6718
Fix memory issue with initWithObjects:... Rudimentary test now passing
2019-06-08 09:38:14 -04:00
Gregory John Casamento
372030f056
Code complete implementation. No tests yet
2019-06-08 08:41:45 -04:00
Gregory John Casamento
c4345dc19a
Clean compilation with GSIArray backing concrete class
2019-06-08 08:07:17 -04:00
Gregory John Casamento
52e87bce81
Complete implementation of abstract class
2019-06-08 03:59:32 -04:00
Gregory John Casamento
f878243678
Sorting routines
2019-06-07 22:43:40 -04:00
Gregory John Casamento
2dccb2eee6
Add implementation of array and set methods.
2019-06-07 22:39:51 -04:00
Gregory John Casamento
bb6f7ceed8
Implement filteredOrderedSetUserPredicate
2019-06-07 12:57:08 -04:00
Gregory John Casamento
e97ecd6e03
Remove all extraneous implementation from concrete classes
2019-06-07 11:46:46 -04:00
Gregory John Casamento
dc89404f25
Move objects implemented
2019-06-07 11:33:54 -04:00
Richard Frith-Macdonald
42b404c586
documentation fixups
2019-06-07 12:23:35 +01:00
Richard Frith-Macdonald
2cc6877597
Remove spurious semicolons
2019-06-07 12:04:21 +01:00
Gregory John Casamento
e3299af3f0
Methods for subsets
2019-06-07 06:30:20 -04: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
6a7931f87e
Implementation of index methods
2019-06-07 05:23:44 -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
Frederik Seiffert
75850de0ff
Extended Android asset support
...
Added NSFileManager support for copying assets and reading their attributes.
2019-06-02 16:02:39 -07:00
Gregory John Casamento
3b97343204
Implement indexOfObject
2019-05-30 09:56:19 -04:00
Gregory John Casamento
04711a4f11
Implement firstObject, lastObject and enumeration methods.
2019-05-30 09:03:34 -04:00
Gregory John Casamento
40146d95cf
Fix issues with class encoding
2019-05-30 07:46:54 -04:00
Gregory John Casamento
2dfe8d924e
Implement more methods
2019-05-28 05:46:08 -04:00
Gregory John Casamento
09bae157fe
Implement more methods
2019-05-28 05:40:22 -04:00
Gregory John Casamento
f45a231211
Implement more methods
2019-05-28 05:09:13 -04:00
Gregory John Casamento
fc31e7a37c
Implement more methods
2019-05-28 04:49:59 -04:00
Gregory John Casamento
99753cc1a3
Remove errors and warnings.
2019-05-27 07:50:11 -04:00
Gregory John Casamento
2b7152fcde
Remove errors and warnings.
2019-05-27 07:40:18 -04:00
Gregory John Casamento
90efc7017a
Further implementation
2019-05-27 07:17:30 -04:00
Gregory John Casamento
2a511cca12
Further implementation
2019-05-27 06:05:19 -04:00
Frederik Seiffert
409030a367
Extended NSBundle localizations method for Android.
2019-05-24 10:56:34 +02:00
Frederik Seiffert
ca76053c8e
Fixed Android asset language logic in NSBundle.
2019-05-24 09:53:01 +02:00
Frederik Seiffert
9f01876102
Added option to specify Android asset reading mode.
2019-05-24 09:29:24 +02:00
Frederik Seiffert
ba4948fd97
Moved Android asset reading code path in NSData.
...
No reason to get path file system representation first.
2019-05-24 09:28:10 +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
rfm
fa34c66e25
Merge pull request #42 from triplef/nsthread-spinlock-builtin
...
Added basic spinlock implementation using builtins.
2019-05-20 14:47:33 +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
61a9dc8a13
Implemented isEqual...
2019-05-19 01:31:15 -04:00
Gregory John Casamento
496c9a63e2
Implemented isEqual...
2019-05-19 00:19:19 -04:00
Gregory John Casamento
b61aa7bb96
Implement NSCoding, add GSOrderedSet
2019-05-18 04:01:11 -04:00
Gregory John Casamento
56785613f1
Implement NSCoding, add GSOrderedSet
2019-05-18 03:56:11 -04:00
Gregory John Casamento
33ae3a3f66
Eliminate errors.
2019-05-17 20:37:19 -04:00
Gregory John Casamento
d96ac7f32a
Barebones skeleton compiling now.
2019-05-17 20:17:10 -04: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
Frederik Seiffert
cecb41958b
Always use syslog for NSLog on Android.
...
As there is no way to access stdout/stderr on Android, and syslog is available and outputs to the system log (accesible using "adb logcat"), this improves the developer experience when developing for Android by enabling NSLog output without having to set the "GSLogSyslog" flag.
2019-05-08 10:52:06 +02:00
Frederik Seiffert
3a97bb08f4
Added basic spinlock implementation using builtins.
...
This will be used on platforms without pthread_spin_lock(), e.g. Android targeting API level < 24.
Implementation lifted from spinlock.h in libobjc2.
2019-05-07 17:40:41 +02:00
Richard Frith-Macdonald
8ed7ccea9e
Cleanups to avoid code conflicts and buffer overrun fixes.
2019-04-16 08:07:16 +01:00
Gregory John Casamento
665bdcf952
Add test for emoji's back in.
2019-04-13 04:52:48 -04:00
Gregory John Casamento
b147a64ff5
Remove semicolons as mentioned by Fred
2019-04-12 09:12: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
f1b48541ae
Fix issue with character set caching.
2019-04-12 06:57:40 -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
574fc45c0b
Initial, untested implementation of stringByRemovingPercentEncoding.
2019-04-09 04:39:55 -04:00
Gregory John Casamento
fc13419877
Correct implementation of method.
2019-04-09 03:51:41 -04:00
Gregory John Casamento
9e960dfcd2
Correct method names
2019-04-09 03:28:35 -04:00
Gregory John Casamento
613d90c193
Initial/untested implementation of new string function.
2019-04-09 02:28:54 -04:00
Gregory John Casamento
b1f47e6f22
Added new character set implementations
2019-04-09 00:59:59 -04:00