objc_msgSendSuper() public static method

public static objc_msgSendSuper ( IntPtr receiver, string selector, Type rettype ) : object
receiver System.IntPtr
selector string
rettype System.Type
return object
Esempio n. 1
0
 /// <summary>
 /// Instanciates an instance of Font with a specify font name and size.
 /// </summary>
 /// <param name="aFontName">
 /// A fully specified family-face name, such as Helvetica-BoldOblique or Times-Roman.
 /// </param>
 /// <param name="aFontSize">
 /// Used to scale the font. If you use a fontSize of 0.0, this method uses the default User Font size
 /// </param>
 public Font(string aFontName, float aFontSize)
 {
     NativeObject = (IntPtr)ObjCMessaging.objc_msgSendSuper(NativeObject,
                                                            "initWithName:size:",
                                                            typeof(IntPtr),
                                                            typeof(IntPtr), new Cocoa.String(aFontName).NativeObject, /// Name
                                                            typeof(float), aFontSize                                  /// Size
                                                            );
 }
Esempio n. 2
0
 public View(Rect frame) : base()
 {
     if (this.GetType().IsSubclassOf(typeof(View)))
     {
         NativeObject = (IntPtr)ObjCMessaging.objc_msgSendSuper(NativeObject, "initWithFrame:", typeof(IntPtr), typeof(Rect), frame);
     }
     else
     {
         throw new ArgumentException("initWithFrame: directly on NSView is unsupported");
     }
 }