Commit graph

2689 commits

Author SHA1 Message Date
Frederik Seiffert
fd7f11a134 Support deleting NSMutableURLRequest headers by calling setValue:forHTTPHeaderField: with nil value. 2023-11-14 23:04:42 +01:00
rfm
b4feee311f Fix for #334 2023-11-14 21:20:50 +00:00
rfm
58397df4bc Merge branch 'autogsdoc-improvements'
Adds ObjC2 support and various bugfixes
2023-11-14 20:00:36 +00:00
rfm
ae9892db11 Use closefrom() if available 2023-11-14 11:34:55 +00:00
Riccardo Mottola
96ed084569 header cleanup for documentation: copyrights, texinfo comments, etc 2023-11-13 22:38:16 +01:00
rfm
086ea5d04e Changes to avoid autogsdoc warnings 2023-11-13 20:16:46 +00:00
rfm
c9b878ba54 Fixup macro to be on one line (for autogsdoc) 2023-11-13 20:04:25 +00:00
hmelder
a66d25598e NSObject: Change return type of setVersion: from id to void 2023-11-13 20:01:11 +01:00
rfm
40ebe6df30 Minore documentation cross reference fixes 2023-10-30 19:55:45 +00:00
rfm
e027ff8585 Minor documentation tweaks 2023-10-30 16:56:05 +00:00
rfm
44dc5cef3d Documentation error tweaks 2023-10-30 16:09:10 +00:00
rfm
e58f37337c Fix empty preprocessor directive 2023-10-30 13:56:21 +00:00
rfm
112c60b48b Tweaks to make preprocessor documentation more reliable 2023-10-30 12:27:25 +00:00
rfm
384a0de0ba Fix minor documentation errors 2023-10-28 15:38:22 +01:00
rfm
a881fc25f3 Merge branch 'autogsdoc-improvements' of ssh://github.com/gnustep/libs-base into autogsdoc-improvements 2023-10-23 20:57:53 +01:00
rfm
4c4397bdcd fix bad comment markup 2023-10-23 20:49:19 +01:00
Riccardo Mottola
02262e9ac0 some cleanup for autogsdoc 2023-10-23 21:41:59 +02:00
Frederik Carlier
1f2eba393c Use __has_include to choose between <Block.h> and <objc/blocks_runtime.h>
Most Linux distributions and MSYS2 include a version of BlocksRuntime which includes the `Block.h` header.
2023-10-08 20:19:25 +02:00
Gregory Casamento
e58b83c1f3
Merge pull request #330 from gnustep/NSKeyValueObserving_issue327 2023-10-08 05:49:59 -04:00
Gregory John Casamento
f2e31e0b54 Move implementation of new method to correct category 2023-10-07 20:51:47 -04:00
Gregory John Casamento
edc15778d2 Add removeObserver:fromObjectsAtIndexes:forKeyPath:context: method 2023-10-07 20:51:47 -04:00
Frederik Carlier
673a6880ee Win64: Remove workaround for setjmp/longjmp misbehaving
Using `__builtin_setjmp` when compiling with Clang on MSYS2 will result in compiler warnings and runtime crashes.
Additionally, all tests seem to pass on recent versions of MSYS2 without this workaround in place.

Compiler warning on Clang:

warning: incompatible pointer types passing 'jmp_buf' (aka 'struct _SETJMP_FLOAT128[16]') to parameter of type 'void **' [-Wincompatible-pointer-types]
                NS_DURING
                ^~~~~~~~~
