![]() ![]() So, as a rule of thumb, if you are wondering if some iOS control you know and love may already exist in Mac, you can try and look for the same class with NS. So, some of them just changed the NS preffix used in Mac to the UI preffix used in iOS. ![]() Lots user interface classes in that are in UIKit were originally derived from classes that already existed in OSX’s AppKit. If you’re familiar with iOS programming, you may be able to see a pattern here. In OSX, the control is called NSTableView (similar to UITableView in iOS). For that, you are going to need a table view. The first thing your app needs do is to show a list with the Bugs. You just need to drag a component into your view and locate or resize it according to your application’s needs. Interface Builder lets you build your user interfaces in a visual way. That will load the visual representation of the view controller you just created in Interface Builder. In the Project Navigator, click on MasterViewController.xib. Now that you’ve created the view controller, it’s time to place the UI items on it. Now your new view Controller is created and your Project Navigator should look similar to this: Make sure that the option “With XIB for user Interface” is selected. Name the class MasterViewController, and type NSViewController for “Subclass of”. To Create a new View Controller, go to File\New\File…, and in the window that pops up, choose OS X\Cocoa\Objective-C class, and click Next. In this view, you will define the user interface of the main app. Just like in iOS, the first thing to do is to create a new View Controller. Let’s do something with this window, and make it show some information about bugs.
0 Comments
Leave a Reply. |