Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ReactiveUI_Mac64 project, updated usings #797

Merged
merged 1 commit into from
Feb 8, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CommonAssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Reflection;
using System.Reflection;

[assembly: AssemblyVersion("6.3.1")]
[assembly: AssemblyFileVersion("6.3.1")]
3 changes: 0 additions & 3 deletions ReactiveUI.Tests/ReactiveUI.Tests_Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,4 @@
<Name>ReactiveUI_Android</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Android\" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion ReactiveUI/AutoPersistHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ReactiveUI;
using ReactiveUI;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
Expand Down
2 changes: 1 addition & 1 deletion ReactiveUI/BindingTypeConverters.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Reflection;
Expand Down
12 changes: 9 additions & 3 deletions ReactiveUI/Cocoa/AppKitAutoSuspendHelper.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
using System;
using System;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Subjects;
using System.Reactive.Linq;
using MonoMac.Foundation;
using MonoMac.AppKit;
using System.Reactive.Disposables;
using Splat;

#if UNIFIED
using AppKit;
using Foundation;
#else
using MonoMac.AppKit;
using MonoMac.Foundation;
#endif

namespace ReactiveUI
{
public class AutoSuspendHelper : IEnableLogger
Expand Down
4 changes: 3 additions & 1 deletion ReactiveUI/Cocoa/AutoLayoutViewModelViewHost.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#if UNIFIED && UIKIT
#if UNIFIED && UIKIT
using NSView = UIKit.UIView;
#elif UNIFIED && COCOA
using AppKit;
#elif UIKIT
using NSView = MonoTouch.UIKit.UIView;
#else
Expand Down
4 changes: 3 additions & 1 deletion ReactiveUI/Cocoa/CocoaDefaultPropertyBinding.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using System;
using System.Linq;

#if UNIFIED
#if UNIFIED && UIKIT
using UIKit;
#elif UNIFIED && COCOA
using AppKit;
#elif UIKIT
using MonoTouch.UIKit;
#else
Expand Down
10 changes: 5 additions & 5 deletions ReactiveUI/Cocoa/KVOObservableForProperty.cs
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Reactive;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Reflection;
using ReactiveUI;
using System.Runtime.InteropServices;
using ReactiveUI;
using Splat;

#if UNIFIED
using Foundation;
#if UNIFIED && UIKIT
using UIKit;
using Foundation;
#elif UNIFIED && COCOA
using Foundation;
#elif UIKIT
using MonoTouch.UIKit;
using MonoTouch.Foundation;
#else
using MonoMac.AppKit;
using MonoMac.Foundation;
#endif

Expand Down
7 changes: 1 addition & 6 deletions ReactiveUI/Cocoa/NSRunloopScheduler.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
using System;
using System.Linq;
using System.Collections.Generic;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;

#if UNIFIED
using UIKit;
using Foundation;
using CoreFoundation;
using Foundation;
using NSAction = System.Action;
#elif UIKIT
using MonoTouch.UIKit;
using MonoTouch.Foundation;
using MonoTouch.CoreFoundation;
#else
using MonoMac.AppKit;
using MonoMac.Foundation;
using MonoMac.CoreFoundation;
#endif
Expand Down
5 changes: 1 addition & 4 deletions ReactiveUI/Cocoa/PlatformOperations.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace ReactiveUI
{
/// <summary>
Expand All @@ -9,7 +7,7 @@ public class PlatformOperations : IPlatformOperations
{
public string GetOrientation()
{
#if UNIFIED
#if UNIFIED && UIKIT
return UIKit.UIDevice.CurrentDevice.Orientation.ToString();
#elif UIKIT
return MonoTouch.UIKit.UIDevice.CurrentDevice.Orientation.ToString();
Expand All @@ -19,4 +17,3 @@ public string GetOrientation()
}
}
}

15 changes: 11 additions & 4 deletions ReactiveUI/Cocoa/ReactiveControl.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
using System;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Subjects;

#if UNIFIED
using CoreGraphics;
using Foundation;
using UIKit;
using CoreGraphics;
#elif UIKIT
using MonoTouch.Foundation;
using MonoTouch.UIKit;
#else
using MonoMac.Foundation;
using MonoMac.AppKit;
using MonoMac.Foundation;
using UIControl = MonoMac.AppKit.NSControl;
#endif

#if UNIFIED && UIKIT
using UIKit;
#elif UNIFIED && COCOA
using AppKit;
using UIControl = AppKit.NSControl;
#endif


namespace ReactiveUI
{
public class ReactiveControl : UIControl, IReactiveNotifyPropertyChanged<ReactiveControl>, IHandleObservableErrors, IReactiveObject, ICanActivate, ICanForceManualActivation
Expand Down
24 changes: 9 additions & 15 deletions ReactiveUI/Cocoa/ReactiveImageView.cs
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.Contracts;
using System.Drawing;
using System.Linq;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Reactive.Subjects;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
using System.Threading;
using ReactiveUI;
using Splat;

#if UNIFIED
using CoreGraphics;
using Foundation;
using UIKit;
using NSImage = UIKit.UIImage;
using NSImageView = UIKit.UIImageView;
using NSView = UIKit.UIView;
#elif UIKIT
using MonoTouch.Foundation;
using MonoTouch.UIKit;
Expand All @@ -32,6 +18,15 @@
using MonoMac.AppKit;
#endif

#if UNIFIED && UIKIT
using UIKit;
using NSImage = UIKit.UIImage;
using NSImageView = UIKit.UIImageView;
using NSView = UIKit.UIView;
#elif UNIFIED && COCOA
using AppKit;
#endif


namespace ReactiveUI
{
Expand Down Expand Up @@ -121,4 +116,3 @@ void ICanForceManualActivation.Activate(bool activate)
}
}
}

