blob: e18c1976e407fbb67e7cb933143f5a8d8a339485 (
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
|
using System;
using AppKit;
using Foundation;
namespace Xamarin.PropertyEditing.Mac
{
internal class BaseSelectorOutlineView : NSOutlineView
{
public BaseSelectorOutlineView ()
{
Initialize ();
}
// Called when created from unmanaged code
public BaseSelectorOutlineView (IntPtr 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;
}
}
}
|