NSPointerArray: Implement fast enumeration (#477)

* NSPointerArray: Implement NSFastEnumeration

* NSPointerArray: Test for duplicate values in array

* NSPointerArray: Fast enumeration tests
This commit is contained in:
Hugo Melder 2024-12-13 03:01:07 -08:00 committed by GitHub
parent 4a4a802060
commit 4b3bd1aa90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 89 additions and 2 deletions

View file

@ -42,7 +42,7 @@ extern "C" {
* or grow (adding nil/zero items).
*/
GS_EXPORT_CLASS
@interface NSPointerArray : NSObject <NSCopying, NSCoding>
@interface NSPointerArray : NSObject <NSCoding, NSCopying, NSFastEnumeration>
/** Allocate an instance, initialise using initWithOptions: and
* return it autoreleased.