title: parameter is not received in method
body: <p>I have a method which is simple and quite forward. 
  It is supposed to create a folder if it doesn´t exist.
  It takes one string parameter which is properly declared. </p>
  
  <p>When I use it and pass a parameter the receiving variable remains empty which is pretty strange because pathTo_Folder is a path. </p>
  
  <p>Any ideas why this happens?</p>
  
  <pre><code>//Declaration in .h
  - (void) createFolder         : (NSString *) thePath  ;
  
  //The call
  - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
  {
      NSString *homePath = [@"~" stringByExpandingTildeInPath];
      NSString *pathTo_Folder = [NSString stringWithFormat:@"%@/Library/Application Support/prolog/",homePath];
      [self createFolder : pathTo_Folder];
  }
  
  
  //In .m
  - (void)    createFolder: thePath {
      BOOL isDir;
      NSFileManager *fileManager = [NSFileManager defaultManager]         ;
      [fileManager fileExistsAtPath:thePath isDirectory: &amp;isDir]          ;
  
      NSLog(@"Folder '%@' exists: %d",thePath,isDir)                      ;
  
      if (isDir == FALSE) 
      {
          [fileManager createDirectoryAtPath: thePath withIntermediateDirectories:YES attributes:nil error:nil];
      }
  }
  </code></pre>