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