title: Objective-C Directory Picker ( OSX 10.7 )
body: <p>So I currently have this bit of code to get a dir:</p>
  
  <pre><code>-(NSString *)get {      
    NSOpenPanel *gitDir = [NSOpenPanel openPanel];
    NSInteger *ger = [gitDir runModalForTypes:nil];
    NSString *Directory = [gitDir directory];
    return Directory;
  }
  </code></pre>
  
  <p>But it gives me errors and says it has now been depreciated.</p>
  
  <p>Is there a better way for OSX 10.7? </p>