Kodeco Forums

How to Make a Simple Mac App on OS X 10.7 Tutorial: Part 1/3

This is a post by iOS Tutorial Team Member Ernesto García, a Mac and iOS developer founder of CocoaWithChurros. It’s a good time to be an iOS developer. Not only can you release your apps to both the iPhone and iPad App Stores, but you also have the foundational skills to become a Mac developer, […]


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/2865-how-to-make-a-simple-mac-app-on-os-x-10-7-tutorial-part-1-3

Hi Ernesto! Im a newbie developing in iOS/OS X, following the steps according to your tutorial im facing an error at the lines below in AppDelegate.m im using Xcode 7.3.1.

// 2. Add the view controller to the Window's content view
[self.window.contentView addSubview:self.masterViewController.view];
self.masterViewController.view.frame = ((NSView*)self.window.contentView).bounds;

Error says: property window not found on object of type appdelegate

What im doing wrong? Thanks in advance!

You need to include the line

@property (assign) IBOutlet NSWindow *window;

in AppDelegate.m after declaring the master view controller property.

This tutorial is more than six months old so questions are no longer supported at the moment for it. We will update it as soon as possible. Thank you! :]