Commit graph

12991 commits

Author SHA1 Message Date
Gregory John Casamento
be38c72d44 Complete NSOperation documentation, quick change 2024-11-08 20:53:05 -05:00
rfm
fe5efb6aa2 OSX 10.15 file offset methods 2024-11-08 15:19:40 +00:00
rfm
4b3315111b Update FSF address 2024-11-08 14:52:49 +00:00
rfm
a8e453fe7e
Merge pull request #440 from gnustep/agsdoc-html-style
Agsdoc html style update
2024-11-08 14:48:10 +00:00
rfm
75fe3d2e8d Fix FSF address 2024-11-08 13:35:48 +00:00
rfm
4961287024 issue 325 2024-11-08 11:52:27 +00:00
rfm
99fe8d65e8
Merge branch 'master' into agsdoc-html-style 2024-11-08 10:38:37 +00:00
rfm
3a8f231f2e Fix over-long line 2024-11-08 10:34:53 +00:00
rfm
f180575e37 Fix for issue 459 2024-11-08 10:33:32 +00:00
rfm
7cc1c72ac6 Update FSF address 2024-11-08 10:33:32 +00:00
rfm
3bb612d67a Revert 2024-11-08 10:33:32 +00:00
rfm
b8d0003b43 Update FSF address as requested by Gregory 2024-11-08 10:33:32 +00:00
rfm
c876f918a0 Add tests for -earlierDate: and -laterDate: with equal time instants and where tartget/receiver are different classes. 2024-11-08 10:33:32 +00:00
rfm
0271f62ab2 Fix for issue 452 2024-11-08 10:33:32 +00:00
rfm
ca84bde33b Add a bit of information about handler callback methods to comments/docs. 2024-11-08 10:33:32 +00:00
rfm
d0bff27c77 Tweaks to NSDate changes 2024-11-08 10:33:32 +00:00
rfm
7a59450341 Reapply "Implement NSDate as a small object (tagged pointer) - clang/libobjc2 only (#451)" because of GUI breakage: apps hang when loading NSMenu
This reverts commit cac43f7bfc.
2024-11-08 10:33:32 +00:00
rfm
dfc7781b26 Fixup equality tests for dates 2024-11-08 10:33:32 +00:00
Riccardo Mottola
fab621bb2d Revert "Implement NSDate as a small object (tagged pointer) - clang/libobjc2 only (#451)" because of GUI breakage: apps hang when loading NSMenu
This reverts commit 8fd2c06ddd.
2024-11-08 10:33:32 +00:00
Hugo Melder
d53a732576 NSThread: Implement +detatchThreadWithBlock: and -initWithBlock: (#454)
* NSThread: Implement +detatchThreadWithBlock: and -initWithBlock:

* Remove extraneous include

* NSThread: Define GSThreadBlock so that GCC stub impl does not fail

* Add missing spaces - trivial style fixup

---------

Co-authored-by: rfm <richardfrithmacdonald@gmail.com>
2024-11-08 10:33:32 +00:00
rfm
0e6829579a NSObject shouldn't support NSCoding 2024-11-08 10:33:32 +00:00
rfm
1ad65abdaa Fix for issue 453 2024-11-08 10:33:32 +00:00
rfm
490791a5e0 fix missing space 2024-11-08 10:33:32 +00:00
Hugo Melder
ab5d06da6a NSKeyValueCoding: Safe-Caching for -[NSObject valueForKey:] (#445)
* KVC Caching Implementation

* Do not ignore struct name when comparing type encoding as NSPoint and NSSize have the same layout

* Use fast-path when using Objective-C 2

* Guard old ValueForKey function when using the fast-path

* Add basic NSKeyValueCoding tests

* Update Copyright Years

* NSKeyValueCoding+Caching: Add Versioning to IVar Slot

* safe_caching: Remove Guards

* Add type encoding helper header

* Rename geometry structs (NSRect, NSPoint, NSSize) for toll-free bridging with CoreGraphics

* Move CG struct definitions to CFCGTypes.h

* Update known struct encoding prefixes

* Windows 64-bit is LLP64 and not LP64

* Re-order to avoid complier warning

---------

Co-authored-by: rfm <richardfrithmacdonald@gmail.com>
2024-11-08 10:33:32 +00:00
rfm
3e55c3b296 safety fix in case code incorrectly tries to use the reuslt of forwarding a method to the undo manager. 2024-11-08 10:33:32 +00:00
hmelder
313b9b5610 Add missing return value 2024-11-08 10:33:32 +00:00
Hugo Melder
f940412e0e NSString: Fix -commonPrefixWithString:options: behaviour (#455)
* Update changelog

* NSString: fix -commonPrefixWithString:options: behaviour

* NSString: More test cases
2024-11-08 10:33:32 +00:00
Hugo Melder
01b719f2af Implement NSDate as a small object (tagged pointer) - clang/libobjc2 only (#451)
* Implement GSSmallObject Class

* Remove private concrete class access

* Change secondary bias

* NSDate: Get interval from rhs object in comparison

* Add prefix to CONCRETE_CLASS_NAME  macro
2024-11-08 10:33:32 +00:00
rfm
0ad7e3f8ef Make files closer to gnustep coding style (automated fixups using uncrustify) 2024-11-08 10:33:32 +00:00
rfm
f6c0c5a5c0 Improve errors for copying. 2024-11-08 10:33:32 +00:00
Sebastian Reitenbach
303a6eb975 Add some missing NSURLErrorDomain constants, as described here:
https://web.archive.org/web/20131113010445/https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/Reference/reference.html
2024-11-08 10:33:32 +00:00
Hugo Melder
d10ee1bf64 Fix CI and make libcurl a hard-dependency when using libobjc2 (#447)
* Do not enable Win32 threads and locks when using GCC

* Fix compiler check when CC has arguments appended

* Add NSConstantString literal as global variable to avoid linker error

* Make libcurl a hard-dependency on ObjC 2.0 Toolchain

* Bump TOOLS_WINDOWS_MSVC_RELEASE_TAG

* Remove x86 runner for MSVC toolchain

* Add libcurl to MinGW x64 Clang toolchain

* MSVC toolchain requires Windows 1903 and newer but windows-2019 runner is Redstone 5 (1809)

* MinGW GCC adds .exe suffix

* Some tests timeout after 30s. Increase timeout

* Mark late unregister as hopeful on Win32 with GCC

* Mark NSURL test depending on network connection as hopeful
2024-11-08 10:33:32 +00:00
Riccardo Mottola
a746ad3d14 encode angular brackets to fix gsdoc error 2024-11-08 10:33:32 +00:00
Sebastian Reitenbach
cb40529b12 Add typedef NSKeyValueChangeKey to NSKeyValueObserving.h (#444) 2024-11-08 10:33:32 +00:00
Hugo Melder
3333d9fb73 NSString: Cache ICU collator in thread-local storage (#450)
* Add ICU collator caching

* Update ChangeLog
2024-11-08 10:33:32 +00:00
hmelder
4edbe633d4 Fix typo in ifdef 2024-11-08 10:33:32 +00:00
Hugo Melder
3c34150e05 NSOperationQueue: Proper names for worker threads (#437)
* NSOperationQueue: Give Worker Threads a name

* Update Changelog

* Remove empty string test
2024-11-08 10:33:32 +00:00
hmelder
7667d0c3c4 NSThread: Add warning when truncating thread name 2024-11-08 10:33:32 +00:00
Hugo Melder
b177fa5f01 Add Branch Prediction Macros and Error checks in Android Initialisation (#438)
* Add Branch Prediction Macros

* Rigorous Error Handling when using JNI
2024-11-08 10:33:32 +00:00
rfm
7c2ccb3035 avoid compiler warning 2024-11-08 10:33:32 +00:00
rfm
a1913e5540 NSURLSession rewrite (#422)
* clang-format: Do not use tabs

* Ignore clangd cache and compile_commands

* NSBlockOperation: Fix memory leak

* NSHTTPCookie: Fix expires date parsing

* NSHTTPCookie: Release DateFormatter after use

* NSOperation: Remove all objects at end of execution

* Reimplementation of NSURLSession

* NSURLSession: Update expiration dates in test

* Update ChangeLog

* Fix trivial compiler warning caused by missing import

* Import GSDispatch.h for definition of DISPATCH_QUEUE_SERIAL

* Import common.h early to avoid header conflict

* Fix import order to avoid conflicts and ensure we have correct localisation macro

* Check for presence of dispatch_cancel

* Cancel timer using dispatch_source_cancel() if dispatch_cancel() is missing.

* NSURLSession: Replace dispatch_io with dispatch_source in unit test HTTP server

---------

Co-authored-by: hmelder <service@hugomelder.com>
2024-11-08 10:33:32 +00:00
Hugo Melder
e3208590b1 NSThread: Fix threadPriority and setThreadPriority: on Android by using setpriority instead of pthread (#436)
* Update Changelog

* Use {get, set}priority for -[NSThread setThreadPriority] on Android
2024-11-08 10:33:32 +00:00
Hugo Melder
e774d7cec8 Modernise Windows Paths in configure.ac and use 'short' output of relative_paths.sh by default (#431)
* Modernise m4 scripts

* Replace "C:\Documents and Settings" with "C:\Users"
2024-11-08 10:33:32 +00:00
Hugo Melder
7922051140 Remove MinGW 32-bit CI (#434)
* CI: Enable automatic Mirror Updates for MSYS2 and bump libobjc2 rt version

* Remove MinGW 32-bit CI and pin runtime version at 2.0
2024-11-08 10:33:32 +00:00
Gregory John Casamento
1d32b92e6b Quick fix: Correct documentation for NSUbiquitousKeyValueStore class 2024-11-08 10:33:31 +00:00
Earl Robsham
3e808dc173 Update -[NSMutableArray removeLastObject] (#433)
* Update `-[NSMutableArray removeLastObject]`

Updates the following implementation to avoid raising an exception if the array is already empty (or notifying observers if applicable):
 * `-[NSMutableArray removeLastObject]`
 * `-[GSMutableArray removeLastObject]`
 * `-[NSKeyValueMutableArray removeLastObject]`
 * `-[NSKeyValueIvarMutableArray removeLastObject]`

This brings the behavior of `-[NSMutableArray removeLastObject]` inline with the Apple implementation, improving compatibility for code bases which use both GNUStep and Apple objc/Foundation implementations.

* Add `-[NSMutableArray removeLastObject]` test case

Adds a test case to ensure `-[NSMutableArray removeLastObject]` does not raise an exception when called on an empty array.
2024-11-08 10:33:31 +00:00
rfm
c3b208a85a avoid compiler warning 2024-11-08 10:33:31 +00:00
rfm
7dfdabd675 Supply function pointer prototype to avoid compiler warnings 2024-11-08 10:33:31 +00:00
rfm
9df544fffc Fix for issue 459 2024-11-08 10:10:20 +00:00
rfm
82bd12198e Update FSF address 2024-11-08 10:10:03 +00:00