Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > getting the path of an NSDocumentBased App's current window contents

getting the path of an NSDocumentBased App's current window contents
Thread Tools
Forum Regular
Join Date: Jan 2002
Location: Hungary
Status: Offline
Reply With Quote
Oct 17, 2002, 05:11 AM
 
Hi!

What would be the best way to get the path of the file one window currently displays?
I tried calling [self fileName] from within my NSDocument object, but that returned a null pointer.
[self displayName] returns Untitled.

Thanks,

Ben
nothing is when everything is alright
stupidfish23@mac.com ICQ: 153647416
     
Forum Regular
Join Date: Oct 2001
Location: Sweden
Status: Offline
Reply With Quote
Oct 17, 2002, 02:03 PM
 
If the document isn't saved yet there's no file path to return. Try saving the document first.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:13 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2