xamarin-macios/src
Rolf Bjarne Kvinge 05398b5ff3
[src] Remove .NET availability attributes for files that are processed by the generator. (#14207)
2022-02-23 08:22:41 +01:00
..
ARKit [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
AVFoundation [AVFoundation] Simplify code behind + api definition for AVCaptureConnection. (#14199) 2022-02-21 20:58:47 +01:00
AVKit [AVKit] Adopt XAMCORE_4_0 changes in .NET. (#13933) 2022-01-28 18:10:19 +01:00
Accelerate [accelerate] Add nullability to (generated and manual) bindings (#14135) 2022-02-16 18:18:23 -06:00
Accessibility [Accessibility] Update bindings for Xcode 13.0 beta 1 (#11998) 2021-07-07 17:25:31 -04:00
Accounts [accounts] Add nullability for manual bindings (#10161) 2020-11-30 09:55:07 -05:00
AdSupport [AdSupport] Adopt XAMCORE_4_0 changes in .NET. (#13887) 2022-01-27 10:44:57 +01:00
AddressBook [src] Remove .NET availability attributes for files that are processed by the generator. (#14207) 2022-02-23 08:22:41 +01:00
AddressBookUI [NET 6 Attribute Conversion] AddressBookUI (#13716) 2022-01-14 10:20:06 -06:00
AppKit [src] For .NET remove misc API that's either unusable or a an obsolete simple wrapper around other functional API. (#14209) 2022-02-23 08:19:08 +01:00
AssetsLibrary [AssetsLibrary] Add Support for DotNet Attributes 2021-09-07 14:11:48 -05:00
AudioToolbox [src] Remove .NET availability attributes for files that are processed by the generator. (#14207) 2022-02-23 08:22:41 +01:00
AudioUnit [AudioUnit] Adopt XAMCORE_4_0 changes in .NET. (#13899) 2022-01-27 10:33:54 +01:00
AuthenticationServices [NET 6 Attribute Conversion] AuthenticationServices (#13792) 2022-01-21 13:49:25 -06:00
BackgroundTasks Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
BusinessChat [d16-7] [src] Remove Classic code from the CoreBluetooth, CoreAudioKit, CoreAnimation, ContactsUI, Contacts, CloudKit, ClassKit, CFNetwork, CarPlay, CallKit and BusinessChat frameworks. (#8784) 2020-06-05 13:08:51 -04:00
CFNetwork [CFNetwork] Remove the MessageHandler type from .NET. (#14056) 2022-02-04 07:54:39 +01:00
CallKit [main] Add Xcode 13.2 Support (#13643) 2022-01-03 09:28:00 -05:00
CarPlay [carplay] Remove unreachable code inside CPCompat.cs (#13937) 2022-01-28 13:52:26 +01:00
Carbon
Chip [CHIP] Updates for Xcode13.2 beta 1 (#13884) 2022-01-31 18:55:49 -05:00
ClassKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
ClockKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
CloudKit [cloudkit] Disable compatibility stubs for net profile (#13938) 2022-01-28 10:37:48 +01:00
Compression [NET 6 Attribute Conversion] Compression (#13796) 2022-01-21 13:54:57 -06:00
Contacts Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
CoreAnimation [src] For .NET remove misc API that's either unusable or a an obsolete simple wrapper around other functional API. (#14209) 2022-02-23 08:19:08 +01:00
CoreBluetooth [NET 6 Attribute Conversion] CoreBluetooth (#13814) 2022-01-25 11:25:35 -06:00
CoreData [NET 6 Attribute Conversion] CoreData (#13813) 2022-01-21 13:46:57 -06:00
CoreFoundation [corefoundation] Skip intermediate call inside `CFArray.DefaultConvert` (#14160) 2022-02-16 08:24:50 +01:00
CoreGraphics [CoreGraphics] Remove CGColorConversionInfo and CGColorConversionInfoTriple from .NET. (#14200) 2022-02-19 08:45:19 -05:00
CoreHaptics [CoreHaptics] Add support for Xcode13 beta1. (#11963) 2021-06-17 15:15:07 -04:00
CoreImage [CoreImage] Adopt XAMCORE_4_0 changes in .NET. (#13983) 2022-02-02 16:07:45 +01:00
CoreLocation [NET 6 Attribute Conversion] CoreLocation (#13861) 2022-01-25 12:48:03 -06:00
CoreML [generator] Use '[U]IntPtr' in P/Invoke signatures instead of 'n[u]int'. (#13043) 2021-10-25 10:56:02 +02:00
CoreMedia [NET 6 Attribute Conversion] CoreMedia (#13882) 2022-02-15 08:18:33 -06:00
CoreMidi [CoreMidi] Adopt XAMCORE_4_0 changes in .NET. (#13936) 2022-01-28 18:23:40 +01:00
CoreMotion [NET 6 Attribute Conversion] CoreMotion (#13866) 2022-01-25 12:21:50 -06:00
CoreServices [NET 6 Attribute Conversion] CoreServices (#13865) 2022-01-25 11:22:14 -06:00
CoreSpotlight [CoreSpotlight] Adopt XAMCORE_4_0 changes in .NET. (#13942) 2022-01-28 17:30:58 +01:00
CoreTelephony [generator] Do not inline duplicate attributes when processing protocols (#10683) 2021-03-01 08:39:52 -05:00
CoreText [NET 6 Attribute Conversion] CoreText (#13896) 2022-02-15 08:18:10 -06:00
CoreVideo [NET 6 Attribute Conversion] CoreVideo (#13889) 2022-02-01 11:22:12 -06:00
CoreWlan [NET 6 Attribute Conversion] CoreWlan (#13898) 2022-01-31 13:29:51 -06:00
Darwin [Darwin] Adopt XAMCORE_4_0 changes in .NET. (#13965) 2022-01-31 16:51:12 +01:00
EventKit [EventKit] Adopt XAMCORE_4_0 changes in .NET. (#13971) 2022-01-31 17:50:09 +01:00
EventKitUI [NET 6 Attribute Conversion] EventKitUI (#13900) 2022-01-31 13:30:20 -06:00
ExternalAccessory Bump the minimum iOS version to 7.0. Fixes #6213. (#6878) 2019-08-30 01:07:30 -07:00
FileProvider [NET 6 Attribute Conversion] FileProvider (#13901) 2022-01-31 13:31:00 -06:00
FinderSync Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
Foundation [src] For .NET remove misc API that's either unusable or a an obsolete simple wrapper around other functional API. (#14209) 2022-02-23 08:19:08 +01:00
GLKit [NET 6 Attribute Conversion] GLKit (#13904) 2022-01-27 09:15:50 -06:00
GameController [src] Remove .NET availability attributes for files that are processed by the generator. (#14207) 2022-02-23 08:22:41 +01:00
GameKit [src] Remove .NET availability attributes for files that are processed by the generator. (#14207) 2022-02-23 08:22:41 +01:00
GameplayKit [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
HealthKit [NET 6 Attribute Conversion] HealthKit (#13950) 2022-01-31 14:00:07 -06:00
HomeKit [NET 6 Attribute Conversion] Homekit (#13949) 2022-02-07 11:05:57 -06:00
IOSurface [ObjCRuntime] Add a non-deprecated internal system-version checking API and use it everywhere. (#13231) 2021-11-04 11:13:23 +01:00
ImageCaptureCore [ImageCaptureCore] Add ImageCaptureCore Bindings (#5074) 2018-11-07 09:52:39 -05:00
ImageIO [NET 6 Attribute Conversion] ImageIO (#13947) 2022-01-31 13:50:42 -06:00
ImageKit [macos][imagekit] Update for Xcode 11 beta 1 (#6772) 2019-08-14 22:06:24 -04:00
InputMethodKit
Intents [NET 6 Attribute Conversion] Intents (#13948) 2022-02-02 10:57:19 -06:00
JavaScriptCore [ObjCRuntime] Remove deprecated availability attribute API from .NET. (#13433) 2021-12-09 07:41:07 +01:00
LocalAuthentication [LocalAuthentication] Adjust code for .NET and fix availability of LAContext.MaxBiometryFailures (#13425) 2021-11-24 15:37:56 +01:00
MLCompute [NET 6 Attribute Conversion] MlCompute (#13946) 2022-01-31 13:32:06 -06:00
MapKit [NET 6 Attribute Conversion] MapKit (#13952) 2022-01-31 14:02:29 -06:00
MediaAccessibility [MediaAccessibility] Adopt XAMCORE_4_0 changes in .NET. (#13984) 2022-02-01 11:31:45 +01:00
MediaLibrary [d16-7] [src] Remove Classic code from the JavaScriptCore, MapKit, MediaLibrary, MediaToolbox, Metal, MetalKit, MetalPerformanceShaders, MobileCoreServices, ModelIO, MultipeerConnectivity, NetworkExtension and NotificationCenter frameworks. (#8806) 2020-06-10 09:29:53 +02:00
MediaPlayer [src] For .NET remove misc API that's either unusable or a an obsolete simple wrapper around other functional API. (#14209) 2022-02-23 08:19:08 +01:00
MediaToolbox [NET 6 Attribute Conversion] MediaToolbox (#13976) 2022-01-31 17:38:38 -05:00
MessageUI [MessageUI] Fix enum sizes in .NET. (#13799) 2022-01-20 10:31:59 +01:00
Metal [src] For .NET remove misc API that's either unusable or a an obsolete simple wrapper around other functional API. (#14209) 2022-02-23 08:19:08 +01:00
MetalKit [NET 6 Conversion] MetalKit (#14074) 2022-02-07 10:02:58 -05:00
MetalPerformanceShaders [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
MetricKit [ObjCRuntime] Add a non-deprecated internal system-version checking API and use it everywhere. (#13231) 2021-11-04 11:13:23 +01:00
MobileCoreServices [NET 6 Attribute Conversion] MobileCoreServices (#14075) 2022-02-07 10:09:07 -06:00
ModelIO [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
MultipeerConnectivity [d16-7] [src] Remove Classic code from the JavaScriptCore, MapKit, MediaLibrary, MediaToolbox, Metal, MetalKit, MetalPerformanceShaders, MobileCoreServices, ModelIO, MultipeerConnectivity, NetworkExtension and NotificationCenter frameworks. (#8806) 2020-06-10 09:29:53 +02:00
NativeTypes [nfloat] Obsolete nfloat.CopyArray in legacy Xamarin and stop using it. (#14164) 2022-02-16 20:10:13 +01:00
NaturalLanguage [NET 6 Attribute Conversion] NaturalLanguage (#13997) 2022-02-02 06:15:59 -06:00
NearbyInteraction [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
Network [src] For .NET remove misc API that's either unusable or a an obsolete simple wrapper around other functional API. (#14209) 2022-02-23 08:19:08 +01:00
NetworkExtension [NET 6 Attribute Conversion] NetworkExtension (#13998) 2022-02-02 11:44:29 -06:00
NewsstandKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
NotificationCenter Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
ObjCRuntime Reduce string duplication in the platform assemblies (part 1) (#14191) 2022-02-22 16:39:45 +01:00
OpenGL [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
OpenGLES [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
PassKit [NET 6 Attribute Conversion] PassKit (#14022) 2022-02-03 10:53:46 -06:00
PdfKit [NET 6 Attribute Conversion] PdfKit (#14021) 2022-02-03 10:44:56 -06:00
Photos [Photos] Adopt XAMCORE_4_0 changes in .NET. (#13830) 2022-01-25 11:58:48 +01:00
PhotosUI [PhotosUI][Xcode12] Update for beta 4 (#9285) 2020-08-06 11:29:30 -04:00
PrintCore [src] Make sure the (IntPtr/NativeHandle, bool) ctor is always preserved (conditionally) for types that subclass NativeObject. Fixes #13699. (#13708) 2022-01-14 15:26:23 +01:00
QTKit [QTKit] Remove the QTKit framework from .NET. (#13224) 2021-11-03 08:48:34 +01:00
QuickLook [CoreFoundation] Fetch a few static values lazily. (#4924) 2018-10-09 15:51:17 +02:00
QuickLookUI
ReplayKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
SafariServices [SafariServices] Adopt XAMCORE_4_0 changes in .NET. (#13801) 2022-01-20 10:33:42 +01:00
SceneKit [SceneKit] Remove dead code from SCNMatrix4.cs. (#14149) 2022-02-16 10:21:12 +01:00
ScriptingBridge [ScriptingBridge] Improve API and add nullability. (#13787) 2022-01-19 20:52:18 +01:00
SearchKit [net][objcruntime] Remove `DisposableObject.ClearHandle` (#14161) 2022-02-18 13:20:22 +01:00
Security [NET 6 Attribute Conversion] Security (#14033) 2022-02-14 10:36:33 -06:00
SensorKit [NET Conversion] SensorKit (#14032) 2022-02-03 09:31:20 -05:00
Simd [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
Social [Social] Adopt XAMCORE_4_0 changes in .NET. (#13986) 2022-01-31 21:33:53 +01:00
SpriteKit [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
StoreKit [NET 6 Attribute Conversion] StoreKit (#14048) 2022-02-07 09:41:27 -06:00
System.ComponentModel Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
System.Drawing Remove the type forwarders for System.Drawing types in .NET. (#13916) 2022-01-28 09:59:17 +01:00
System.Net.Http [CFNetwork] Move the CFHost and CFHTTP* types to the CFNetwork namespace in .NET. (#13761) 2022-01-19 08:07:06 +01:00
SystemConfiguration [NET 6 Attribute Conversion] SystemConfiguration (#14100) 2022-02-08 09:16:07 -06:00
TVMLKit [ObjCRuntime] Add a non-deprecated internal system-version checking API and use it everywhere. (#13231) 2021-11-04 11:13:23 +01:00
TVServices [NET 6 Attribute Conversion] TVServices (#14049) 2022-02-03 15:30:35 -06:00
Twitter Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
UIKit [src] For .NET remove misc API that's either unusable or a an obsolete simple wrapper around other functional API. (#14209) 2022-02-23 08:19:08 +01:00
UserNotifications Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
VideoSubscriberAccount [NET 6 Attribute Conversion] VideoSubscriberAccount (#14055) 2022-02-03 15:30:59 -06:00
VideoToolbox [NET 6 Attribute Conversion] VideoToolbox (#14060) 2022-02-04 09:52:43 -05:00
Vision [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
WKWebKit [NET 6 Attribute Conversion] WKWebKit (#14062) 2022-02-04 13:16:45 -06:00
WatchConnectivity Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
WatchKit [WatchKit] Remove the WatchKit framework from iOS in .NET. (#13299) 2021-11-08 16:17:26 +01:00
WebKit [NET 6 Attribute Conversion] WebKit (#14064) 2022-02-07 09:43:08 -06:00
XKit [NET 6 Attribute Conversion] XKit (#14072) 2022-02-07 10:02:42 -05:00
bgen [main] Update dependencies from dotnet/installer (#12935) 2021-10-08 14:12:23 +02:00
generate-frameworks-constants [src] Generate a .NET-specific version of Constants.<platform>.generated.cs. (#13298) 2021-11-08 16:17:13 +01:00
iAd [src] Update constructors to take a NativeHandle parameter insteaf of an IntPtr parameter. 2021-11-26 14:25:20 +01:00
iTunesLibrary [iTunesLibrary] Adopt XAMCORE_4_0 changes in .NET. (#13982) 2022-01-31 18:21:16 +01:00
xlf [bgen] Remove trailing newlines from warning/error messages. (#10701) 2021-02-25 15:04:00 +01:00
.gitignore [build] Use arcade dependency management tooling (#10890) 2021-04-02 00:02:27 -04:00
AssemblyInfo.cs.in Update assembly info for our platform assemblies. Fixes #13739. (#13902) 2022-01-27 10:33:09 +01:00
Constants.iOS.cs.in [Constants] Adopt XAMCORE_4_0 changes in .NET. (#13895) 2022-01-27 10:36:50 +01:00
Constants.mac.cs.in Rename any *OSX_SDK_VERSION variables to *MACOS_SDK_VERSION. (#13411) 2021-11-22 18:48:05 +01:00
Constants.maccatalyst.cs.in [CoreGraphics] Add support for xcode13 beta 5. (#12589) 2021-09-01 11:24:10 -04:00
Constants.tvos.cs.in [Constants] Adopt XAMCORE_4_0 changes in .NET. (#13895) 2022-01-27 10:36:50 +01:00
Constants.watch.cs.in [Constants] Adopt XAMCORE_4_0 changes in .NET. (#13895) 2022-01-27 10:36:50 +01:00
ILLink.LinkAttributes.tvos.xml [.NET] Rename our product assemblies. Fixes #13748. (#13847) 2022-02-16 21:30:32 +01:00
ILLink.LinkAttributes.xml.in [ObjCRuntime] Remove deprecated availability attribute API from .NET. (#13433) 2021-12-09 07:41:07 +01:00
ILLink.Substitutions.MacCatalyst.xml [.NET] Rename our product assemblies. Fixes #13748. (#13847) 2022-02-16 21:30:32 +01:00
ILLink.Substitutions.ios.xml [.NET] Rename our product assemblies. Fixes #13748. (#13847) 2022-02-16 21:30:32 +01:00
ILLink.Substitutions.macOS.xml [.NET] Rename our product assemblies. Fixes #13748. (#13847) 2022-02-16 21:30:32 +01:00
ILLink.Substitutions.tvos.xml [.NET] Rename our product assemblies. Fixes #13748. (#13847) 2022-02-16 21:30:32 +01:00
Makefile [.NET] Rename our product assemblies. Fixes #13748. (#13847) 2022-02-16 21:30:32 +01:00
Makefile.generator [iAd] Remove this framework from .NET. (#13269) 2021-11-05 08:07:18 +01:00
MinimumVersions.cs.in [src] Fix the TargetPlatform attribute for Mac Catalyst. (#13917) 2022-01-28 10:01:32 +01:00
MonoNativeFunctionWrapperAttribute.cs [d16-7] [src] Remove the remaining Classic code. (#8820) 2020-06-11 19:25:18 +02:00
MonoPInvokeCallbackAttribute.cs [d16-7] [src] Remove the remaining Classic code. (#8820) 2020-06-11 19:25:18 +02:00
MonoTouch.NUnitLite.maccatalyst.templ.csproj Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
MonoTouch.NUnitLite.templ.csproj Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
MonoTouch.NUnitLite.tvos.templ.csproj Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
MonoTouch.NUnitLite.watchos.templ.csproj Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
OpenTK.dll.sources Move System.Drawing types to Mono 2019-03-13 17:26:47 +01:00
README.md [.NET] Move the nfloat type to the ObjCRuntime namespace for .NET. (#13092) 2021-10-28 11:06:31 +02:00
Resources.Designer.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
Resources.resx [bgen] Remove trailing newlines from warning/error messages. (#10701) 2021-02-25 15:04:00 +01:00
Version.in
accelerate.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
accessibility.cs [main] Add Xcode 13.2 Support (#13643) 2022-01-03 09:28:00 -05:00
accounts.cs [Accounts] Adopt XAMCORE_4_0 changes in .NET. (#13994) 2022-02-01 19:46:15 +01:00
addressbook.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
addressbookui.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
adservices.cs [introspection] Add/fix/remove availability attributes for Mac Catalyst to make introspection's Introduced test pass. (#10587) 2021-04-13 15:48:20 -04:00
adsupport.cs [catalyst][adsupport] Update xtro - framework is not available (#11625) 2021-05-20 09:30:55 -04:00
appclip.cs [xcode12][appclip] Update for beta 1 (#8964) 2020-06-26 17:13:30 -04:00
appkit.cs [AppKit] INSTextInputClient.GetAttributedSubstring can return null. Fixes #14129. (#14131) 2022-02-15 17:44:21 +01:00
apptrackingtransparency.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
arkit.cs [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
assetslibrary.cs [src] Change all usages of old-style availability attributes to new-style availability attributes. (#13332) 2021-11-10 18:12:12 +01:00
audiotoolbox.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
audiounit.cs [AudioUnit] Adopt XAMCORE_4_0 changes in .NET. (#13899) 2022-01-27 10:33:54 +01:00
authenticationservices.cs [src] Remove the ModelAttribute.AutoGeneratedName property in .NET. (#13619) 2021-12-22 21:28:19 +01:00
automaticassessmentconfiguration.cs [src] Remove the ModelAttribute.AutoGeneratedName property in .NET. (#13619) 2021-12-22 21:28:19 +01:00
avfoundation.cs [AVFoundation] Simplify code behind + api definition for AVCaptureConnection. (#14199) 2022-02-21 20:58:47 +01:00
avkit.cs [AVKit] Adopt XAMCORE_4_0 changes in .NET. (#13933) 2022-01-28 18:10:19 +01:00
backgroundtasks.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
bmac.ikvm [xcode11] Stop building/shipping 32-bit Xamarin.Mac bits. Partial fix for #6300. (#6393) 2019-07-15 10:19:24 -07:00
btouch-native Use relative paths in scripts. (#7545) 2019-12-10 12:47:30 +01:00
btouch-native.in
btouch.cs Fix bgen CLI command for macos net6 TFM (#13572) 2022-01-25 15:21:53 +01:00
btv Use relative paths in scripts. (#7545) 2019-12-10 12:47:30 +01:00
businesschat.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
bwatch Use relative paths in scripts. (#7545) 2019-12-10 12:47:30 +01:00
bwatch.in
callkit.cs [main] Add Xcode 13.2 Support (#13643) 2022-01-03 09:28:00 -05:00
carplay.cs [src] Fix optional/required protocol members in .NET. (#13764) 2022-01-19 09:03:35 +01:00
cfnetwork.cs [CFNetwork] Move the CFHost and CFHTTP* types to the CFNetwork namespace in .NET. (#13761) 2022-01-19 08:07:06 +01:00
chip.cs [CHIP] Updates for Xcode13.2 beta 1 (#13884) 2022-01-31 18:55:49 -05:00
classkit.cs [main] Add Xcode 13.2 Support (#13643) 2022-01-03 09:28:00 -05:00
clockkit.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
cloudkit.cs [CloudKit] Adopt XAMCORE_4_0 changes in .NET. (#13891) 2022-01-27 10:40:22 +01:00
compression.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
contacts.cs [Contacts] Adopt XAMCORE_4_0 changes in .NET. (#13993) 2022-01-31 23:46:11 +01:00
contactsui.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
coreanimation.cs [CoreAnimation] Adopt XAMCORE_4_0 changes in .NET. (#13918) 2022-01-28 10:02:46 +01:00
coreaudiokit.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
corebluetooth.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
coredata.cs [CoreData] Move CoreData into the .NET age. (#13718) 2022-01-14 17:13:46 +01:00
corefoundation.cs [generator] Use new CFArray.ArrayFromHandle instead of the existing NSArray API (#12415) 2021-08-12 14:19:25 -04:00
coregraphics.cs [main] Add Xcode 13.2 Support (#13643) 2022-01-03 09:28:00 -05:00
corehaptics.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
coreimage.cs [CoreImage] Adopt XAMCORE_4_0 changes in .NET. (#13983) 2022-02-02 16:07:45 +01:00
corelocation.cs [CoreLocation] Fix availability attributes for a few API to match current state of the framework. (#14000) 2022-02-01 12:22:52 +01:00
corelocationui.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
coremedia.cs [xcode12.2][intro] check for duplicate or inconsistent availability attributes (#9825) (#9856) 2020-10-14 13:57:14 -04:00
coremidi.cs [CoreMidi] Adopt XAMCORE_4_0 changes in .NET. (#13936) 2022-01-28 18:23:40 +01:00
coreml.cs [src] Remove the ModelAttribute.AutoGeneratedName property in .NET. (#13619) 2021-12-22 21:28:19 +01:00
coremotion.cs [src] Remove the ModelAttribute.AutoGeneratedName property in .NET. (#13619) 2021-12-22 21:28:19 +01:00
corenfc.cs [src] Fix optional/required protocol members in .NET. (#13764) 2022-01-19 09:03:35 +01:00
coreservices.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
corespotlight.cs [CoreSpotlight] Adopt XAMCORE_4_0 changes in .NET. (#13942) 2022-01-28 17:30:58 +01:00
coretelephony.cs [src] Remove the ModelAttribute.AutoGeneratedName property in .NET. (#13619) 2021-12-22 21:28:19 +01:00
coretext.cs [CoreText] Move numerous CoreText fields to generated code for .NET. (#14132) 2022-02-15 08:24:34 +01:00
corevideo.cs [CoreVideo] Add support for Xcode 13 beta3. (#12257) 2021-09-13 11:09:26 -04:00
corewlan.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
custom-make.sh
devicecheck.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
dotnet.tmpl.csproj [src] Add .NET project files. (#13018) 2021-10-19 08:12:32 +02:00
error.cs [Localization] Add generator error messages (#7531) 2020-01-08 16:07:46 -05:00
eventkit.cs [EventKit] Adopt XAMCORE_4_0 changes in .NET. (#13971) 2022-01-31 17:50:09 +01:00
eventkitui.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
executionpolicy.cs [executionpolicy] Update for Xcode 11 beta 1 (#6774) 2019-08-14 22:07:55 -04:00
externalaccessory.cs [src/introspection] Adjust tests and availability attributes to work run on iOS/tvOS 12.4. Fixes #13957. (#14133) 2022-02-15 08:20:16 +01:00
fileprovider.cs [FileProvider] Adopt XAMCORE_4_0 changes in .NET. (#14012) 2022-02-02 08:01:06 +01:00
fileproviderui.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
findersync.cs [d16-7] [src] Remove Classic code from the FinderSync, FileProvider[UI], ExternalAccessory, EventKit[UI], DeviceCheck, CoreWlan and CoreVideo frameworks. (#8803) 2020-06-10 09:28:29 +02:00
foundation.cs [Foundation] Add strongly typed version of NSUndoManager.RunLoopModes for .NET. (#14040) 2022-02-08 10:40:46 +01:00
frameworks.sources Reduce string duplication in the platform assemblies (part 1) (#14191) 2022-02-22 16:39:45 +01:00
gamecontroller.cs [GameController] Adopt XAMCORE_4_0 changes in .NET. (#13961) 2022-01-31 16:52:04 +01:00
gamekit.cs [src/introspection] Adjust tests and availability attributes to work run on iOS/tvOS 12.4. Fixes #13957. (#14133) 2022-02-15 08:20:16 +01:00
gameplaykit.cs [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
generate-defines.csharp [src] Generate a define for each framework for every platform. (#10171) 2020-12-01 11:14:32 +01:00
generate-errors.csharp [build] generate Errors.Designer.cs for runtime assemblies (#8921) 2020-06-23 09:01:05 +02:00
generate-frameworks.csharp [src] Generate generated-framework.g.cs for Mac Catalyst 2020-12-03 10:43:19 +01:00
generator-attribute-manager.cs [ObjCRuntime] Remove deprecated availability attribute API from .NET. (#13433) 2021-12-09 07:41:07 +01:00
generator-attributes.cs [src] Remove CategoryAttribute.AllowStaticMembers and fix resulting issues in .NET. (#14038) 2022-02-04 08:26:56 +01:00
generator-diff.mk
generator-enums.cs [ObjCRuntime] Add nullability attributes to the Runtime class + numerous other code updates. (#13021) 2021-10-19 08:11:45 +02:00
generator-filters.cs [generator] Add support for C#'s nint/nuint types 2021-12-03 08:02:49 +01:00
generator-typemanager.cs [bgen] Make sure to render nint/nuint in delegates as nint/nuint for .NET. Fixes #14107. (#14112) 2022-02-09 13:17:48 -05:00
generator.cs [.NET] Rename our product assemblies. Fixes #13748. (#13847) 2022-02-16 21:30:32 +01:00
generator.csproj Replace IKVM.Reflection with MetadataLoadContext (#9864) 2021-05-21 15:15:59 +02:00
generator.sln
glkit.cs [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
global.css
healthkit.cs [HealthKit] Remove the HKAnchoredObjectResultHandler2 delegate in .NET. (#14052) 2022-02-04 07:58:37 +01:00
healthkitui.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
homekit.cs [HomeKit] Adopt XAMCORE_4_0 changes in .NET. (#13967) 2022-01-31 16:58:51 +01:00
iad.cs [iAd] Remove this framework from .NET. (#13269) 2021-11-05 08:07:18 +01:00
identitylookup.cs [IdentityLookup] Adopt XAMCORE_4_0 changes in .NET. (#13989) 2022-01-31 21:46:17 +01:00
identitylookupui.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
imagecapturecore.cs [src] Remove the ModelAttribute.AutoGeneratedName property in .NET. (#13619) 2021-12-22 21:28:19 +01:00
imageio.cs [ImageIO] Add support for Xcode 13 beta 3. (#12145) 2021-07-20 15:42:56 -04:00
imagekit.cs [ImageKit] Adopt XAMCORE_4_0 changes in .NET. (#14019) 2022-02-03 08:27:12 +01:00
inputmethodkit.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
intents.cs [Intents] Adjust initial introduction to INPersonRelationship in macOS. (#13765) 2022-01-18 15:52:56 +01:00
intentsui.cs [src] Fix optional/required protocol members in .NET. (#13764) 2022-01-19 09:03:35 +01:00
iosurface.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
ituneslibrary.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
javascriptcore.cs [JavaScriptCore] Bind JSValue.ToArray as NSArray in .NET. Fixes #12549. (#14090) 2022-02-08 10:39:14 +01:00
linkpresentation.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
localauthentication.cs [LocalAuthentication] Adjust code for .NET and fix availability of LAContext.MaxBiometryFailures (#13425) 2021-11-24 15:37:56 +01:00
localauthenticationembeddedui.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
mailkit.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
mapkit.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
mediaaccessibility.cs [MediaAccessibility] Adopt XAMCORE_4_0 changes in .NET. (#13984) 2022-02-01 11:31:45 +01:00
medialibrary.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
mediaplayer.cs [src] Remove the ModelAttribute.AutoGeneratedName property in .NET. (#13619) 2021-12-22 21:28:19 +01:00
mediasetup.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
mediatoolbox.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
messages.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
messageui.cs [xtro] Fix nullability checks on parameters (#10279) 2020-12-15 08:24:10 -05:00
metal.cs [src/introspection] Adjust tests and availability attributes to work run on iOS/tvOS 12.4. Fixes #13957. (#14133) 2022-02-15 08:20:16 +01:00
metalkit.cs [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
metalperformanceshaders.cs [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
metrickit.cs [src] Fix optional/required protocol members in .NET. (#13764) 2022-01-19 09:03:35 +01:00
mlcompute.cs [MLCompute] Adopt XAMCORE_4_0 changes in .NET. (#13848) 2022-01-26 18:21:33 +01:00
mobilecoreservices.cs [ModelIO] Add Xcode 13 beta4 support. (#12349) 2021-08-04 22:40:05 -04:00
modelio.cs [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
multipeerconnectivity.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
naturallanguage.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
nearbyinteraction.cs [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
network.cs [Network] Implement all bindings up to Xcode 13.1 (#13135) 2021-11-08 11:37:47 -05:00
networkextension.cs [NetworkExtension] Remove fields from macOS that aren't in macOS for .NET. (#14082) 2022-02-07 08:03:53 +01:00
newsstandkit.cs [d16-7] [xtro][bindings] Add xtro support for nullability and fix some bindings (#8341) 2020-04-10 12:37:16 -04:00
notificationcenter.cs [src] Remove CategoryAttribute.AllowStaticMembers and fix resulting issues in .NET. (#14038) 2022-02-04 08:26:56 +01:00
opengl.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
opengles.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
opentk.csproj Move System.Drawing types to Mono 2019-03-13 17:26:47 +01:00
oslog.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
packages.config [Localization] Add generator error messages (#7531) 2020-01-08 16:07:46 -05:00
passkit.cs [PassKit] Adopt XAMCORE_4_0 changes in .NET. (#13833) 2022-01-25 11:52:59 +01:00
pdfkit.cs [PdfKit] Adopt XAMCORE_4_0 changes in .NET. (#13828) 2022-01-25 12:10:14 +01:00
pencilkit.cs [src] Remove the ModelAttribute.AutoGeneratedName property in .NET. (#13619) 2021-12-22 21:28:19 +01:00
phase.cs [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
photos.cs [Photos] Adopt XAMCORE_4_0 changes in .NET. (#13830) 2022-01-25 11:58:48 +01:00
photosui.cs [PhotosUI] Adopt XAMCORE_4_0 change in .NET. (#13825) 2022-01-25 12:17:59 +01:00
printcore.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
pushkit.cs [src] Fix optional/required protocol members in .NET. (#13764) 2022-01-19 09:03:35 +01:00
qtkit.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
quartzcomposer.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
quicklook.cs [QuickLook] Adopt XAMCORE_4_0 changes in .NET. (#13826) 2022-01-25 11:24:09 +01:00
quicklookUI.cs [QuickLookUI] Adopt XAMCORE_4_0 change in .NET. (#13823) 2022-01-21 21:06:19 +01:00
quicklookthumbnailing.cs [QuickLookThumbnailing] Adopt XAMCORE_4_0 changes in .NET. (#13822) 2022-01-21 18:55:54 +01:00
replaykit.cs [ReplayKit] Adopt XAMCORE_4_0 change in .NET. (#13815) 2022-01-21 08:58:30 +01:00
rosetta.pl
safariservices.cs [SafariServices] Adopt XAMCORE_4_0 changes in .NET. (#13801) 2022-01-20 10:33:42 +01:00
scenekit.cs [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
screentime.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
scriptingbridge.cs [ScriptingBridge] Improve API and add nullability. (#13787) 2022-01-19 20:52:18 +01:00
searchkit.cs
security.cs [Security] Add kSecUseNoAuthenticationUI for macOS. (#13431) 2021-11-24 15:35:46 +01:00
sensorkit.cs [src] Remove the ModelAttribute.AutoGeneratedName property in .NET. (#13619) 2021-12-22 21:28:19 +01:00
shazamkit.cs [src] Remove the ModelAttribute.AutoGeneratedName property in .NET. (#13619) 2021-12-22 21:28:19 +01:00
social.cs [Social] Adopt XAMCORE_4_0 changes in .NET. (#13986) 2022-01-31 21:33:53 +01:00
soundanalysis.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
speech.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
spritekit.cs [src/introspection] Adjust tests and availability attributes to work run on iOS/tvOS 12.4. Fixes #13957. (#14133) 2022-02-15 08:20:16 +01:00
storekit.cs [StoreKit] Adopt XAMCORE_4_0 changes in .NET. (#13783) 2022-01-19 18:50:30 +01:00
systemconfiguration.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
threadnetwork.cs [main] Add Xcode 13.2 Support (#13643) 2022-01-03 09:28:00 -05:00
touch-unit.sources [master] Bump mono to pickup needed nunitlite changes. (#7812) 2020-02-07 09:56:41 -05:00
tvmlkit.cs [TVMLKit] Adopt XAMCORE_4_0 changes in .NET. (#13780) 2022-01-19 08:25:13 +01:00
tvservices.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
tvuikit.cs [src] Remove the ModelAttribute.AutoGeneratedName property in .NET. (#13619) 2021-12-22 21:28:19 +01:00
twitter.cs [src] Update the constructors in the api definitions to return NativeHandle instead of IntPtr 2021-11-26 14:25:19 +01:00
uikit.cs [UIKit] Fix signature of UIFont._MonospacedSystemFontOfSize. (#14142) 2022-02-15 22:28:21 +01:00
uniformtypeidentifiers.cs initial changes for Xcode13 UniformTypeIdentifiers Beta1 (#12008) 2021-06-23 16:27:51 -05:00
usernotifications.cs [main] Add Xcode 13.2 Support (#13643) 2022-01-03 09:28:00 -05:00
usernotificationsui.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
videosubscriberaccount.cs [VideoSubscriberAccount] Adopt XAMCORE_4_0 changes in .NET. (#13778) 2022-01-19 18:51:26 +01:00
videotoolbox.cs Update based on feedback 2021-10-15 11:37:52 -04:00
vision.cs [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
visionkit.cs [src] Remove the ModelAttribute.AutoGeneratedName property in .NET. (#13619) 2021-12-22 21:28:19 +01:00
watchconnectivity.cs [src] Fix optional/required protocol members in .NET. (#13764) 2022-01-19 09:03:35 +01:00
watchkit.cs [src] Remove the ModelAttribute.AutoGeneratedName property in .NET. (#13619) 2021-12-22 21:28:19 +01:00
webkit.cs [WebKit] Unseal a few members in XAMCORE_3_0+ that don't need to be sealed anymore. (#14054) 2022-02-04 07:55:54 +01:00
wkwebkit.cs [src] Remove the ModelAttribute.AutoGeneratedName property in .NET. (#13619) 2021-12-22 21:28:19 +01:00
xamios.tmpl.csproj Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
xammac.pc.in
xammac.tmpl.csproj Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
xammaccatalyst.tmpl.csproj Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
xamtvos.tmpl.csproj Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
xamwatch.tmpl.csproj Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
xkit.cs [AppKit] Unify two partial NSLayoutManager declarations. (#14053) 2022-02-04 07:56:31 +01:00

README.md

Platform assemblies

This directory contains the source code and build logic to build the platform assemblies.

Generator

The generator takes API definition files (most *.cs files in src/) as input, and generates the required binding code.

There is one generator executable, based on IKVM, that's used to generate the binding code for all platforms.

The generator relies heavily on binding attributes; all the binding attributes (that are not in the platform assembly) are compiled into a separate attribute assembly (Xamarin.[iOS|TVOS|WatchOS|Mac].BindingAttributes.dll).

Since the platform assemblies (and thus all the binding attributes assemblies as well) reference each platform's BCL, those assemblies can't be loaded directly into the generator at runtime. In order to not make the generator code too complicated, all the attributes are also compiled into the generator executable, and then instantiated as mock-objects of the real attributes.

The solution generator.sln can be used to debug the generator. There are multiple run configurations (ios, tvos, watchos, mac-unified, mac-full), each configured to execute the generator with the options for the corresponding profile.

Generator diff

Two special make targets can be used to compare the generated code (.g.cs files) changes between two branches.
This is required when making changes to the generator.

  1. Checkout the clean base branch (e.g main's HEAD) the feature (target) branch is based on.
  2. Do make generator-reference in xamarin-macios/src.
  3. Checkout the feature branch that requires the diff.
  4. Do make generator-diff.

Tip: do git diff | pbcopy in xamarin-ios/src/generator-reference and paste that anywhere (gist for instance).

Conditional compilation

These are the symbols defined for each platform assembly:

Assembly Symbols
Xamarin.iOS.dll IPHONE MONOTOUCH IOS
Xamarin.Mac.dll MONOMAC
Xamarin.WatchOS.dll IPHONE MONOTOUCH WATCH XAMCORE_3_0
Xamarin.TVOS.dll IPHONE MONOTOUCH TVOS XAMCORE_3_0

To build core for only one platform, use the platform unique variables IOS, MONOMAC, WATCH or TVOS.

Core Assemblies

Currently 2 variations of the core Xamarin.iOS assembly and 4 variations of the core Xamarin.Mac assembly are produced:

### Xamarin.iOS ###

  • A 32-bit Unified assembly (uses System.nint in place of NSInteger, etc.)
  • A 64-bit Unified assembly (same as 32-bit Unified)

### Xamarin.Mac ###

  • A 32-bit Unified assembly (uses System.nint in place of NSInteger, etc.)
  • A 64-bit Unified assembly (same as 32-bit Unified)
  • A 32-bit Full assembly (uses System.nint in place of NSInteger, and references the v4.5 BCL)
  • A 64-bit Full assembly (same as 32-bit Full)

Classic Assemblies

The 32-bit Classic assemblies for iOS and Mac are no longer built and are now copied from the macios-binaries module.

The Classic assembly are copied in, tested, and shipped in order to not break customer code. Customers can choose to continue using this assembly, but we will encourage customers to move to our Unified assemblies.

The Unified assemblies provides many improvements and support for 64-bit iOS and OS X APIs.

Native Types

Most native APIs use NSInteger (and related) typedefs. On 32-bit systems, these are 32-bit underlying types; on 64-bit systems, these are 64-bit underlying types.

Historically Xamarin.iOS and Xamarin.Mac have bound these explicitly as 32-bit (System.Int32, etc). With the move to 64-bit that has been ongoing in OS X for a few versions (10.6/Snow Leopard) and more recently with the anouncement of 64-bit support in iOS, we needed a solution to support both worlds.

We have introduced 6 new types to make this possible:

Native Type Legacy (32-bit) CIL Type New (32/64-bit) CIL Type
NSInteger System.Int32 System.nint
NSUInteger System.UInt32 System.nuint
CGFloat System.Single System.nfloat
CGSize System.Drawing.SizeF CoreGraphics.CGSize
CGPoint System.Drawing.PointF CoreGraphics.CGPoint
CGRect System.Drawing.RectangleF CoreGraphics.CGRect

In the Classic assembly, the System.Drawing types are backed by the 32-bit System.Single type. In the Unified assemblies, the CoreGraphics types are backed by 32/64-bit System.nfloat type (ObjCRuntime.nfloat in .NET).

Enums

Enums are handled specially. Most native enums are backed by NSInteger or NSUInteger. Unfortunately in C#, the backing type of an enum may only be one of the primitive integral C# types. Thus, an enum cannot be backed by System.nint or System.nuint.

The convention is to make all enums that are backed natively by NSInteger or NSUInteger backed by a 64-bit primitive integral C# type (long or ulong) and then annotated with the [Native] attribute. This ensures that API is identical between the 32/64-bit assemblies but also hints to the code generator that Objective-C runtime calls should first cast the enum to a System.nint or System.nuint.

Native Enum Definition

typedef NS_ENUM(NSUInteger, NSTableViewDropOperation) {
	NSTableViewDropOn,
	NSTableViewDropAbove
};

Managed Enum Definition

[Native]
public enum NSTableViewDropOperation : nuint {
	DropOn,
	DropAbove
}

When dealing with enums in P/Invokes, one must never pass such an enum directly. The P/Invoke signature should take a System.nint or System.nuint and a wrapper API must cast the enum manually (as mentioned above, this is handled automatically for Objective-C APIs by the generator).

Objective-C Binding

interface Fooable {
	[Export ("foo:")]
	void Foo (NSTableViewDropOperation dropOp);
}

C Binding

public partial class Fooable {
	[DllImport ("foo")]
	static extern void Foo (nuint dropOp);

	public static void Foo (NSTableViewDropOperation dropOp)
	{
		Foo ((nuint)(ulong)dropOp);
	}
}

#define

There are a few preprocessor variables that can be used within sources for conditional compilation:

Variable Description
MONOMAC defined for Xamarin.Mac builds; not defined for Xamarin.iOS
ARCH_32 defined when the target architecture is 32-bit; this will be defined for Classic and the Unified 32-bit assemblies
ARCH_64 defined when the target architecture is 64-bit; this will be defined only for the Unified 64-bit assembly
COREBUILD defined when building the intermediate core.dll assembly against which the code generator will produce bindings

For example, to build an API for all of iOS but only 64-bit OS X (Xamarin.Mac):

#if !MONOMAC || (MONOMAC && ARCH_64)
...
#endif

Source Localization

Coming soon!

See Localization Wiki for more details on our localization process

or the OneLocBuild Wiki for information on OneLocBuild.