bugGNUstep - Bugs: bug #27101, [NSDocument filePath] does not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #27101: [NSDocument filePath] does not always return a fully qualified path

Submitted by:  Jonathan Gillaspie <jonathanosx>
Submitted on:  Fri 24 Jul 2009 05:26:23 PM UTC  
 
Category: ApplicationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 28 Jul 2009 09:01:57 PM UTC, comment #3:

I applied you patch with small changes.

Fred Kiefer <FredKiefer>
Project Member
Tue 28 Jul 2009 07:23:24 AM UTC, comment #2:

You are absolutely correct it is the fileName method (must have had "path" stuck in my mind when I submitted the bug).

Yes I can absolutely verify that the behavior on Mac OS X is in accordance with the documentation. Namely to always provided absolute path return values, even when the document name is passed in as a launch argument.

Per Greg Casamento, I had intended to submit a check-in after opening the bug, but I'm having trouble getting my SSH access to the SVN server so I'll post my proposed patch here.

Thanks for taking a look :)

(file #18482)

Jonathan Gillaspie <jonathanosx>
Project Member
Sun 26 Jul 2009 10:10:13 PM UTC, comment #1:

The name of the method you are referring to is fileName, not filePath.

And before we correct this, could you please confirm what the actual behaviour on Cocoa is? Quite often the documented behaviour doesn't match the implemented one.

Fred Kiefer <FredKiefer>
Project Member
Fri 24 Jul 2009 05:26:23 PM UTC, original submission:

According to the documentation for filePath it:
Returns the filename (as a fully qualified path) under which the receiver has been saved.

Normally the path is set as a fully qualified path but if the document is initialized by passing a command line argument as a relative path then only the relative path is stored.

Jonathan Gillaspie <jonathanosx>
Project Member

 

Attached Files
file #18482:  NSDocument+FileName.patch added by jonathanosx (580B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by FredKiefer (Posted a comment)
  • -unavailable- added by jonathanosx (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 13 Oct 2009 06:17:33 AM UTCFredKieferOpen/ClosedIn Test=>Closed
      StatusReady For Test=>Fixed
    Tue 28 Jul 2009 09:01:57 PM UTCFredKieferStatusNone=>Ready For Test
      Open/ClosedOpen=>In Test
    Tue 28 Jul 2009 07:23:24 AM UTCjonathanosxAttached File-=>Added NSDocument+FileName.patch, #18482

    Back to the top


    Powered by Savane 3.1-cleanup1