70
76
<AssemblyVersion>0.0.0.0</AssemblyVersion>
80
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
73
84
<Parameter Name="t" Type="MonoMac.Foundation.NSObjectFlag" />
76
87
<param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
77
<summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
88
<summary>Constructor to call on derived classes when the derived class has an [Export] constructor.</summary>
79
<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>
80
<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>
81
<para>It is your responsability to completely initialize the object if you chain up using the NSObjectFlag.Empty path.</para>
82
<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>
83
<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>
90
<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>
87
// The NSObjectFlag merely allocates the object and registers the
88
// C# class with the Objective-C runtime if necessary, but no actual
89
// initXxx method is invoked, that is done later in the constructor
91
// This is taken from MonoMac's source code:
93
[Export ("initWithFrame:")]
94
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
96
// Invoke the init method now.
97
var initWithFrame = new Selector ("initWithFrame:").Handle;
99
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_RectangleF (this.Handle, initWithFrame, frame);
101
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_RectangleF (this.SuperHandle, initWithFrame, frame);
93
public class MyClass : BaseClass {
94
[Export ("initWithFoo:")]
95
public MyClass (string foo) : base (NSObjectFlag.Empty)
134
135
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
137
<summary>To be added.</summary>
138
<value>To be added.</value>
138
<summary>Represents the value associated with the constant IKImageBrowserCGImageRepresentationType</summary>
139
141
<remarks>To be added.</remarks>
150
152
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
153
<summary>To be added.</summary>
154
<value>To be added.</value>
155
<summary>Represents the value associated with the constant IKImageBrowserCGImageSourceRepresentationType</summary>
155
158
<remarks>To be added.</remarks>
166
169
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
169
<summary>To be added.</summary>
170
<value>To be added.</value>
172
<summary>Represents the value associated with the constant IKImageBrowserIconRefPathRepresentationType</summary>
171
175
<remarks>To be added.</remarks>
182
186
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
185
<summary>To be added.</summary>
186
<value>To be added.</value>
189
<summary>Represents the value associated with the constant IKImageBrowserIconRefRepresentationType</summary>
187
192
<remarks>To be added.</remarks>
345
350
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
348
<summary>To be added.</summary>
349
<value>To be added.</value>
353
<summary>Represents the value associated with the constant IKImageBrowserNSBitmapImageRepresentationType</summary>
350
356
<remarks>To be added.</remarks>
361
367
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
364
<summary>To be added.</summary>
365
<value>To be added.</value>
370
<summary>Represents the value associated with the constant IKImageBrowserNSDataRepresentationType</summary>
366
373
<remarks>To be added.</remarks>
377
384
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
380
<summary>To be added.</summary>
381
<value>To be added.</value>
387
<summary>Represents the value associated with the constant IKImageBrowserNSImageRepresentationType</summary>
382
390
<remarks>To be added.</remarks>
393
401
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
396
<summary>To be added.</summary>
397
<value>To be added.</value>
404
<summary>Represents the value associated with the constant IKImageBrowserNSURLRepresentationType</summary>
398
407
<remarks>To be added.</remarks>
409
418
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
412
<summary>To be added.</summary>
413
<value>To be added.</value>
421
<summary>Represents the value associated with the constant IKImageBrowserPathRepresentationType</summary>
414
424
<remarks>To be added.</remarks>
425
435
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
428
<summary>To be added.</summary>
429
<value>To be added.</value>
438
<summary>Represents the value associated with the constant IKImageBrowserPDFPageRepresentationType</summary>
430
441
<remarks>To be added.</remarks>
441
452
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
444
<summary>To be added.</summary>
445
<value>To be added.</value>
455
<summary>Represents the value associated with the constant IKImageBrowserQCCompositionPathRepresentationType</summary>
446
458
<remarks>To be added.</remarks>
457
469
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
460
<summary>To be added.</summary>
461
<value>To be added.</value>
472
<summary>Represents the value associated with the constant IKImageBrowserQCCompositionRepresentationType</summary>
462
475
<remarks>To be added.</remarks>
473
486
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
476
<summary>To be added.</summary>
477
<value>To be added.</value>
489
<summary>Represents the value associated with the constant IKImageBrowserQTMoviePathRepresentationType</summary>
478
492
<remarks>To be added.</remarks>
489
503
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
492
<summary>To be added.</summary>
493
<value>To be added.</value>
506
<summary>Represents the value associated with the constant IKImageBrowserQTMovieRepresentationType</summary>
494
509
<remarks>To be added.</remarks>
505
520
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
508
<summary>To be added.</summary>
509
<value>To be added.</value>
523
<summary>Represents the value associated with the constant IKImageBrowserQuickLookPathRepresentationType</summary>
510
526
<remarks>To be added.</remarks>