Граф коммитов

265 Коммитов

Автор SHA1 Сообщение Дата
Alex Soto 132d5694d6
[ScreenCaptureKit] Add ScreenCaptureKit bindings up to Xcode 13.3 (#14644)
* [ScreenCaptureKit] Add ScreenCaptureKit bindings up to Xcode 13.3

* Use more appropriate exceptions.

* Remove ScreenCaptureKit from Mac Catalyst.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-04-05 20:16:31 -04:00
Chris Hamons 612c32ca20
[metalperformanceshaders] Add one troublesome missing method (#14557)
- Fixes https://github.com/xamarin/xamarin-macios/issues/14450
- There is a significant amount of additional bindings to be done, but this way
we at least get the trivia one in now.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-04-04 11:08:55 -05:00
Manuel de la Pena 46af411d1c
[Foundation] Allow null parameters when creating a NSUrl from a string. (#14603)
The headers do not say that a null parameter is allowed, but the
documentation and tests state otherwise:

https://developer.apple.com/documentation/foundation/nsurl/1572047-urlwithstring

The URL string with which to initialize the NSURL object. Must be a URL that conforms to RFC 2396. This method parses URLString according to RFCs 1738 and 1808.
2022-04-02 15:13:52 -04:00
Rolf Bjarne Kvinge e191c613ce
[Foundation] Enable nullability in NSUrlSessionHandler. (#14597) 2022-04-01 14:48:57 +02:00
Rolf Bjarne Kvinge 1c4a64c0c4
[EventKitUI] Add this framework to Mac Catalyst. (#14374)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-04-01 14:29:30 +02:00
Rolf Bjarne Kvinge 23737939db
[CarPlay] Ignore this framework on Mac Catalyst. (#14381)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-03-31 14:20:50 +02:00
Rolf Bjarne Kvinge 77bac878d6
[IdentityLookupUI] Add this framework to Mac Catalyst. (#14385)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-03-31 14:20:08 +02:00
Rolf Bjarne Kvinge e687c20dd6
[AppClip] Add this framework to Mac Catalyst. (#14378)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-03-31 13:52:52 +02:00
Rolf Bjarne Kvinge 7cfc86d159
[CoreLocationUI] Add this framework to Mac Catalyst. (#14382)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-03-31 12:49:34 +02:00
Rolf Bjarne Kvinge 38528043d1
[AddressBookUI] Ignore this framework on Mac Catalyst. (#14377)
It exists, and is apparently usable, but it's already deprecated (and it's been deprecated on iOS for a while):

"Do not use the AddressBookUI framework in iOS 9 and later. Use the APIs defined in the Contacts UI framework instead."

Ref: https://developer.apple.com/documentation/addressbookui

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-03-31 11:17:03 +02:00
Rolf Bjarne Kvinge 209942854f
[WatchConnectivity] Ignore this framework on Mac Catalyst. (#14384)
I'm not sure if WatchConnectivity is of any use on Mac Catalyst,
so until proven it's useful, ignore it.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-03-31 10:54:29 +02:00
Rolf Bjarne Kvinge 704006f6db
[HealthKitUI] Add this framework to Mac Catalyst. (#14371)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-03-31 10:42:40 +02:00
Rolf Bjarne Kvinge 350913647a
[CoreNFC] Add this framework to Mac Catalyst. (#14383)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-03-31 10:42:03 +02:00
Rolf Bjarne Kvinge bf05f39f37
[xtro] Unify the <platform>-CHIP.ignore files into a common-CHIP.ignore file. (#14401) 2022-03-21 10:16:07 +01:00
Alex Soto c7dc47ed59 [ScreenCaptureKit] Add new Framework to todo 2022-03-14 22:54:34 -04:00
Alex Soto 60f012c328 [ReplayKit] Update bindings up to Xcode 13.3 Beta 3 2022-03-14 22:54:34 -04:00
Alex Soto edc55e0283 [ProximityReader] Ignoring this framework nothing useful to bind 2022-03-14 22:54:34 -04:00
Alex Soto 31970e83c8 [Network] Add Framework to todo 2022-03-14 22:54:34 -04:00
Alex Soto e24151b438 [MetalPerformanceShadersGraph] Add Framework to todo
We can update it once https://github.com/xamarin/xamarin-macios/pull/14303 lands
2022-03-14 22:54:34 -04:00
Alex Soto 5ca983925d [MediaSetup] Add MacCat framework to the todo list 2022-03-14 22:54:34 -04:00
Alex Soto cf0cabbf64 [CoreMotion] Update bindings up to Xcode 13.3 Beta 3 2022-03-14 22:54:34 -04:00
Alex Soto f1257d8095 [CoreMediaIO] Add new macOS framework to todo 2022-03-14 22:54:34 -04:00
Alex Soto 858c60474e [CellularDataDiagnosticsSuite] Wait to bind this new one until GA 2022-03-14 22:54:33 -04:00
Alex Soto 03bdc33103 [CarPlay] Update bindings up to Xcode 13.3 Beta 3 2022-03-14 22:54:33 -04:00
Alex Soto 7efe7bee2d [AppKit] Update xtro annotations of unbound API 2022-03-14 22:54:33 -04:00
Alex Soto 019ec18bc6 [xtro] Fix xtro annotations
Ignoring CHIP framework for now since it is not stable just yet
and we want to avoid breaking changes in the future.
2022-03-14 22:54:33 -04:00
Rolf Bjarne Kvinge c98a6d01cc
[HealthKit] Add this framework to Mac Catalyst. (#14312) 2022-03-09 18:18:48 +01:00
Rolf Bjarne Kvinge 0897150a4f
[VisionKit] Add this framework to Mac Catalyst. (#14316) 2022-03-07 09:30:17 +01:00
Alex Soto 28f905fd75
[CHIP] Remove CHIP framework from dotnet (#14309)
CHIP framework seems to not be stable yet from Apple's side
each xcode update it brings breaking changes and it is also
not documented anywhere so let's disable it for now and
we can re-enable it in the future once it is stable.
2022-03-04 11:59:49 -05:00
Rolf Bjarne Kvinge 2a8e0121d8
[ARKit] Ignore this framework on Mac Catalyst. (#14290)
It exists, but does nothing on Mac Catalyst.

"This framework ignores calls from Mac apps built with Mac Catalyst."

Ref: https://developer.apple.com/documentation/arkit?language=objc

Also augment xtro to not be confused when encountering lines starting with '#'
that has no other text.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-03-03 21:43:33 +01:00
Rolf Bjarne Kvinge 1011419896
[xtro] Remove old and unused annotations. (#14282) 2022-03-02 15:15:11 +01:00
Curtis Wensley 069d34b454
Set NSImageRep DrawInRect hints as nullable (#13834)
* Set NSImageRep DrawInRect hints as nullable

* Add nullable attributes to NSString DrawAtPoint/DrawInRect/StringSize

* Fix xtro test failure

Co-authored-by: Chris Hamons <chris.hamons@xamarin.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-03-01 20:34:02 +01:00
Rolf Bjarne Kvinge c51b064ba2
[Message[s|UI]] Add to Mac Catalyst. #13935. (#14268)
Fixes https://github.com/xamarin/xamarin-macios/issues/13935.
2022-02-28 22:37:14 +01:00
Rolf Bjarne Kvinge 8f5c8b1685
Bump ObjectiveSharpie to 3.5.50. (#14256)
This also requires updating the xtro definitions, because sharpie now finds
many more Mac Catalyst frameworks than before (and we haven't bound those
frameworks yet).
2022-02-26 01:59:11 +01:00
Rolf Bjarne Kvinge 2a1f24f2cc
[CoreTelephony] Fix multiple issues. Fixes #13931. (#14242)
* Add to Mac Catalyst. Fixes #13931.
* Manually include CoreTelephony headers in xtro. There's no umbrella header
  in CoreTelephony 😡 😞
* Fix availability attributes
	* Only CTCall and CTCallCenter are deprecated in the CoreTelephony API.
	* None of these APIs are obsolete, just deprecated.
	* Add Mac Catalyst attributes.

One curious fact is that the PCSC framework interferes with compiling CTCarrer.h:

    In file included from /private/var/folders/43/h027tm1n101cdrq2_b6n9n2m0000gn/T/n0b0byrt.h:163:
    /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCarrier.h:62:41: error: reference to 'BOOL' is ambiguous
    @property (nonatomic, readonly, assign) BOOL allowsVOIP __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
                                            ^
    /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/PCSC.framework/Headers/wintypes.h:59:18: note: candidate found by name lookup is 'BOOL'
            typedef int16_t BOOL;
                            ^
    /Applications/Xcode_13.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/objc/./objc.h:78:18: note: candidate found by name lookup is 'BOOL'
        typedef bool BOOL;
                     ^
    1 error generated.

but since we don't bind the PCSC framework, we can just ask ObjectiveSharpie
to exclude it.

Fixes https://github.com/xamarin/xamarin-macios/issues/13931.
2022-02-24 23:41:52 +01:00
Rolf Bjarne Kvinge b99e75d6ad
[Metal] Name the enum fields consistently, and obsolete/remove the rest. (#14240) 2022-02-24 23:00:26 +01:00
Rolf Bjarne Kvinge d414aa2eb1
[AVFoundation] Remove the AVAssetsDownloadTaskKeys and AVAssetDownloadOptions API in .NET for tvOS. (#14233)
These API were never valid for tvOS, and now we can completely remove them in .NET.
2022-02-24 22:58:01 +01:00
Rolf Bjarne Kvinge bd97933b60
[runtime] Remove ObjCRuntime.nfloat in favor of System.Runtime.InteropServices.NFloat. (#14197)
* Remove ObjCRuntime.nfloat (in favor of   System.Runtime.InteropServices.NFloat).
* Automatically add a reference to the System.Runtime.InteropServices.Internal
  package, so that developers get the new NFloat API (with operators) we've
  added post .NET 6 (but don't do this for .NET 7).
* Automatically add a global using alias for
  System.Runtime.InteropServices.NFloat -> nfloat. This is not behind the
  usual `ImplicitUsings` condition our other implicit usings are, because
  they're off by default for existing projects, and the main target for the
  global using alias for nfloat is upgraded projects.
* Automatically generate a global using alias (like above) in the generator
  for all code the generator compiles.
* Update xtro entries to reference System.Runtime.InteropServices.NFloat
  instead of ObjCRuntime.nfloat.
* Add a workaround for a hopefully temporary issue with .NET/CoreCLR where the
  wrong runtime pack is selected otherwise (without the new NFloat API, so
  nothing works at runtime).

Ref: https://github.com/xamarin/xamarin-macios/issues/13087
2022-02-24 16:51:12 +01:00
Rolf Bjarne Kvinge 3b617adb0f
[CloudKit] Remove API that no longer exists in the headers from .NET. (#14228) 2022-02-24 08:20:26 +01:00
Rolf Bjarne Kvinge 66dcb94e1f
[AVFoundation] Simplify code behind + api definition for AVCaptureConnection. (#14199)
* Remove the code behind for AVCaptureConnection.SupportsVideoMinFrameDuration
  and AVCaptureConnection.SupportsVideoMaxFrameDuration. The codebehind looks like
  a workaround for Apple renaming the selector, but from history it looks like that
  happened before the earliest version of iOS we support today, so this can be expressed
  in an api definition now without any code behind.
* Add these fields to macOS, where they're not even deprecated (like they are on
  other platforms).
* Remove conditional code in api definition, and distribute [No*] attributes as
  required.
* Remove the AVCaptureConnection.AudioChannels property from .NET, it doesn't do
  anything useful.
2022-02-21 20:58:47 +01:00
Rolf Bjarne Kvinge d58409c018
[AppKit] INSTextInputClient.GetAttributedSubstring can return null. Fixes #14129. (#14131)
Fixes https://github.com/xamarin/xamarin-macios/issues/14129.
2022-02-15 17:44:21 +01:00
Rolf Bjarne Kvinge 31f11e2632
[CoreText] Move numerous CoreText fields to generated code for .NET. (#14132) 2022-02-15 08:24:34 +01:00
Stephane Delcroix f36606e654
[C] Clear OpenTK namespace (#13767)
fixes #13160

- remove unused types
- use System.Numerics when possible
- move own created types from OpenTK namespace to CoreGraphics
- create missing types in CoreGraphics namespace

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-02-14 18:50:23 +01:00
TJ Lambert 764e797ceb
[NET 6 Attribute Conversion] Security (#14033)
* Removing attributes for mellite

* Remove existing attributes

* Attribute Conversion

* Reverting changes to Security/Enums.cs and Security/SecureTransport.cs since they are API source

* Revert "Removing attributes for mellite"

This reverts commit eea2898870.

* Fixing Verifies, Moving Obsolete, Adding missing conversion

* Adding in removed comments and messages

* Removing unused NET Attributes

* Removing duplicated comments

* Removing not needed availability

* Remove todos

* removing other not needed availability

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-02-14 10:36:33 -06:00
Rolf Bjarne Kvinge 0df9fa98ef
[UIKit] Implement the UIResponderStandardEditActions protocol. (#14095)
Implement the UIResponderStandardEditActions protocol, move the
corresponding API from UIResponder there, and make sure UIResponder implements
the new UIResponderStandardEditActions protocol (which should make this move a
non-breaking change, since the protocol is inlined in UIResponder).
2022-02-08 10:38:28 +01:00
Rolf Bjarne Kvinge eb281aefee
[AppKit] Make NSTextView implement the NSColorChanging protocol in .NET. (#14071)
Also change the NSColorChanging.ChangeColor method to not be deprecated
anymore, Apple's headers say nothing of the sort.
2022-02-07 08:06:24 +01:00
Rolf Bjarne Kvinge 18b53d8e4b
[xtro] Remove dead comment in ignore file. (#14078) 2022-02-07 08:04:34 +01:00
Rolf Bjarne Kvinge 6bef760049
[NetworkExtension] Remove fields from macOS that aren't in macOS for .NET. (#14082) 2022-02-07 08:03:53 +01:00
Rolf Bjarne Kvinge 154bd6b22b
[AppKit] Implement the NSUserInterfaceValidation protocol for a few types in .NET. (#14036) 2022-02-04 08:27:29 +01:00
Rolf Bjarne Kvinge d766fe8c8b
[AppKit] Remove a few obsolete members in .NET (#14043) 2022-02-04 08:14:10 +01:00
Rolf Bjarne Kvinge 3a2acf9d99
[AppKit] Implement the NSUserActivityRestoring protocol. (#14045) 2022-02-04 08:06:25 +01:00
Rolf Bjarne Kvinge 0a10670d2e
[UIKit] Rename UISegmentedControl.DividerImageForLeftSegmentStaterightSegmentStatebarMetrics to UISegmentedControl.GetDividerImage in .NET. Fixes #6357. (#14059)
Also make the return value nullable since xtro says so.

Fixes https://github.com/xamarin/xamarin-macios/issues/6357.
2022-02-04 07:50:47 +01:00
Rolf Bjarne Kvinge 56313f896d
[AppKit] Use the correct interface for inlining protocols in our api definitions in .NET. (#14041)
Also update/fix code to show the corresponding warning in the generator, and
make a note of why MKUserLocation/MKAnnotation is special.
2022-02-03 17:56:20 +01:00
Rolf Bjarne Kvinge 363e58f079
[Foundation] Adopt more XAMCORE_4_0 changes in .NET. (#14017)
This is just removing obsolete API.
2022-02-02 17:24:51 +01:00
Rolf Bjarne Kvinge 4b1738826f
[FileProvider] Adopt XAMCORE_4_0 changes in .NET. (#14012) 2022-02-02 08:01:06 +01:00
Rolf Bjarne Kvinge 2d48710858
[AppKit] Adopt XAMCORE_4_0 changes in .NET. (#13987)
* A lot of obsolete/deprecated removal.
* Remove the NSDraggingInfo model, which required numerous other changes.
* Remove the NSPasteboardReading/NSPasteboardWriting models, which required more
  numerous changes.
* Update the tests accordingly.
2022-02-01 20:56:32 +01:00
Rolf Bjarne Kvinge 5606035493
[MediaAccessibility] Adopt XAMCORE_4_0 changes in .NET. (#13984) 2022-02-01 11:31:45 +01:00
Rachel Kang a64b03a886
[CHIP] Updates for Xcode13.2 beta 1 (#13884)
* [CHIP] Updates for Xcode13.2 beta 1

* Update based on feedback

* Update based on feedback and intro test failure

* Update xtro .todo files

* Fix some breaking API changes

* Delete silly typos
2022-01-31 18:55:49 -05:00
Rolf Bjarne Kvinge 7517d6a8b5
[WKWebKit] Adopt XAMCORE_4_0 changes in .NET. (#13992) 2022-01-31 23:47:45 +01:00
Rolf Bjarne Kvinge bd5c7b331f
[Contacts] Adopt XAMCORE_4_0 changes in .NET. (#13993) 2022-01-31 23:46:11 +01:00
Rolf Bjarne Kvinge 2de903f337
[Social] Adopt XAMCORE_4_0 changes in .NET. (#13986)
Also clean up the code to use fewer ifdefs.
2022-01-31 21:33:53 +01:00
Chris Hamons e8663ebbc7
[NET 6 Attribute Conversion] CoreFoundation (#13816) 2022-01-31 13:27:23 -06:00
Rolf Bjarne Kvinge ee8869a9d1
[GameKit] Adopt XAMCORE_4_0 changes in .NET. (#13964) 2022-01-31 17:04:23 +01:00
Rolf Bjarne Kvinge e64a0b489a
[AVKit] Adopt XAMCORE_4_0 changes in .NET. (#13933) 2022-01-28 18:10:19 +01:00
Rolf Bjarne Kvinge d2ef29739b
[CoreAnimation] Adopt XAMCORE_4_0 changes in .NET. (#13918)
* Mostly just removal of obsolete/deprecated API.
* Modified CAScrollLayer.ScrollMode to use the good name
  (CAScrollLayer.ScrollMode) for the strongly typed enum, and then have a
  WeakScrollMode property for the NSString version (like we do elsewhere).
2022-01-28 10:02:46 +01:00
Rolf Bjarne Kvinge fb6ab21bc8
[AppKit] Improve a few API names for .NET. (#13824) 2022-01-27 10:56:06 +01:00
Chris Hamons 02644cac41
[NET 6 Attribute Conversion] AddressBook (#13715) 2022-01-25 12:57:44 -06:00
Rolf Bjarne Kvinge f83e1cb4b7
[QuickLook] Adopt XAMCORE_4_0 changes in .NET. (#13826) 2022-01-25 11:24:09 +01:00
Rolf Bjarne Kvinge b540e1f2b9
[UIKit] Adopt XAMCORE_4_0 changes in .NET. (#13820)
This mostly involves removing obsolete/deprecated API.
2022-01-21 17:43:50 +01:00
Sebastien Pouliot 25fab0b74e
[net][coregraphics] Match native strings representation for structs (#13802)
* Use the native `NSStringFrom*` API so we can, eventually, use the
native code to parse them from `NSString` and also ensure increased
compatibility with any code that expects the native string representation

* Add unit tests for `ToString` methods

Also use [`System.HashCode`](https://docs.microsoft.com/en-us/dotnet/api/system.hashcode?view=net-6.0) to generate the hash code
2022-01-21 08:46:25 +01:00
Rolf Bjarne Kvinge a2f7407b76
[SafariServices] Adopt XAMCORE_4_0 changes in .NET. (#13801) 2022-01-20 10:33:42 +01:00
Rolf Bjarne Kvinge 82a3b71c60
[Foundation] Adopt a better name/signature for numerous Foundation API in .NET. (#13776) 2022-01-20 10:32:55 +01:00
Rolf Bjarne Kvinge 28df7033f2
[MessageUI] Fix enum sizes in .NET. (#13799) 2022-01-20 10:31:59 +01:00
Marius Ungureanu d2ccca6539
Add NullAllowed to NSRunningApplication (#13703) 2022-01-19 22:36:07 +01:00
Rolf Bjarne Kvinge 26d9d9172a
[ScriptingBridge] Improve API and add nullability. (#13787)
* Improve the API for both legacy Xamarin and .NET.
* Obsolete the old API in legacy Xamarin and point to the new API.
* Remove the old API in .NET.
* Add nullability.
2022-01-19 20:52:18 +01:00
Rolf Bjarne Kvinge 9368e0871e
[VideoSubscriberAccount] Adopt XAMCORE_4_0 changes in .NET. (#13778) 2022-01-19 18:51:26 +01:00
Rolf Bjarne Kvinge d7f1829a4b
[StoreKit] Adopt XAMCORE_4_0 changes in .NET. (#13783)
This is mostly removing obsolete/removed API, except for
SKProduct.ContentVersion, where the XAMCORE_4_0 annotations were wrong and the
property is still alive and kicking.
2022-01-19 18:50:30 +01:00
Rolf Bjarne Kvinge a914a8b23d
[SpriteKit] Adopt XAMCORE_4_0 changes in .NET. (#13786)
This means removing numerous obsolete/deprecated methods where better/more
correct alternatives already exist.

Also fix one obsolete message and adjust the tests.
2022-01-19 18:49:47 +01:00
Rolf Bjarne Kvinge 697e5b330e
[src] Fix optional/required protocol members in .NET. (#13764)
Make required protocol members [Abstract] and optional protocol members not in
.NET. This way we're matching Apple's API (for now at least).
2022-01-19 09:03:35 +01:00
Rolf Bjarne Kvinge 1c4c297795
[AppKit] Update NSSpellingState to be a native enum in .NET, according to current AppKit headers. (#13770) 2022-01-19 08:29:08 +01:00
Rolf Bjarne Kvinge fa2173e5ef
[CFNetwork] Move the CFHost and CFHTTP* types to the CFNetwork namespace in .NET. (#13761)
These types come from the CFNetwork.framework, but for some reason they were bound inside CoreServices many years ago.

This resolves a potential issue where we might end up linking with the
CoreServices framework instead of CFNetwork framework (because we use the
namespace of types to determine which framework they belong to).
2022-01-19 08:07:06 +01:00
Rolf Bjarne Kvinge d49903ccca
[AppKit] Fix atrocious API naming in NSTextFinderClient in .NET. (#13769) 2022-01-18 20:23:09 +01:00
Rolf Bjarne Kvinge e8c55ddac0
[Foundation] Remove compat overloads of methods taking a NSUrlSessionPendingTasks delegate in .NET. (#13759) 2022-01-18 11:13:29 +01:00
Rolf Bjarne Kvinge 391b46b14f
[Foundation] Make NSBundleExecutableArchitecture non-native. (#13754)
NSBundleExecutableArchitecture is an enum of our own invention, so there's no
need for it to be a native enum.
2022-01-18 10:52:15 +01:00
Rolf Bjarne Kvinge 7b9f938f65
[Intents] Remove INSetMessageAttributeIntentResponseCode from macOS in .NET. (#13752)
According to the headers it's not available in macOS.
2022-01-18 08:09:49 +01:00
Rolf Bjarne Kvinge 5dd0b0dd62
[Intents] The INPersonRelationship enum was added to macOS 12.1 according to the documentation. (#13751)
But only some values, the rest aren't available, so remove those from .NET.
2022-01-18 08:06:54 +01:00
Rolf Bjarne Kvinge ce86f7746b
[Foundation] Remove some obsolete NSObject API in .NET (#13719)
Remove badly named API (or with typos) in .NET.
2022-01-17 09:45:44 +01:00
Rolf Bjarne Kvinge 3183517e9d
[AppKit] Rename NSTableView.DragImageForRowsWithIndexestableColumnseventoffset to NSTableView.DragImageForRows in .NET. (#13723)
The original name is quite bad.
2022-01-17 09:45:03 +01:00
Rolf Bjarne Kvinge 0f5642f4b5
[Intents] Remove Intents types from macOS in .NET that were added by mistake. (#13727)
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2022-01-17 09:40:29 +01:00
Rolf Bjarne Kvinge f219bc0851
[Foundation] Remove a few broken NSExpression overloads in .NET. (#13728) 2022-01-17 09:38:16 +01:00
Rolf Bjarne Kvinge ccf651c5f3
[Intents] Fix optional/abstract for protocols in .NET. (#13738) 2022-01-17 09:22:43 +01:00
Rolf Bjarne Kvinge ce609e5153
[Foundation] Abstractify protocol members in .NET. (#13741) 2022-01-17 09:20:58 +01:00
Rolf Bjarne Kvinge 1ee7a63412
[Foundation] Remove the NSDateComponentsWrappingBehavior in .NET. (#13713)
It's our own enum, and all the API using it have been obsoleted/removed.

There doesn't seem to be any other usage of it on GitHub either (only our own
source code and documentation).
2022-01-14 07:27:08 +01:00
Rolf Bjarne Kvinge 65a7794244
[AppKit] Update NSWindowStyle deprecations according to headers. (#13696)
Also remove the Unscaled field, it's removed from the headers, and it was
deprecated before the earliest macOS version we support.

Also also fix a few xtro issues.
2022-01-13 22:29:11 +01:00
Alex Soto dfe6c2b5ab
[main] Add Xcode 13.2 Support (#13643)
* [Xcode13.2] Bump to Xcode 13.2 RC (#13497)

* [Xcode13.2] Bump to Xcode 13.2 Beta 2

Breaking changes addressed for legacy
* HomeKit
* CallKit
* CoreLocation

* [xcode13.2] Bump to Xcode 13.2 RC and apply feedback

* [AppKit] Fix missing Notifications

* Fix xtro

* [xcode13.2] Bump versions and use stable Xcode 13.2

* [monotouch-tests] Make TestAddingByComponents work on the last day of the year

Happy New Year!!

* NO BOM PLZ!
2022-01-03 09:28:00 -05:00
Rolf Bjarne Kvinge b75b9f509a
[UIKit] Make UITextInputTraits members optional in .NET. Fixes #5831. (#13607)
Once upon a long time ago we decided to mark the properties in the
UITextInputTraits protocol as required in our API definition, because that way
we'd inline these properties in any class that implemented the
UITextInputTraits protocol, which made calling these properties much easier.

At a later point, we implemented better support for protocols, and now we
automatically generate extension methods for such properties (a corresponding
Get/Set method for the get/set property accessors), so we don't need these
inlined properties anymore.

However, removing them would be a breaking change, so we were stuck with these
redundant inlined properties, until .NET came along.

Ref: 0e80570863

Fixes https://github.com/xamarin/xamarin-macios/issues/5831.
2021-12-22 08:01:15 +01:00
Rolf Bjarne Kvinge 07f19ed423
Fix grammar in documentation
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2021-12-20 08:26:08 +01:00
Rolf Bjarne Kvinge 9ee6af7d4d
Fix grammar in documentation
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2021-12-20 08:26:02 +01:00
Rolf Bjarne Kvinge aee17ec7ad Update xtro. 2021-12-17 07:45:12 +01:00
Rolf Bjarne Kvinge bcbb6c8438
[src] Define XAMCORE_3_0 for .NET for all platforms. (#13566)
Also update xtro and tests accordingly.
2021-12-17 07:44:02 +01:00
Rolf Bjarne Kvinge c6efb26432
[AppKit] Make sure NSFunctionKey doesn't come into Mac Catalyst in .NET. (#13582)
If NSFunctionKey isn't in Mac Catalyst in legacy Xamarin, it shouldn't be in
.NET either, so adjust the conditional logic accordingly.

Also make the NSFunctionKey enum a non-native enum in .NET, like it's in the
headers.
2021-12-16 07:40:58 +01:00
Rolf Bjarne Kvinge c93cd3a99c
[Metal] Usher the Metal API into the golden age of .NET. (#13533)
* Change all XAMCORE_4_0 conditions to NET conditions.
* Add numerous Release attributes that xtro started complaining about.
* Misc other minor API changes/updates.
2021-12-13 20:40:29 +01:00
Rolf Bjarne Kvinge 61b897e054 [xtro] Update. 2021-12-03 18:26:22 +01:00
Rolf Bjarne Kvinge 00482325d1
[src] Add missing availability attributes in a few places. (#13422)
* [src] Add missing availability attributes in a few places.

* [src] Don't add availability attributes to error enums.

* [introspection] Change version check for Mac Catalyst to be 'greater than'.

We have a tests that verifies that the availability attributes for an API
doesn't state that the API was deprecated before or when it was introduced.

This sounds reasonable, except that Apple has introduced and deprecated entire
frameworks in the same Mac Catalyst version (probably because Apple decided to
port an already deprecated framework to Mac Catalyst).

Our test for this scenario was a bit too eager; this change will make it so
that (for Mac Catalyst only), we accept APIs that are introduced and
deprecated in the same Mac Catalyst version (not not APIs that were deprecated
before they were introduced).
2021-11-29 07:58:16 +01:00
Rolf Bjarne Kvinge 3f9666a8f7
[AppKit] Change NSTextViewDelegate.DraggedCell to use the recommended signature for .NET (#13460)
* [AppKit] Change NSTextViewDelegate.DraggedCell to use the recommended signature for .NET

The 'textView:draggedCell:inRect:event:' selector has been deprecated since
macOS 10.6, so just replace this with the recommended alternative.

* [generator] Make sure code compiles for parameter names that match C# keywords.
2021-11-26 20:02:15 +01:00
Rolf Bjarne Kvinge b9e8d4869d
[xtro] Don't report missing availability attributes for enums representing errors. (#13445)
* We don't want availability attributes for enums that represent errors,
  because the code would end up unnecessarily complex to avoid warnings.
* We even have other tests to verify as much (cecil tests).
2021-11-26 07:22:58 +01:00
Rolf Bjarne Kvinge d51835b5b3
[AVFoundation] Fix availability for a few enums (#13451)
None of these are deprecated, so no reason for them to not exist in .NET.

Also update the availability attributes according to current headers.
2021-11-26 07:21:30 +01:00
Rolf Bjarne Kvinge 9013c72591
[AppKit] Remove the NSLayoutManager.LayoutOptions property and the NSGlyphStorageOptions enum in .NET. (#13453)
The former has been removed from the headers, so it's thoroughly deprecated,
and the latter is no longer needed anymore since it was only used by the
former.
2021-11-26 07:20:36 +01:00
Rolf Bjarne Kvinge 5ab9883af9
[AppKit] Remove NSAlertType from .NET, it's not used anywhere in our API, and it's deprecated in the headers. (#13454) 2021-11-26 07:20:21 +01:00
Rolf Bjarne Kvinge ce5dd1e61b
[AppKit] Remove NSKey from .NET, it's not used anywhere in our API, nor can I find it in headers. (#13448)
xtro also agrees that it shouldn't exist.
2021-11-25 23:37:48 +01:00
Rolf Bjarne Kvinge 9cba70d183 [xtro] Update annotations. 2021-11-24 17:05:35 +01:00
Rolf Bjarne Kvinge 4445606653 [xtro] Run u2todo on the .NET annotations to update annotations according to current API. 2021-11-24 15:39:04 +01:00
Rolf Bjarne Kvinge 0cb2591e1a [xtro] Run autosanitize on the .NET annotations to update annotations according to current API. 2021-11-24 15:39:04 +01:00
Rolf Bjarne Kvinge 70333367a0 [xtro] Adjust the .NET annotations for nfloat and NSWritingDirection move. 2021-11-24 15:39:04 +01:00
Rolf Bjarne Kvinge aac316efbb [xtro] Add .NET annotations. 2021-11-24 15:39:03 +01:00