Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename internally used selector to not match an internal Apple selector.

Support case #29200 a customer got a warning about the non-public selector
'apply' when submitting to the app store. Rename our selector so that it
doesn't clash with whatever Apple's doing.
  • Loading branch information...
commit 5a48503fb08962eca194ee1da8d9cf0469503ab6 1 parent a9dae40
@rolfbjarne rolfbjarne authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Foundation/NSAction.cs
View
6 src/Foundation/NSAction.cs
@@ -33,7 +33,7 @@ namespace MonoMac.Foundation {
// Use this for synchronous operations
[Register ("__MonoMac_NSActionDispatcher")]
internal sealed class NSActionDispatcher : NSObject {
- public const string SelectorName = "apply";
+ public const string SelectorName = "xamarinApplySelector";
public static readonly Selector Selector = new Selector (SelectorName);
readonly NSAction action;
@@ -46,7 +46,7 @@ public NSActionDispatcher (NSAction action)
this.action = action;
}
- [Export ("apply")]
+ [Export (SelectorName)]
[Preserve (Conditional = true)]
public void Apply ()
{
@@ -79,7 +79,7 @@ public NSAsyncActionDispatcher (NSAction action)
gch = GCHandle.Alloc (this);
}
- [Export ("apply")]
+ [Export (NSActionDispatcher.SelectorName)]
[Preserve (Conditional = true)]
public void Apply ()
{
Please sign in to comment.
Something went wrong with that request. Please try again.