DVD name via Cocoa?

  • I'm trying to get the volume name of a DVD through NSWorkspace's -
    mountedRemovableMedia and looking at the lastPathComponent. This
    doesn't seem to be working for me; I can only get at the first 15 or
    16 characters of the name. But the Finder doesn't have any problem
    getting the full name. Am I going to have to use Carbon calls to find
    the full name?

    Glenn Zelniker
  • On Sep 12, 2007, at 4:46 PM, Glenn Zelniker wrote:

    > I'm trying to get the volume name of a DVD through NSWorkspace's -
    > mountedRemovableMedia and looking at the lastPathComponent. This
    > doesn't seem to be working for me; I can only get at the first 15
    > or 16 characters of the name. But the Finder doesn't have any
    > problem getting the full name. Am I going to have to use Carbon
    > calls to find the full name?

    You might try

    [[NSFileManager defaultManager] displayNameAtPath:pathOfMountedDevice]

    Best,

    __jayson

    Circus Ponies NoteBook - Organization for a Creative Mind
    www.circusponies.com
previous month september 2007 next month
MTWTFSS
          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
Go to today