Skip to content

Commit

Permalink
Merge pull request #10 from HinTak/master
Browse files Browse the repository at this point in the history
Update to build for xamarin.mac unified api
  • Loading branch information
James Clancey committed Jun 20, 2016
2 parents 41e5830 + 85ea889 commit ae41273
Show file tree
Hide file tree
Showing 87 changed files with 132 additions and 130 deletions.
4 changes: 2 additions & 2 deletions BasicMenu/BasicMenu.csproj
Expand Up @@ -57,8 +57,8 @@
</Compile>
</ItemGroup>
<ItemGroup>
<InterfaceDefinition Include="MainWindow.xib" xmlns="" />
<InterfaceDefinition Include="MainMenu.xib" xmlns="" />
<InterfaceDefinition Include="MainWindow.xib" />
<InterfaceDefinition Include="MainMenu.xib" />
</ItemGroup>
<ItemGroup>
<None Include="Info.plist" />
Expand Down
2 changes: 1 addition & 1 deletion ListboxSample/ListboxSample.csproj
Expand Up @@ -50,7 +50,7 @@
</Compile>
</ItemGroup>
<ItemGroup>
<InterfaceDefinition Include="MainMenu.xib" xmlns="" />
<InterfaceDefinition Include="MainMenu.xib" />
</ItemGroup>
<ItemGroup>
<None Include="Info.plist" />
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/CocoaHelpers/ComboBoxHelper.cs
Expand Up @@ -12,7 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.AppKit;
using AppKit;
using System.Drawing;
namespace System.Windows.Forms
{
Expand Down
4 changes: 2 additions & 2 deletions MonoMac.Windows.Forms/CocoaHelpers/ContextMenuHelper.cs
Expand Up @@ -12,8 +12,8 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.AppKit;
using MonoMac.ObjCRuntime;
using AppKit;
using ObjCRuntime;
namespace System.Windows.Forms
{
internal class ContextMenuHelper : NSMenu
Expand Down
4 changes: 2 additions & 2 deletions MonoMac.Windows.Forms/CocoaHelpers/FileDialogHelper.cs
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
using System;
using MonoMac.AppKit;
using AppKit;
using System.Threading;
namespace System.Windows.Forms
{
Expand All @@ -27,7 +27,7 @@ public FileDialogHelper (CommonDialog host)
this.CanChooseFiles = true;
this.CanChooseDirectories = false;
}
public override void Cancel (MonoMac.Foundation.NSObject sender)
public override void Cancel (Foundation.NSObject sender)
{
if(CancelEvent != null)
CancelEvent(this,null);
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/CocoaHelpers/FlippedView.cs
Expand Up @@ -12,7 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.AppKit;
using AppKit;

namespace System.Windows.Forms
{
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/CocoaHelpers/FolderDialogHelper.cs
Expand Up @@ -12,7 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.AppKit;
using AppKit;
namespace System.Windows.Forms
{
internal class FolderDialogHelper : FileDialogHelper
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/CocoaHelpers/GroupBoxHelper.cs
Expand Up @@ -12,7 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.AppKit;
using AppKit;
using System.Drawing;
namespace System.Windows.Forms
{
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/CocoaHelpers/MenuItemHelper.cs
Expand Up @@ -12,7 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.AppKit;
using AppKit;
namespace System.Windows.Forms
{
public class MenuItemHelper : NSMenuItem
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/CocoaHelpers/TabViewHelper.cs
Expand Up @@ -12,7 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.AppKit;
using AppKit;
namespace System.Windows.Forms
{
internal class TabViewHelper : NSTabView , IViewHelper
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/CocoaHelpers/TabViewItemHelper.cs
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using System.Windows.Forms;
using MonoMac.AppKit;
using AppKit;
using System.Drawing;

namespace System.Windows.Forms
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/CocoaHelpers/TableViewHelper.cs
Expand Up @@ -12,7 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.AppKit;
using AppKit;
using System.Drawing;
namespace System.Windows.Forms
{
Expand Down
4 changes: 2 additions & 2 deletions MonoMac.Windows.Forms/CocoaHelpers/TextBoxHelper.cs
Expand Up @@ -12,8 +12,8 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.AppKit;
using MonoMac.Foundation;
using AppKit;
using Foundation;
using System.Drawing;
namespace System.Windows.Forms
{
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/CocoaHelpers/ToolBarHelper.cs
Expand Up @@ -12,7 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.AppKit;
using AppKit;
using System.Linq;
using System.Collections.Generic;
using System.Collections;
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/CocoaHelpers/UpDownSpinner.cs
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using System.Drawing;
using MonoMac.AppKit;
using AppKit;
namespace System.Windows.Forms
{
internal sealed class UpDownSpinner : Control
Expand Down
6 changes: 3 additions & 3 deletions MonoMac.Windows.Forms/CocoaHelpers/UpDownSpinnerHelper.cs
Expand Up @@ -12,23 +12,23 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.AppKit;
using AppKit;
namespace System.Windows.Forms
{
internal class UpDownSpinnerHelper: NSStepper, IViewHelper
{
public UpDownSpinnerHelper ()
{
}
public override void DidChange (MonoMac.Foundation.NSKeyValueChange changeKind, MonoMac.Foundation.NSIndexSet indexes, MonoMac.Foundation.NSString forKey)
public override void DidChange (Foundation.NSKeyValueChange changeKind, Foundation.NSIndexSet indexes, Foundation.NSString forKey)
{
base.DidChange (changeKind, indexes, forKey);
}
public override void DidChangeValue (string forKey)
{
base.DidChangeValue (forKey);
}
public override void DidChange (MonoMac.Foundation.NSString forKey, MonoMac.Foundation.NSKeyValueSetMutationKind mutationKind, MonoMac.Foundation.NSSet objects)
public override void DidChange (Foundation.NSString forKey, Foundation.NSKeyValueSetMutationKind mutationKind, Foundation.NSSet objects)
{
base.DidChange (forKey, mutationKind, objects);
}
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/CocoaHelpers/ViewHelper.cs
Expand Up @@ -12,7 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.AppKit;
using AppKit;
using System.Drawing;
namespace System.Windows.Forms
{
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/EventArgs/KeyEventArgs.cs
@@ -1,4 +1,4 @@
using MonoMac.AppKit;
using AppKit;
namespace System.Windows.Forms
{
using System;
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/Extenders/ColorExtenders.cs
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using System.Drawing;
using MonoMac.AppKit;
using AppKit;
namespace System.Windows.Forms
{
public static class ColorExtenders
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/Extenders/FontExtender.cs
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using System.Drawing;
using MonoMac.AppKit;
using AppKit;
namespace System.Windows.Forms
{
public static class FontExtender
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/Extenders/ImageExtenders.cs
Expand Up @@ -12,7 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.AppKit;
using AppKit;
using System.Drawing;
using System.Drawing.Imaging;

Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/Extenders/MiscExtenders.cs
Expand Up @@ -12,7 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.AppKit;
using AppKit;
namespace System.Windows.Forms
{
public static class MiscExtenders
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/Extenders/NSIndexSetExtender.cs
Expand Up @@ -12,7 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.Foundation;
using Foundation;
using System.Collections.Generic;
namespace System.Windows.Forms
{
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/Extenders/NSViewExtender.cs
Expand Up @@ -12,7 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.AppKit;
using AppKit;
using System.Linq;
namespace System.Windows.Forms
{
Expand Down
2 changes: 1 addition & 1 deletion MonoMac.Windows.Forms/Interfaces/IViewHelper.cs
@@ -1,5 +1,5 @@
using System;
using MonoMac.AppKit;
using AppKit;
namespace System.Windows.Forms
{
public interface IViewHelper
Expand Down
4 changes: 2 additions & 2 deletions MonoMac.Windows.Forms/MainWindow.xib.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions MonoMac.Windows.Forms/System.Windows.Forms.csproj
Expand Up @@ -49,9 +49,8 @@
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Xml" />
<Reference Include="MonoMac, Version=0.0.0.0, Culture=neutral">
<Private>False</Private>
<Package>monodevelop-core-mac-addins</Package>
<Reference Include="Xamarin.Mac">
<HintPath>..\References\Xamarin.Mac.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -462,4 +461,4 @@
<None Include="test-results\MonoMac.Windows.Forms.csproj.test-cache" />
<None Include="System.Windows.Forms\ScrollableControl_Old.cs" />
</ItemGroup>
</Project>
</Project>
6 changes: 3 additions & 3 deletions MonoMac.Windows.Forms/System.Windows.Forms/Application.cs
@@ -1,11 +1,11 @@
using System;
using MonoMac.AppKit;
using MonoMac.Foundation;
using AppKit;
using Foundation;
using System.IO;

namespace System.Windows.Forms
{
[MonoMac.Foundation.Register("Form")]
[Foundation.Register("Form")]
public partial class Application : NSApplication
{
static ApplicationContext context;
Expand Down
@@ -1,10 +1,10 @@
using System;
using MonoMac.AppKit;
using AppKit;
using System.Drawing;
namespace System.Windows.Forms
{

[MonoMac.Foundation.Register("AppDelegate")]
[Foundation.Register("AppDelegate")]
public class ApplicationContext : NSApplicationDelegate
{
Form main_form;
Expand All @@ -18,7 +18,7 @@ public ApplicationContext (Func<Form> mainForm) : base()
mainFormFunc = mainForm;
}

public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
public override void FinishedLaunching (Foundation.NSObject notification)
{
if (mainFormFunc != null)
main_form = mainFormFunc ();
Expand Down Expand Up @@ -59,7 +59,7 @@ protected virtual void Dispose (bool disposing)
{
MainForm = null;
}
public override void WillTerminate (MonoMac.Foundation.NSNotification notification)
public override void WillTerminate (Foundation.NSNotification notification)
{
OnMainFormClosed (notification.Object, new EventArgs ());
//base.WillTerminate (notification);
Expand Down
6 changes: 3 additions & 3 deletions MonoMac.Windows.Forms/System.Windows.Forms/Button.cocoa.cs
@@ -1,7 +1,7 @@
using System;
using MonoMac.AppKit;
using MonoMac.ObjCRuntime;
using MonoMac.Foundation;
using AppKit;
using ObjCRuntime;
using Foundation;
using System.Drawing;
using System.Collections.Generic;
namespace System.Windows.Forms
Expand Down
Expand Up @@ -3,7 +3,7 @@
using System.Drawing;
using System.Drawing.Text;
using System.Runtime.InteropServices;
using MonoMac.AppKit;
using AppKit;
namespace System.Windows.Forms
{
public abstract partial class ButtonBase
Expand Down
Expand Up @@ -2,7 +2,7 @@
using System.ComponentModel;
using System.Drawing;
using System.Runtime.InteropServices;
using MonoMac.AppKit;
using AppKit;
namespace System.Windows.Forms
{
public partial class CheckBox
Expand Down
Expand Up @@ -12,7 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.using System;
using MonoMac.Foundation;
using Foundation;
namespace System.Windows.Forms
{
//TODO: Create
Expand Down
4 changes: 2 additions & 2 deletions MonoMac.Windows.Forms/System.Windows.Forms/ComboBox.cocoa.cs
Expand Up @@ -20,8 +20,8 @@
using System.Globalization;
using System.Reflection;
using System.Runtime.InteropServices;
using MonoMac.AppKit;
using MonoMac.Foundation;
using AppKit;
using Foundation;
using System.Linq;
using System.Collections.Generic;
namespace System.Windows.Forms
Expand Down
Expand Up @@ -12,8 +12,8 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using MonoMac.AppKit;
using MonoMac.Foundation;
using AppKit;
using Foundation;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design;
Expand Down

0 comments on commit ae41273

Please sign in to comment.