home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Apps / ProjectBuilder.app / Resources / indentationExample < prev    next >
Encoding:
Text File  |  1996-02-08  |  301 b   |  24 lines

  1. - (void) foo
  2. {
  3.    if (x)
  4.    {
  5.       [self doThis: 1
  6.            andThat: 2];
  7.    }
  8. }
  9.  
  10. - (void) bar {
  11.    if (y) {
  12.       switch(y) {
  13.          case 1:
  14.             [self foo];
  15.             break;
  16.          case 2:
  17.             [self bar];
  18.             break;
  19.          default:
  20.             break;
  21.       }
  22.    }
  23. }
  24.