Professional Web Applications Themes

full path name - Mac Programming

I am a Windows programmer, so I got a very simple question regarding the full path name in Mac. I use MoreFiles library to convert a FSSpec to full path name, I found out that the full path name is in "Drive:data:...." style instead of "Drive/data/...". I wonder what is the convention for a Mac appliaction to display a full path name?...

  1. #1

    Default full path name

    I am a Windows programmer, so I got a very simple question regarding
    the full path name in Mac.

    I use MoreFiles library to convert a FSSpec to full path name, I found
    out that the full path name is in "Drive:data:...." style instead of
    "Drive/data/...". I wonder what is the convention for a Mac
    appliaction to display a full path name?
    wes Guest

  2. #2

    Default Re: full path name

    In article <5fb7ca71.0309041311.f22cda2posting.google.com> ,
    [email]wkunghotmail.com[/email] (wes) wrote:
    > I am a Windows programmer, so I got a very simple question regarding
    > the full path name in Mac.
    >
    > I use MoreFiles library to convert a FSSpec to full path name, I found
    > out that the full path name is in "Drive:data:...." style instead of
    > "Drive/data/...". I wonder what is the convention for a Mac
    > appliaction to display a full path name?
    An series of lines, each one indented more than the previous one, with
    small icons of folders for the intermediate lines, follwed by the name
    of that folder. The first line has the small icon of the disk, and the
    last one has the small icon of the file. Since the user may have
    customized any of those icons (by pasting a picture into the Get Info
    box of that specific folder, disk, or file) the actual images are looked
    up at runtime.

    You can command click on the name in the title bar of most recent
    doent based apps to see the hierarchy in this multi-line way.

    See MacWindows.h for details on proxy icons in the title bar to see how
    this is implemented.

    Aside from that, most applications don't display full paths.
    David Phillip Oster Guest

  3. #3

    Default Re: full path name

    In article <5fb7ca71.0309041311.f22cda2posting.google.com> ,
    [email]wkunghotmail.com[/email] (wes) wrote:
    >I use MoreFiles library to convert a FSSpec to full path name, I found
    >out that the full path name is in "Drive:data:...." style instead of
    >"Drive/data/...". I wonder what is the convention for a Mac
    >appliaction to display a full path name?
    Mac applications never display a full path name. Full path
    names are for computers, not humans.

    If you want to show a user which folder or doent you're
    talking about, provide a button which tells the Finder to
    reveal it.


    Simon Slavin Guest

  4. #4

    Default Re: full path name

    On Sun, 7 Sep 2003 [email]slavinshearsay.demon.co.uk[/email] wrote:
    > In article <5fb7ca71.0309041311.f22cda2posting.google.com> ,
    > [email]wkunghotmail.com[/email] (wes) wrote:
    >
    > >I use MoreFiles library to convert a FSSpec to full path name, I found
    > >out that the full path name is in "Drive:data:...." style instead of
    > >"Drive/data/...". I wonder what is the convention for a Mac
    > >appliaction to display a full path name?
    >
    > Mac applications never display a full path name. Full path
    > names are for computers, not humans.
    >
    > If you want to show a user which folder or doent you're
    > talking about, provide a button which tells the Finder to
    > reveal it.
    There are some legitimate uses of full paths names. (eg the access paths
    list in one of the CW preferences panes). Mac OS 9 style full paths aren't much use to
    computers either as they are not unique.

    Fred

    Frederick Cheung Guest

  5. #5

    Default Re: full path name

    On 4 Sep 2003, [email]wkunghotmail.com[/email] wrote:
    > I am a Windows programmer, so I got a very simple question regarding
    > the full path name in Mac.
    >
    > I use MoreFiles library to convert a FSSpec to full path name, I
    > found out that the full path name is in "Drive:data:...." style
    > instead of "Drive/data/...". I wonder what is the convention for a
    > Mac appliaction to display a full path name?

    Don't know the answer to the final question, but I will say there is
    this problem -- the path separator changed between OS 9 and OS X, to
    over simplify things a bit.

    Drive:data:... style is pre-OS X (old "macintosh")
    /Drive/data/... style is OS X (old "unix")

    Be aware that the HFS+ (and HFS) file systems aren't case sensitive,
    which is a nice trap if you're coming from another OS. That is,
    /Drive/data/myfile and /Drive/data/MyFile are equivalent paths. Some
    applications, of course, won't accept "MyFile" as matching "myfile" --
    but the file system will. Biggest impact is applications that have
    needed files that differ only in case -- when you untar 'em, all but the
    last file with such names gets overwritten...

    joe
    Joe Davison Guest

  6. #6

    Default Re: full path name

    In article <Pine.LNX.4.44.0309070125510.4669-100000kern.srcf.societies.cam.ac.uk>,
    Frederick Cheung <fglc2srcf.DUH.ucam.org> wrote:
    >On Sun, 7 Sep 2003 [email]slavinshearsay.demon.co.uk[/email] wrote:
    >
    >> Mac applications never display a full path name. Full path
    >> names are for computers, not humans.
    >>
    >> If you want to show a user which folder or doent you're
    >> talking about, provide a button which tells the Finder to
    >> reveal it.
    >
    >There are some legitimate uses of full paths names.
    Oh sure -- for a programmer or for a computer. But any mundane
    user should never have to figure out what a full path means.
    If the computer is trying to indicate a particular folder it
    should show the user that folder.


    Simon Slavin Guest

Similar Threads

  1. How to get the full path of the current open PDF file?
    By yiyun0918@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 2
    Last Post: March 27th, 03:44 AM
  2. Full path to the perl intrepter
    By Marcos Rebelo in forum PERL Beginners
    Replies: 3
    Last Post: August 26th, 02:43 PM
  3. Full path to the perl interpreter
    By Marcos Rebelo in forum PERL Beginners
    Replies: 0
    Last Post: August 26th, 02:24 PM
  4. grabbing full path and file name
    By George in forum Microsoft Access
    Replies: 0
    Last Post: July 30th, 08:06 PM
  5. unlink full path to files
    By Janek Schleicher in forum PERL Miscellaneous
    Replies: 2
    Last Post: July 3rd, 04:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139