зеркало из https://github.com/xamarin/mac-samples.git
NSComboBoxTest migrated to unified
This commit is contained in:
Родитель
53003ca83f
Коммит
2dd6d0e726
|
@ -1,8 +1,8 @@
|
|||
using System;
|
||||
using System.Drawing;
|
||||
using MonoMac.Foundation;
|
||||
using MonoMac.AppKit;
|
||||
using MonoMac.ObjCRuntime;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
using AppKit;
|
||||
using ObjCRuntime;
|
||||
|
||||
namespace NSComboBoxTest
|
||||
{
|
||||
|
@ -14,7 +14,7 @@ namespace NSComboBoxTest
|
|||
{
|
||||
}
|
||||
|
||||
public override void FinishedLaunching (NSObject notification)
|
||||
public override void DidFinishLaunching (NSNotification notification)
|
||||
{
|
||||
mainWindowController = new MainWindowController ();
|
||||
mainWindowController.Window.MakeKeyAndOrderFront (this);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
namespace NSComboBoxTest
|
||||
{
|
||||
// Should subclass MonoMac.AppKit.NSResponder
|
||||
[MonoMac.Foundation.Register("AppDelegate")]
|
||||
[Foundation.Register("AppDelegate")]
|
||||
public partial class AppDelegate
|
||||
{
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
using System;
|
||||
using System.Drawing;
|
||||
using MonoMac.Foundation;
|
||||
using MonoMac.AppKit;
|
||||
using MonoMac.ObjCRuntime;
|
||||
using CoreGraphics;
|
||||
using Foundation;
|
||||
using AppKit;
|
||||
using ObjCRuntime;
|
||||
|
||||
namespace NSComboBoxTest
|
||||
{
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using MonoMac.Foundation;
|
||||
using MonoMac.AppKit;
|
||||
using Foundation;
|
||||
using AppKit;
|
||||
|
||||
namespace NSComboBoxTest
|
||||
{
|
||||
public partial class MainWindow : MonoMac.AppKit.NSWindow
|
||||
public partial class MainWindow : AppKit.NSWindow
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// actions made in the Xcode designer. If it is removed, they will be lost.
|
||||
// Manual changes to this file may not be handled correctly.
|
||||
//
|
||||
using MonoMac.Foundation;
|
||||
using Foundation;
|
||||
|
||||
namespace NSComboBoxTest
|
||||
{
|
||||
|
@ -12,7 +12,7 @@ namespace NSComboBoxTest
|
|||
partial class MainWindowController
|
||||
{
|
||||
[Outlet]
|
||||
MonoMac.AppKit.NSComboBox comboBox { get; set; }
|
||||
AppKit.NSComboBox comboBox { get; set; }
|
||||
|
||||
void ReleaseDesignerOutlets ()
|
||||
{
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using MonoMac.Foundation;
|
||||
using MonoMac.AppKit;
|
||||
using Foundation;
|
||||
using AppKit;
|
||||
|
||||
namespace NSComboBoxTest
|
||||
{
|
||||
public partial class MainWindowController : MonoMac.AppKit.NSWindowController
|
||||
public partial class MainWindowController : AppKit.NSWindowController
|
||||
{
|
||||
public MainWindowController (IntPtr handle) : base (handle)
|
||||
{
|
||||
|
|
|
@ -6,11 +6,13 @@
|
|||
<ProductVersion>10.0.0</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{1E53E724-C9C0-464D-93AD-F210CE5A1573}</ProjectGuid>
|
||||
<ProjectTypeGuids>{42C0BBD9-55CE-4FC1-8D90-A7348ABAFB23};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<ProjectTypeGuids>{A3F8F2AB-B479-4A4A-A458-A89E7DC349F1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>NSComboBoxTest</RootNamespace>
|
||||
<MonoMacResourcePrefix>Resources</MonoMacResourcePrefix>
|
||||
<AssemblyName>NSComboBoxTest</AssemblyName>
|
||||
<TargetFrameworkIdentifier>Xamarin.Mac</TargetFrameworkIdentifier>
|
||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
@ -64,8 +66,7 @@
|
|||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="XamMac" />
|
||||
<Reference Include="Xamarin.Mac" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Resources\" />
|
||||
|
@ -89,6 +90,5 @@
|
|||
<ItemGroup>
|
||||
<None Include="Info.plist" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Mac\v0.0\Xamarin.Mac.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Mac\Xamarin.Mac.CSharp.targets" />
|
||||
</Project>
|
Загрузка…
Ссылка в новой задаче