title: How can I get the path to my Resources folder in Xcode without giving an absolute path?
body: <p>I have this snippet of code:</p>
  
  <pre><code>NSPasteboard *pboard = [NSPasteboard pasteboardWithName:NSDragPboard];
  [pboard declareTypes:[NSArray arrayWithObject:NSURLPboardType] owner:nil];
  [pboard writeObjects:[NSArray arrayWithObject:[NSURL fileURLWithPath:@"/Users/dw/Desktop/macapp/Menulet/logo.png"]]];
  </code></pre>
  
  <p>And I don't want to use an absolute path but when I try using just "logo.png" it gives the following error:</p>
  
  <pre><code>NSURLs written to the pasteboard via NSPasteboardWriting must be absolute URLs.  NSURL 'logo.png -- file://localhost/Users/dw/Library/Developer/Xcode/DerivedData/Menulet-bvwpfkjlcufhxubvaxubgnubtfgi/Build/Products/Debug/' is not an absolute URL.
  </code></pre>
  
  <p>Is there anyway to not have to hardcode it? logo.png is currently in my Resources folder in Xcode.</p>
  
  <p><strong>EDIT:</strong>
  How can I get a directory path instead?</p>