You cannot declare typedef in a .h file. Declare it in .m. That should make you go. Sign the method on .h
You can create a simple LinkedList class like this.
@interface LinkedNode : NSObject
@property (nonatomic, strong) id nextNode;
@end
then you use it as you would expect:
id currentNode = myFirstNode;
do {
[currentNode someMessage];
}
while(currentNode = currentNode.nextNode);
user3283997
source
share