3

I'm brand new to Mac OS X development. Primarily a Java and C# developer. I'm reading this book and trying a few examples from the book.

In my AppController class, I'm trying to add an IBOutlet as follows :

IBOutlet NSTextField *textField;

It gives me an error saying "Unknown type name 'NSTextField'. I have imported Foundation/Foundation.h

Please help.

AyushISM
  • 381
  • 7
  • 21

1 Answers1

5
#import <Cocoa/Cocoa.h> 

Import this in your AppController header file

Nofel Mahmood
  • 898
  • 7
  • 12