Andrea F
Andrea F

Reputation: 733

creating an NSViewController

Probably a very simple question. I'm trying to create a series of circles that would be like checkboxes or change colour when you click them. Just to begin I'm trying to initialise a rectangle. I've read that it needs to be an NSView subclass but I'm not sure what that is because it's not an option in the Objective-C class list. Which subclass should I use?

Upvotes: 0

Views: 108

Answers (1)

Undo
Undo

Reputation: 25687

NSView is for OS X development.

UIView is its iOS counterpart.

Use UIView.

In fact, you'll find this relationship true of many UI classes:

  • NSView > UIView
  • NSTableView > UITableView
  • NSSlider > UISlider
  • NSTextField > UITextField
  • And on and on and on...

Upvotes: 2

Related Questions