How to display a interface for the view with Objective-C ?

I started developing a payment App with Apple Pay that I will manage to mobilize before the end of 2022. Do you know how to display the NSObject from View Controller header to the screen ?

Kind Regards

Do you know how to display the NSObject from View Controller header to the screen

An NSObject can be used to represent any type in Objective-C, from custom types, to types that are built by the system in core frameworks such as AppKit and UIKit. Note that these types do not necessarily have to be types that are used for display purposes in a ViewController. Can you post a snippet of code so that I can better instruct you on what you are trying to do here?

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com

Here is the code that I'm trying to develop to make the paymant button visible :

//

//  ViewController.m

//  Geaba

//

//  Created by Besleaga Alexandru Marian on 9/29/21.

//



#import "ViewController.h"



@interface ViewController ()



@end



@implementation ViewController



- (void)viewDidLoad {

    [super viewDidLoad];

    // Do any additional setup after loading the view.

}



@end



@interface NSResponder : NSObject



@end



@interface NSView : NSResponder



@end



@interface NSControl : NSView



@end


@interface NSButton : NSControl



@end



typedef enum PKPaymentButtonStyle : NSInteger {

    

    PKPaymentButtonStyleWhite = 0

    

} PKPaymentButtonStyle;



typedef enum PKPaymentButtonType : NSInteger {

    

    PKPaymentButtonTypePlain = 0

    

} PKPaymentButtonType;



@interface PKPaymentButton : NSButton



+ (instancetype)buttonWithType:(PKPaymentButtonType)buttonType

                         style:(PKPaymentButtonStyle)buttonStyle;



@end

My problem is that I want to program the button with no storyboard, I'm trying to create a programmable interface and I can't seam to manage the result to create the first visible interface on screen.

Do you know how to help me ?

How to display a interface for the view with Objective-C ?
 
 
Q