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

1735 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 2d28e24837 [runtime] Handle any exceptions whenever we return from managed code. 2016-06-08 20:05:54 +02:00
Chris Hamons 05bedce306 [XM] Fix dontlink by fixing some NSAccessibility binding mistakes (#143)
[XM] Fix dontlink by fixing some NSAccessibility binding mistakes
2016-06-08 09:51:19 -04:00
Timothy Risi ca094772fc Bind FIFinderSync correctly (has both class and protocol with same name) (#145) 2016-06-08 14:03:53 +02:00
Sebastien Pouliot ef65ca51be [gamekit] Fix breaking change in GKLocalPlayerListener for classic (#144)
reference: apidiff

Namespace MonoTouch.GameKit

Type Changed: MonoTouch.GameKit.GKLocalPlayerListener

Removed method:

	public virtual void DidRequestMatchWithPlayers (GKPlayer player, string[] playerIDsToInvite);
2016-06-07 20:25:04 -04:00
Rolf Bjarne Kvinge 71f4d78b18 [runtime] Generated binding wrappers that catch ObjC exceptions are supposed to always convert to managed exceptions. (#133) 2016-06-06 14:33:37 +02:00
Rolf Bjarne Kvinge d3a188c8e4 [src] The only stret functions on watchOS are those with return values bigger than 16 bytes. (#122) 2016-06-02 10:51:22 +02:00
Chris Hamons 782c5116b6 [XM] Fix test failures (#119)
* [XM] Fix NSAccessibility binding issue breaking tests

* [XM] Don't run extension tests on OS X that don't have extension support
2016-06-01 12:23:34 -04:00
iain f535df6168 [AppKit] Add some of the missing NSAccessibility bits (#79) 2016-05-31 13:20:34 -04:00
Timothy Risi 9a59f9804b [Mac] fix dontlink and apitests (#98) 2016-05-27 19:41:29 +02:00
Rolf Bjarne Kvinge 7759aa579c [src] Add a Release-bitcode configuration to project files. 2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge ac5ff5e321 [runtime] Replace xamarin_try_get_nsobject with xamarin_has_nsobject.
Removes one usage of ObjectWrapper, since we don't actually need
the return value, we just need to know if an object exists.
2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge fc0f656a53 [runtime] Make xamarin_[create|release]_managed_ref icalls.
This way we can pass pointers to managed objects to the native objects
without the coop GC interfering (since icalls won't automatically
switch to "gc safe" mode).
2016-05-26 17:47:10 +02:00
Rolf Bjarne Kvinge 04b92a91aa [src] Bump Touch.Unit dependency to get HttpTextWriter addition. (#88)
And add the new file to the build.

commit spouliot/Touch.Unit@ffe2a6dcff
Author: Rolf Bjarne Kvinge <rolf@xamarin.com>
Date:   Wed May 25 18:11:59 2016 +0200

    Add a HttpTextWriter that can send logs over http.

    There is no public API to create raw sockets with watchOS, so
    we can't use Tcp directly, thus the need for using Http.
2016-05-26 15:34:47 +02:00
Chris Hamons ca028ea150 [Mac] Add support for os x extensions (#83) 2016-05-25 17:20:33 -04:00
Manuel de la Pena ed746c8a2a [Fix] Overload the == and != operators of the NSUrl class. 2016-05-23 12:54:49 +02:00
Manuel de la Pena 5508aa32f5 [Fix] Add missing selectors for NSExpression.
Added the missing static factory methods and the missing property. In
order to give a clean API a new flag was added to the NSExpression class
to track if the Block property does return a block or a null ptr. The
idea is to avoid user from seeing an obj-c exception.

This commit fixes bug #35012:

https://bugzilla.xamarin.com/show_bug.cgi?id=35012

The evaluation of the NSExpression and the defition of the
NSExpressionHandler have also been fixed since both should be using
NSObjects.
2016-05-19 18:03:55 +02:00
Rolf Bjarne Kvinge 1f1f6991a3 Implement support for exception marshalling. 2016-05-17 11:23:48 +02:00
Rolf Bjarne Kvinge 9b4f7532ab Add runtime variable to specify the exception marshalling modes, and mmp/mtouch options to select it. 2016-05-17 11:20:26 +02:00
Sebastien Pouliot cb90ae8a1f Merge pull request #56 from rolfbjarne/watch-mono
Use a separate mono clone for watchOS.
2016-05-16 17:49:27 -04:00
Rolf Bjarne Kvinge 085b79c8cc [src] Fix path to watchOS-related assemblies. 2016-05-16 14:18:27 +02:00
Manuel de la Pena 173f7e4891 [Fix] Fix bug 24078 by adding the required attrs to generate the events. 2016-05-14 12:47:46 +02:00
Manuel de la Pena fc472cc583 [Fix] Update the generator to help fix 24078 by ignoring certain tagged methods. 2016-05-12 16:34:03 +02:00
Oleg Demchenko b92afa3330 [AudioUnit] Add missing MusicSequence.GetTempoTrack method (#35) 2016-05-10 10:56:40 +02:00
Alex Soto 42303ac9fd [generator] Fix bug 17232 - Invalid class name generated in the Libraries.g.cs file (#33)
https://bugzilla.xamarin.com/show_bug.cgi?id=17232

* Added support for specifying library path in FieldAttribute
* Fixed generator error when Namespaces contains dots `.`
* Added error BI1042 Missing '[Field (LibraryName=value)]' for {field_pi.Name} (e.g."__Internal")
  instead of generating invalid c# code when no LibraryName is provided
  in 3rd party bindings
* Kept support for just using the system library name in FieldAttribute
  (i.e. [Field ("UnboundFooSymbol", "UIKit")]

This does not change our current generated code at all:
https://gist.github.com/dalexsoto/338464a260bc6971e7b665ca9463e8b9
2016-05-05 14:26:47 -04:00
Vincent Dondain 7759852d04 [runtime options] Default tls-provider to Apple TLS (#29) 2016-05-04 15:40:25 -04:00
Manuel de la Pena 860f4f4168 Merge pull request #28 from mandel-macaque/bug-34968
[Fix] Add missing CoreData selectors.
2016-05-04 18:47:23 +02:00
Manuel de la Pena 3a2f4357ea [Fix] Add missing CoreData selectors.
This commit fixes bug #34968:

https://bugzilla.xamarin.com/show_bug.cgi?id=34968
2016-05-04 17:55:04 +02:00
Alex Soto dd06fbb672 [CoreMedia] Add convenience byte [] overloads to CMBlockBuffer API (#26)
reference:
https://trello.com/c/RX7BMktQ/591-verify-coremedia-memory-management-of-public-api
2016-05-04 11:23:26 -04:00
Sebastien Pouliot a7226dd097 Switch to using nunitlite submodule from the mono repo.
It's based on our work, with a few extra commits. That should reduce a
bit the checkout time and ensure more consistent results.

Also bump Touch.Unit since that requires a small API change.
2016-05-04 09:26:23 -04:00
Alex Soto d8ace2658e [Contacts] Fix wrong delegate signature on CNContactStoreEnumerateContactsHandler (#22)
From PR https://github.com/xamarin/xamarin-macios/pull/19

The signature on  `CNContactStoreEnumerateContactsHandler` should
include a `ref`on the `bool stop` parameter in order to have the
ability to early exit the enumeration.

Ref: http://stackoverflow.com/questions/36992982/early-exit-a-cncontactstoreenumeratecontactshandler-enumeration
2016-05-03 12:03:41 -04:00
Oleg Demchenko 1ad1df2bd8 [Foundation] Add null check for Observer cback (#7)
* [Foundation] Add null check to Observer cback

* [Foundation] Rename parameter name from cback to observer
2016-04-28 14:19:45 -04:00
Vincent Dondain 8b400722fb [appkit] Add NSImage lazy initialization
We were missing initByReferencingFile: which initializes
the image object lazily.

The non working use case was:

var iconFile = NSBundle.MainBundle.PathForResource ("AppIcons", "icns");
NSApplication.SharedApplication.ApplicationIconImage = new NSImage (iconFile);

In this example, the constructor is calling initWithContentsOfFile: which will
not load the right icon from the .icns file.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=40349.
2016-04-27 11:07:48 -04:00
Rolf Bjarne Kvinge 56308e7eb6 [mmp/mtouch] Don't mkbundle anymore.
mtouch only uses Xamarin.Mac to read plists, so change to use
our purely managed plist reader in Xamarin.MacDev instead.

That makes us able to change mtouch to be a normal command-line
executable (and project).

Which makes it logical to not mkbundle mtouch anymore,
it executes just fine with the system mono (and there's
no code to protect anymore either).

And since mmp and mtouch share some files, do the same
for mmp.
2016-04-25 18:14:56 -04:00
Rolf Bjarne Kvinge da0ad7e88a Add some documentation to src/README. 2016-04-24 15:35:53 -04:00
Rolf Bjarne Kvinge 5830166c63 Build the platform assemblies. 2016-04-24 14:47:26 -04:00