A arjit macrumors newbie Original poster 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 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 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