Xcode doesn't recognize NSLabel
import, label, macos, object, xcode
Solution
There is no label class (`NSLabel`) on OS X. You have to use `NSTextField` instead, remove the bezel and make it non editable:
[textField setBezeled:NO];
[textField setDrawsBackground:NO];
[textField setEditable:NO];
[textField setSelectable:NO];
Problem
I'm trying to create a NSLabel for my osx app however Xcode is not recognizing the type "NSLabel" as valid and is suggesting I try "NSPanel" instead. In the header file I have the following imports: ``` #import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h> ``` How do I fix this? Is there another file I need to import?