• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSDocumentController currentDirectory is nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDocumentController currentDirectory is nil


  • Subject: NSDocumentController currentDirectory is nil
  • From: Matthew Weinstein <email@hidden>
  • Date: Fri, 25 Mar 2005 09:05:42 -0500

Dear cocoa-istas,

My app puts up an XCode style new project panel when the app has finished launching. That works fine. I have a browse button so that users can put the project where they want; that works exactly as expected. The problem is that I want to show the user the directory that will pop up when they pick the browse button. It would seem easy:
[[NSDocumentController sharedDocumentController] currentDirectory]


seems like just the ticket!

Here's the problem: it keeps returning nil. :-(

Is there a way to do this? What am I doing wrong.

Matthew Weinstein
Associate Professor of Science Education
Kent State University
404 J White Hall
Kent, OH 44242

email@hidden
330 672-0653

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Setting an NSDocument location programmatically (the answer)
  • Next by Date: Re: Memory usage
  • Previous by thread: Setting an NSDocument location programmatically (the answer)
  • Next by thread: Custom Cell highlighting
  • Index(es):
    • Date
    • Thread