Mac OS X – Dev

I bought:

https://www.bignerdranch.com/we-write/cocoa-programming/

I’ve got version 3, 4 & 5.

Working through 4 now as it’s ObjC.

I’m going to document things I’ve had to look up.

Chapter 2

Probably look back and say why didn’t I spot this but it should help it not happing again:

Unknown type name ‘NSTextField’

#import <Cocoa/Cocoa.h> 

Could have just added a .pch file

Project Settings
Under the ‘Apple LLVM 6.0 – Language’ section in the ‘Prefix Header’ I added “<PROJECTNAME>/<PROJECTNAME>-Prefix.pch”

hRandom-Prefix.pch

#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif

.

Advertisements
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: