Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Duke Leto

macrumors regular
Original poster
Mar 17, 2008
166
0
I made a delegate for a custom class, and I used a formal protocol declaration. However, when I make a class conform to that protocol, I get an error that the declaration was not found, and it is there!!!!
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
You need to #import the file where that protocol is defined into the header where you declare your class.
 

Duke Leto

macrumors regular
Original poster
Mar 17, 2008
166
0
Well, after looking at my #import statements, I realized that the problem was a strange import loop, where I should have used @class. Thanks for pointing me in the right direction!

It's funny how problems seem so much simpler here.
:D
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.