'AppController' may not respond to '-stringForPath:


#1

Thanks for the above works awesome.
But…
Getting this.
warning: ‘AppController’ may not respond to ‘-stringForPath:ofNode:’

on

NSString *urlString = [self stringForPath:@"DetailPageURL" ofNode:clickedItem];

Copied and pasted the code directly from example files on this site.
How do I fix this???

thanks.
Ian

ps. using xcode 3.2.1


#2

just guessing, you’re using stringForPath: before the actual method is implemented?

solutions:
[ul]
[li] cut and paste the stringForPath:-method before it’s called[/li]
[li] declare a private method (see page 297)[/li]
[li] put the declaration in your header file (not very useful for private methods IMHO)[/li][/ul]