Pathing inside dmg file?

Discussion in 'Mac Programming' started by trey5498, Jul 10, 2008.

  1. trey5498 macrumors regular

    Joined:
    Jun 16, 2008
    #1
    simple question which I thought I had working.

    here is what I have:
    Code:
    [fileManager copyPath:@"Test.txt" toPath:@"/library/test" handler:nil];
    

    if the copyPath is on the mac already it works, but if it is out of a mounted dmg it does seem to work. The application is being run out of the dmg mounted directory, should this not work??
     
  2. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    You're not trying to write to the disk image, are you? Normally, disk images used to distribute applications are read-only.
     
  3. trey5498 thread starter macrumors regular

    Joined:
    Jun 16, 2008
    #3
    No I have a disk image that I will be moving the files from to the Mac Harddrive. However I can't seem to find the path. All the file including the Application are inside the disk image.
     
  4. trey5498 thread starter macrumors regular

    Joined:
    Jun 16, 2008
    #4
    Found it. Never would have thought to look in /volumes/<dmg name>

    used to windows when it comes to paths.
     

Share This Page