blob: b26b06f793f3a4eddadc2b4fa337e00ab7c63e22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
using System;
using AppKit;
using Foundation;
using ObjCRuntime;
namespace Xamarin.PropertyEditing.Mac
{
internal class BaseSelectorOutlineView : NSOutlineView
{
public BaseSelectorOutlineView ()
{
Initialize ();
}
// Called when created from unmanaged code
public BaseSelectorOutlineView (NativeHandle handle) : base (handle)
{
Initialize ();
}
// Called when created directly from a XIB file
[Export ("initWithCoder:")]
public BaseSelectorOutlineView (NSCoder coder) : base (coder)
{
Initialize ();
}
public override bool ValidateProposedFirstResponder (NSResponder responder, NSEvent forEvent)
{
return true;
}
private void Initialize ()
{
HeaderView = null;
TranslatesAutoresizingMaskIntoConstraints = false;
}
}
}
|