Permalink
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...
1 parent a9dae40 commit 5a48503fb08962eca194ee1da8d9cf0469503ab6 @rolfbjarne rolfbjarne committed Mar 22, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 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 ()
{

0 comments on commit 5a48503

Please sign in to comment.