18 changes: 7 additions & 11 deletions ReactiveUI/Cocoa/ReactiveNSView.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.Contracts;
using System.Drawing;
using System.Linq;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Reactive.Subjects;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
using System.Threading;
using Splat;

#if UNIFIED
using CoreGraphics;
using Foundation;
using NSView = UIKit.UIView;
using UIKit;
#elif UIKIT
using MonoTouch.Foundation;
using MonoTouch.UIKit;
Expand All @@ -28,6 +17,13 @@
using MonoMac.Foundation;
#endif

#if UNIFIED && UIKIT
using NSView = UIKit.UIView;
using UIKit;
#elif UNIFIED && COCOA
using AppKit;
#endif

namespace ReactiveUI
{
/// <summary>
Expand Down
26 changes: 10 additions & 16 deletions ReactiveUI/Cocoa/ReactiveNSViewController.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
using System;
using System.Drawing;
using System.Runtime.Serialization;
using System.Reactive.Subjects;
using System.Reactive.Concurrency;
using System.Reflection;
using System.ComponentModel;
using System.Linq;
using System.Threading;
using System.Reactive.Disposables;
using System.Diagnostics.Contracts;
using System.Runtime.CompilerServices;
using System.Collections.Generic;
using Splat;
using System.Reactive;
using System.Reactive.Subjects;

#if UNIFIED
using UIKit;
using Foundation;
using NSViewController = UIKit.UIViewController;
#elif UIKIT
using MonoTouch.UIKit;
using MonoTouch.Foundation;
Expand All @@ -27,6 +14,13 @@
using MonoMac.Foundation;
#endif

#if UNIFIED && UIKIT
using UIKit;
using NSViewController = UIKit.UIViewController;
#elif UNIFIED && COCOA
using AppKit;
#endif

namespace ReactiveUI
{
/// <summary>
Expand Down Expand Up @@ -134,12 +128,12 @@ public override void ViewDidDisappear(bool animated)
#if UIKIT || UNIFIED
static class UIViewControllerMixins
{
internal static void ActivateSubviews(this UIViewController This, bool activate)
internal static void ActivateSubviews(this NSViewController This, bool activate)
{
This.View.ActivateSubviews(activate);
}

static void ActivateSubviews(this UIView This, bool activate)
static void ActivateSubviews(this NSView This, bool activate)
{
foreach (var view in This.Subviews) {
var subview = view as ICanForceManualActivation;
Expand Down
12 changes: 9 additions & 3 deletions ReactiveUI/Cocoa/ReactiveNSWindowController.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
using System;
using MonoMac.AppKit;
using MonoMac.Foundation;
using System;
using System.ComponentModel;
using System.Reactive.Subjects;
using System.Reactive;

#if UNIFIED
using AppKit;
using Foundation;
#else
using MonoMac.AppKit;
using MonoMac.Foundation;
#endif

namespace ReactiveUI
{
public class ReactiveWindowController : NSWindowController, IReactiveNotifyPropertyChanged<ReactiveWindowController>, IHandleObservableErrors, IReactiveObject, ICanActivate
Expand Down
9 changes: 4 additions & 5 deletions ReactiveUI/Cocoa/RoutedViewHost.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
using System;
using ReactiveUI;
using System.Linq;
using System.Reactive.Linq;
using ReactiveUI;

#if UNIFIED
#if UNIFIED && UIKIT
using UIKit;

using NSView = UIKit.UIView;
using NSViewController = UIKit.UIViewController;
#elif UNIFIED && COCOA
using AppKit;
#elif UIKIT
using MonoTouch.UIKit;

using NSView = MonoTouch.UIKit.UIView;
using NSViewController = MonoTouch.UIKit.UIViewController;
#else
Expand Down
12 changes: 8 additions & 4 deletions ReactiveUI/Cocoa/TargetActionCommandBinder.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Reflection;
using System.Windows.Input;
using ReactiveUI;
using System.Reactive.Disposables;
using System.Reactive.Linq;

#if UNIFIED
using Foundation;
using ObjCRuntime;
using UIKit;
#elif UIKIT
using MonoTouch.Foundation;
using MonoTouch.ObjCRuntime;
Expand All @@ -21,6 +19,12 @@
using MonoMac.ObjCRuntime;
#endif

#if UNIFIED && UIKIT
using UIKit;
#elif UNIFIED && COCOA
using AppKit;
#endif

namespace ReactiveUI
{
/// <summary>
Expand Down
Loading