67
73
<AssemblyVersion>0.0.0.0</AssemblyVersion>
77
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
70
81
<Parameter Name="t" Type="MonoMac.Foundation.NSObjectFlag" />
73
84
<param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
74
<summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
85
<summary>Constructor to call on derived classes when the derived class has an [Export] constructor.</summary>
76
<para>This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the NSObject. This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object. When you invoke the constructor that takes the NSObjectFlag.Empty you taking advatnage of a direct path that goes all the way up to NSObject to merely allocate the object's memory and bind the Objective-C and C# objects together. The actual initialization of the object is up to you.</para>
77
<para>This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place. Once the allocation has taken place, the constructor has to initialize the object. With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.</para>
78
<para>It is your responsability to completely initialize the object if you chain up using the NSObjectFlag.Empty path.</para>
79
<para>In general, if your constructors invokes the NSObjectFlag.Empty base implementation, then it should be calling an Objective-C init method. If this is not the case, you should instead chain to the proper constructor in your class. </para>
80
<para>The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic NSObject allocation and runtime type registration. Typically the chaining would look like this:</para>
87
<para>This constructor should be called by derived classes when they are initialized using an [Export] attribute. The argument value is ignore, typically the chaining would look like this:</para>
84
// The NSObjectFlag merely allocates the object and registers the
85
// C# class with the Objective-C runtime if necessary, but no actual
86
// initXxx method is invoked, that is done later in the constructor
88
// This is taken from MonoMac's source code:
90
[Export ("initWithFrame:")]
91
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
93
// Invoke the init method now.
94
var initWithFrame = new Selector ("initWithFrame:").Handle;
96
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_RectangleF (this.Handle, initWithFrame, frame);
98
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_RectangleF (this.SuperHandle, initWithFrame, frame);
90
public class MyClass : BaseClass {
91
[Export ("initWithFoo:")]
92
public MyClass (string foo) : base (NSObjectFlag.Empty)
324
325
<param name="disposing">
325
326
<para>If set to <see langword="true" />, the method is invoked directly and will dispose manage and unmanaged resources; If set to <see langword="false" /> the method is being called by the garbage collector finalizer and should only release unmanaged resources.</para>
327
<summary>Releases the resourced used by the NSPasteboard object.</summary>
328
<summary>Releases the resources used by the NSPasteboard object.</summary>
329
330
<para>This Dispose method releases the resources used by the NSPasteboard class.</para>
330
331
<para>This method is called by both the Dispose() method and the object finalizer (Finalize). When invoked by the Dispose method, the parameter disposting <paramref name="disposing" /> is set to <see langword="true" /> and any managed object references that this object holds are also disposed or released; when invoked by the object finalizer, on the finalizer thread the value is set to <see langword="false" />. </para>
536
537
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
539
<summary>To be added.</summary>
540
<value>To be added.</value>
540
<summary>Represents the value associated with the constant NSColorPboardType</summary>
541
543
<remarks>To be added.</remarks>
552
554
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
555
<summary>To be added.</summary>
556
<value>To be added.</value>
557
<summary>Represents the value associated with the constant NSDragPboard</summary>
557
560
<remarks>To be added.</remarks>
568
571
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
571
<summary>To be added.</summary>
572
<value>To be added.</value>
574
<summary>Represents the value associated with the constant NSFileContentsPboardType</summary>
573
577
<remarks>To be added.</remarks>
584
588
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
587
<summary>To be added.</summary>
588
<value>To be added.</value>
591
<summary>Represents the value associated with the constant NSFilenamesPboardType</summary>
589
594
<remarks>To be added.</remarks>
600
605
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
603
<summary>To be added.</summary>
604
<value>To be added.</value>
608
<summary>Represents the value associated with the constant NSFilesPromisePboardType</summary>
605
611
<remarks>To be added.</remarks>
616
622
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
619
<summary>To be added.</summary>
620
<value>To be added.</value>
625
<summary>Represents the value associated with the constant NSFindPboard</summary>
621
628
<remarks>To be added.</remarks>
632
639
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
635
<summary>To be added.</summary>
636
<value>To be added.</value>
642
<summary>Represents the value associated with the constant NSFontPboard</summary>
637
645
<remarks>To be added.</remarks>
648
656
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
651
<summary>To be added.</summary>
652
<value>To be added.</value>
659
<summary>Represents the value associated with the constant NSFontPboardType</summary>
653
662
<remarks>To be added.</remarks>
664
673
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
667
<summary>To be added.</summary>
668
<value>To be added.</value>
676
<summary>Represents the value associated with the constant NSGeneralPboard</summary>
669
679
<remarks>To be added.</remarks>
680
690
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
683
<summary>To be added.</summary>
684
<value>To be added.</value>
693
<summary>Represents the value associated with the constant NSHTMLPboardType</summary>
685
696
<remarks>To be added.</remarks>
696
707
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
699
<summary>To be added.</summary>
700
<value>To be added.</value>
710
<summary>Represents the value associated with the constant NSMultipleTextSelectionPboardType</summary>
701
713
<remarks>To be added.</remarks>
712
724
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
715
<summary>To be added.</summary>
716
<value>To be added.</value>
727
<summary>Represents the value associated with the constant NSPDFPboardType</summary>
717
730
<remarks>To be added.</remarks>
728
741
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
731
<summary>To be added.</summary>
732
<value>To be added.</value>
744
<summary>Represents the value associated with the constant NSPICTPboardType</summary>
733
747
<remarks>To be added.</remarks>
744
758
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
747
<summary>To be added.</summary>
748
<value>To be added.</value>
761
<summary>Represents the value associated with the constant NSPostScriptPboardType</summary>
749
764
<remarks>To be added.</remarks>
760
775
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
763
<summary>To be added.</summary>
764
<value>To be added.</value>
778
<summary>Represents the value associated with the constant NSRTFDPboardType</summary>
765
781
<remarks>To be added.</remarks>
776
792
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
779
<summary>To be added.</summary>
780
<value>To be added.</value>
795
<summary>Represents the value associated with the constant NSRTFPboardType</summary>
781
798
<remarks>To be added.</remarks>
792
809
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
795
<summary>To be added.</summary>
796
<value>To be added.</value>
812
<summary>Represents the value associated with the constant NSRulerPboard</summary>
797
815
<remarks>To be added.</remarks>
808
826
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
811
<summary>To be added.</summary>
812
<value>To be added.</value>
829
<summary>Represents the value associated with the constant NSRulerPboardType</summary>
813
832
<remarks>To be added.</remarks>
824
843
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
827
<summary>To be added.</summary>
828
<value>To be added.</value>
846
<summary>Represents the value associated with the constant NSStringPboardType</summary>
829
849
<remarks>To be added.</remarks>
840
860
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
843
<summary>To be added.</summary>
844
<value>To be added.</value>
863
<summary>Represents the value associated with the constant NSTabularTextPboardType</summary>
845
866
<remarks>To be added.</remarks>
856
877
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
859
<summary>To be added.</summary>
860
<value>To be added.</value>
880
<summary>Represents the value associated with the constant NSTIFFPboardType</summary>
861
883
<remarks>To be added.</remarks>
872
894
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
875
<summary>To be added.</summary>
876
<value>To be added.</value>
897
<summary>Represents the value associated with the constant NSURLPboardType</summary>
877
900
<remarks>To be added.</remarks>
888
911
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
891
<summary>To be added.</summary>
892
<value>To be added.</value>
914
<summary>Represents the value associated with the constant NSVCardPboardType</summary>
893
917
<remarks>To be added.</remarks>