Quick question


Just starting this chapter, but when I copy BNRItem.h into Homepwner it starts with: #import <Cocoa/Cocoa.h>, which is throwing this error: ‘Cocoa/Cocoa.h’ file not found.

Just a bit confused. Mostly want to know why this happened. And how to fix it…

thank you!



It looks like you might have originally created BNRItem as a Cocoa class. You should be able to fix the problem by changing the offending import to:

#import <Foundation/Foundation.h>


This is becoming a bigger issue than I thought. I tried your advice, didn’t work. Still got the the same error. Then when through a bunch of solution attempts(changing the original file, etc.) Decided to start over, and my project is getting the same error, in a BNRItem.h that doesn’t exist in the project yet?!?I am so confused.