note: expanded from macro 'NS_DURING'
                    if (!setjmp(NSLocalHandler.jumpState)) {
                                ^~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'setjmp'
                                         ^
1 warning generated.
2023-10-07 17:35:54 +02:00
Richard Frith-Macdonald
24653e63c3 Ensure sockaddr_any is future proof for new socket addresse sizes on
platforms where sockaddr_storage is provided
2023-09-24 12:26:59 +01:00
Riccardo Mottola
5773700b93 some date cleanup for updated doc generation 2023-09-21 01:27:10 +02:00
Gregory Casamento
0f3bb3d2b8 Use keysight implementation of the method removeObjserver:forKeyPath:context: 2023-09-15 14:13:44 -04:00
Gregory John Casamento
2c81d3e003 Add removeObserver:forKeyPath:context: to implementation 2023-09-13 12:49:01 -04:00
Richard Frith-Macdonald
c1833e1130 Github issue #312 ... add thread safety for Apple compatibility 2023-08-18 11:21:24 +01:00
Frederik Seiffert
668d6c4977 Change NSNumberFormatter minimum/maximum properties from NSDecimalNumber to NSNumber to match Apple platforms 2023-08-10 12:20:06 +02:00
Frederik Seiffert
f0e33a48d5 Fix NSFileManager thread safety 2023-07-26 11:56:04 +02:00
Gregory John Casamento
7a76635360 Revert "Add method declarations to NSUserActivity"
This reverts commit 32cda86b09.

Accidentally committed to master.
2023-05-23 19:56:05 -04:00
Gregory John Casamento
32cda86b09 Add method declarations to NSUserActivity 2023-05-23 19:54:45 -04:00
Gregory John Casamento
6fbaa7ca33 Update macOS version to 10.10 as per documentation. Minor update 2023-05-23 15:16:56 -04:00
Frederik Seiffert
f3555406af Add stub methods for secure unarchiving 2023-05-10 06:59:40 +02:00
Frederik Seiffert
b1e43eb5dd Add OSX version defines for 10.15 - 13 and fix 10.10 - 10.14 to match Apple platforms 2023-05-10 06:59:40 +02:00
Frederik Seiffert
82d9917c2c NSURLSession: implement missing body data for data completion handlers
Now using the previously unused "in-memory" body data drain if a task has a completion handler, which requires the full body to be passed on completion.

Also consolidated private NSURLSessionTask methods, some of which were previously implemented twice in separate categories with the same name, leading to possible undefined runtime behavior.
2023-03-11 20:22:00 +01:00
Frederik Seiffert
2f5b26df06 Add missing NSURLSession APIs 2023-03-11 20:22:00 +01:00
Doug Simons
bf586eca1b implement setAttributes:ofItemAtPath:error: method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/gnustep_testplant_branch@40428 72102866-910b-0410-8b05-ffd578937521
2022-12-09 15:58:39 +01:00
Richard Frith-Macdonald
d5d8a71c79 Allow certificate based rejection of DO connection attempts. 2022-11-21 10:40:33 +00:00
rfm
a9901204e2
Merge pull request #269 from gnustep/libcurl-autoconf
Rewrite autoconf libcurl detection
2022-11-21 10:30:41 +00:00
Richard Frith-Macdonald
78642305c6 Fix for occasional hang 2022-11-07 10:03:16 +00:00
Richard Frith-Macdonald
b1da997d25 Revert "tweaks to build on osx" ... made in wrong branch
This reverts commit 73a6e17dc1.
2022-08-25 09:54:07 +01:00
Richard Frith-Macdonald
79d3d7b498 fix error editing constant name 2022-08-25 09:49:24 +01:00
Richard Frith-Macdonald
86461e2c95 tweaks to build on OSX 2022-08-25 09:45:34 +01:00
Richard Frith-Macdonald
73a6e17dc1 tweaks to build on osx 2022-08-25 09:22:48 +01:00
Hugo Melder
c53f41cc27 Regenerate autoconf 2022-08-23 03:53:54 -07:00
Gregory Casamento
e835725b86
Merge pull request #251 from gnustep/nstask_updates 2022-06-17 02:21:22 -04:00
Richard Frith-Macdonald
fa27828206 Remove duplicate 2022-06-16 13:32:13 +01:00
Richard Frith-Macdonald
86790ff966 Add some more recent appl error codes 2022-06-16 12:26:39 +01:00
Gregory John Casamento
bcc87bccda Implement 10.13 methods for NSTask 2022-06-08 14:09:09 -04:00
Gregory John Casamento
6c7386f5e1 Add new methods for NSTask 2022-06-07 21:32:11 -04:00
Gregory John Casamento
cc38f2f4a1 Import NSString.h to fix issue that occurs in libs-gui/Source/NSFontAssetRequest.m -- fix suggested by @triplef 2022-04-30 05:56:51 -04:00
Frederik Seiffert
6de8384ea5 Fix NSDictionary forward declaration in NSProgress.h 2022-04-30 11:00:10 +02:00
Frederik Seiffert
ba71c24cad Fix forward declarations in NSProgress.h 2022-04-30 09:54:00 +02:00
Frederik Seiffert
8ca4381676 Add userInfo accessor to NSProgress. 2022-04-29 19:54:09 +02:00
Gregory John Casamento
e99dd4ec6b Add implementation for getEra:... and getHour:... method in NSCalendar. Add documentation to all methods. 2022-04-06 14:19:36 -04:00
Gregory John Casamento
71e07e1a82 Add component:fromDate: 2022-04-04 23:57:10 -04:00
Gregory John Casamento
cb87724a21 Add 10.9 methods for getEra:..., getHour:... etc 2022-04-04 19:26:22 -04:00
Gregory John Casamento
95a24fb651 Add new methods for NSIndexPath. Add row, section, item and new init methods 2022-03-07 07:35:12 -05:00
Gregory John Casamento
77e6315e2e Correct issues as discussed in PR by Fred and Richard. 2022-03-06 20:59:27 -05:00
Gregory John Casamento
f42def6ea5 Add necessary methods to NSIndexPath to support NSCollectionView with layouts. Needed item,section information in NSIndexPath object 2022-03-03 02:26:33 -05:00
rfm
7187cab003
Merge pull request #240 from triplef/instancetype-and-generics
Annotated various methods with instancetype and generics
2022-02-18 11:52:44 +00:00
Richard Frith-Macdonald
c76ebf2962 Replaced IF_NO_GC() macro calls with the more descriptive IF_NO_ARC()
and deprecate it.  Searched for and removed obsolete references to
garbage collection in comments and documentation.
2022-02-17 10:08:18 +00:00
Frederik Seiffert
829a39663c Annotated various methods with generics 2022-02-14 12:44:35 +01:00
Frederik Seiffert
20152fc291 Update NSString header to use "instancetype". 2022-02-14 10:15:09 +01:00
Richard Frith-Macdonald
3bc05ad580 Patch by Larry Campvell for git #237 2022-02-12 13:06:23 +00:00
Gregory Casamento
9c129a1e7f
Merge pull request #207 from Fokka-Engineering/swift-compatibility 2022-01-09 12:31:17 -05:00
Gregory John Casamento
28f5c4fb50 Definition of NS_INLINE 2022-01-08 16:09:45 -05:00
Richard Frith-Macdonald
81ad2f403b Reinstate removed string encodings. 2022-01-04 10:12:58 +00:00
Fred Kiefer
e797128a03
Merge pull request #226 from levinli303/master
Support more DOS/Windows string encodings
2021-12-26 13:08:56 +01:00
Levin Li
fe2f41c7f1 Use encoding number values from Apple 2021-12-26 14:22:04 +08:00
Levin Li
ca6145efdd Support more DOS/Windows encodings 2021-12-25 16:36:18 +08:00
rfm
5f259c1658
Merge pull request #222 from iamleeg/nsdebugenabled
Add the NSDebugEnabled boolean
2021-12-21 08:55:51 +00:00
rfm
4db3f5c881
Merge pull request #220 from levinli303/patch-1
Do not call handler blocks if they are nil
2021-12-21 08:39:38 +00:00
Steven R. Baker
7525d942b7 Add the NSDebugEnabled boolean 2021-11-30 21:14:29 +00:00
Richard Frith-Macdonald
0950bed43b Tweak whitespace for code consistency 2021-11-29 14:01:41 +00:00
Frederik Seiffert
eea7d47a77 Restrict NS_FORMAT_ARGUMENT() to Clang.
Causes warning with recent GCC:
'format_arg' attribute directive ignored [-Wattributes]
2021-11-29 10:02:02 +01:00
Richard Frith-Macdonald
14a3ff4907 Fixup whitespace to conform to normal convention 2021-11-24 16:44:40 +00:00
Levin Li
5b151c5fa0 Do not call handler blocks if they are nil 2021-11-23 18:34:34 +08:00
Gregory John Casamento
52065cad9a Remove white space 2021-11-21 03:42:47 -05:00
Gregory John Casamento
ca7aed5427 Correct error. Add NSInputStream forward reference 2021-11-21 03:33:59 -05:00
Gregory John Casamento
eb743541aa Add NSConnectionDataDelegate protocol and NSRequestNetworkServiceType 2021-11-21 02:16:24 -05:00
Frederik Seiffert
87783e2513 Annotate NSBundle localized string function with NS_FORMAT_ARGUMENT. 2021-11-11 16:41:50 +01:00
Richard Frith-Macdonald
b55ee6b0c5 Clarify that run loop watchers are NOT retained, and are responsible for removing themselves from the run loop when they have finished watching for events. 2021-11-11 10:01:52 +00:00
Frederik Seiffert
47480d781a Add missing export declarations required by libs-gui on Windows MSVC 2021-10-26 10:28:51 +02:00
Nuntius
a906d29ffd Add NS_SWIFT_NOTHROW and NS_NOESCAPE 2021-09-27 17:25:19 +02:00
Nuntius
d3e40dfc9d Begin implementation of NSURLSessionDownloadTask 2021-08-27 21:56:08 +02:00
rfm
1e8ff8e628
Merge branch 'master' into nstimezone 2021-08-18 14:52:24 +01:00
Richard Frith-Macdonald
1fe008304a Formatting tidyups 2021-08-18 14:03:25 +01:00
Nuntius
ca5e4fc239 Adjust formatting 2021-08-17 15:03:09 +00:00
Nuntius
c3daa41f2d Fix indentation 2021-08-17 13:57:37 +00:00
Nuntius
9b3caf99fd Implement 10.11 NSURL initFileURLWithPath: initializers 2021-08-17 10:30:19 +00:00
Frederik Seiffert
a9d601746f Silence warning in GSIMap.h 2021-08-11 19:32:21 +02:00
Richard Frith-Macdonald
5162d888dc timezone updates for version2 files 2021-08-11 08:43:20 +01:00
Frederik Seiffert
35ef9423e0 Annotate callback functions with __stdcall on Windows
Fixes crash on exit on Windows x86.
2021-08-08 17:27:40 +02:00
Frederik Seiffert
b969347587 Use pkgconfig to find libxslt 2021-08-03 16:55:56 +02:00
Frederik Seiffert
dc32970502 Add support for using ICU DLL from Windows 10
Requires Windows 10 version 1903 (May 2019 Update):
https://docs.microsoft.com/en-us/windows/win32/intl/international-components-for-unicode--icu-

Also adds missing configure check for unicode/utext.h.
2021-08-03 16:52:38 +02:00
Frederik Seiffert
abfe4e2a04 Use native threading and locking APIs on Windows
Removes dependency on pthread library and uses fast Slim Reader/Writer (SRW) locks for NSLock/NSRecursiveLock/NSCondition/NSConditionLock as well as all internal locks. Adds GS_MUTEX_*() macros in GSPThread.h, that are being used for all internal locking instead of pthread APIs.

Also adds support for thread priorities on Windows, fixes method signature of +[NSThread setThreadPriority:] to match Apple platforms, and adds error handling in same method.
2021-07-29 14:22:27 +02:00
Richard Frith-Macdonald
3b8bbb00ba Try to make timezone parsing more robust: always use standard header for posix time zone files. 2021-07-29 10:35:19 +01:00
Frederik Seiffert
813ae35d39 Export GSPathHandling() in GNUstep headers.
Fixes linker errors for some tests under Windows MSVC.
2021-07-14 10:09:45 +02:00
Frederik Seiffert
31ad6693ee Add missing GS_EXPORT_CLASS for GSXMLRPC. 2021-07-14 10:09:45 +02:00