Cyclic dependencies?

You should probably place the #imports in the . M file instead of the . H You may need to forward declare the classes if you reference them in the .h.

Ya error get solved but now the value of variable is null... the variable is NSMutableArray that is declared in A. H file and I am allocating memory in B. M class.

I also tried to allocating memory in A. M file but still it shows null values.. – Maulik Mar 24 '11 at 5:40 +1 - not good to have an accepted answer without a upvote. – Praveen S Mar 24 '11 at 7:38 @maulik I'd have to see the code to understand it.

Perhaps start a new question, as I doubt it's a dependency problem anymore. – Alex Deem Mar 24 '11 at 12:25.

From What is the difference between @class and #import @class is used to avoid circular dependency... This prevents circular references where in one header A imports a second header B which(B) imports the first(A) which imports the second (B)and so on in an endless cycle....@class is generally used to ask compiler to look for its definition at runtime... especially when it resides in some static library.. Pls see this too when and where to put @class declarations.

– Maulik Mar 24 '11 at 5:37 check this stackoverflow.com/questions/322597/class... – 7KV7 Mar 24 '11 at 6:04 ya error get solved but now the value of variable is null... the variable is NSMutableArray that is declared in A. H file and I am allocating memory in B. M class.

I also tried to allocating memory in A. M file but still it shows null values.. – Maulik Mar 24 '11 at 6:31 I am not sure if you will be able to access values that way. The use of delegates is preferred to such purposes – 7KV7 Mar 24 '11 at 6:33.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions