objective c - "Cannot find interface declaration for <class>" -


screenshots

i'm having quite hard time setting category on class made. i've read, objective-c allows create category on any class, not closed-source ones. (it wouldn't make sense other way.)

of course can add category messages actual class file, want keep them separate (as category uncommonly special use of class can used generally). want share class, keep category private... anyway.

i've stripped down category show issue @ hand. (currently) 4 errors on first category message. number of errors receive on line directly proportional how many times references, not rise. know causing this?

your resources.h file, imported bytecollection.h, imports bytecollection+words.h. when bytecollection+words.h imports bytecollection.h, results in circular dependency†. simplest way break circular dependency move 1 of imports implementation file rather header. looks should possible resources.h.

† might wondering, why problem if have circular dependency? well, #import directive literally textually includes file specify, if copy-pasted. intelligently doesn't include file twice, because create duplicate code. means when file says "i want file b go before me" , file b says "i want file go before me," 1 of them going disappointed, , leads errors 1 you're getting here.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -