A arjit macrumors newbie Original poster Feb 20, 2009 18 0 Nov 23, 2009 #1 how can i manipulate FSRef like add somthing to the end of it example. FSRef = /Home i want to add Dump.txt but Dump.txt is already there how can i do it ?
how can i manipulate FSRef like add somthing to the end of it example. FSRef = /Home i want to add Dump.txt but Dump.txt is already there how can i do it ?
gnasher729 Suspended Nov 25, 2005 17,980 5,566 Nov 23, 2009 #2 arjit said: how can i manipulate FSRef like add somthing to the end of it example. FSRef = /Home i want to add Dump.txt but Dump.txt is already there how can i do it ? Click to expand... Double-click on FSRef. Right-click "Jump To Definition". You should end up in "Files.h". Have a look around to find the right function. Instead of using Carbon you can obviously use any standard C or C++ methods, or Posix, or Cocoa. Whatever you prefer.
arjit said: how can i manipulate FSRef like add somthing to the end of it example. FSRef = /Home i want to add Dump.txt but Dump.txt is already there how can i do it ? Click to expand... Double-click on FSRef. Right-click "Jump To Definition". You should end up in "Files.h". Have a look around to find the right function. Instead of using Carbon you can obviously use any standard C or C++ methods, or Posix, or Cocoa. Whatever you prefer.
lee1210 macrumors 68040 Jan 10, 2005 3,182 3 Dallas, TX Nov 23, 2009 #3 I've never used carbon for anything, ever, but this seems like it might be the ticket: http://developer.apple.com/mac/libr...ce.html#//apple_ref/c/func/FSMakeFSRefUnicode 5 minutes in the docs can work wonders. -Lee
I've never used carbon for anything, ever, but this seems like it might be the ticket: http://developer.apple.com/mac/libr...ce.html#//apple_ref/c/func/FSMakeFSRefUnicode 5 minutes in the docs can work wonders. -Lee