Re: Trying to create an alias file by using the new NSURL methods available with Mac OS X 10.6 !
Re: Trying to create an alias file by using the new NSURL methods available with Mac OS X 10.6 !
- Subject: Re: Trying to create an alias file by using the new NSURL methods available with Mac OS X 10.6 !
- From: rohan a <email@hidden>
- Date: Wed, 13 Jan 2010 22:42:49 +0530
Hi Stefan,
That worked like a gem :) Thanks a lot.
I had another question:
Would it be possible to create an alias for a non-existent file ?
I mean say an alias file.alias pointing to a file xyzfile which is not present on the file-system.
Something like at a later point in time, if I create the file xyzfile, file.alias must point to it.
I want to use this in a data backup/restore application, where an alias may be restored without its target, or the target may be restored after the alias.
Using the program written currently, the alias creation would fail if the target does not exist.
Thanks,
Rohan
On Wed, Jan 13, 2010 at 9:08 PM, Stefan Haller
<email@hidden> wrote:
rohan a <
email@hidden> wrote:
> //NSURL *src = "" URLWithString:@"file:///Alias_dir/aliastext"];
>
> NSURL *src = "" URLWithString:Destination];
You want to use fileURLWithPath: instead of URLWithString:.
-Stefan
--
Stefan Haller
Berlin, Germany
http://www.haller-berlin.de/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden