• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#import <Foundation/Foundation.h>
2
3@interface Foo : NSObject
4+(int) doSomethingWithString: (NSString *) string;
5-(int) doSomethingInstance: (NSString *) string;
6@end
7
8@implementation Foo
9+(int) doSomethingWithString: (NSString *) string
10{
11  NSLog (@"String is: %@.", string);
12  return [string length];
13}
14
15-(int) doSomethingInstance: (NSString *)string
16{
17  return [Foo doSomethingWithString:string];
18}
19@end
20
21int main()
22{
23  return 0; // Set breakpoint here.
24}
25