[futurebasic] Re: [FB] Making an alias

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2010 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Fri, 12 Feb 2010 09:50:14 -0700
On Feb 12, 2010, at 8:29 AM, Jay Reeve wrote:

> I want my program to maintain an alias of its data file, so it can  
> be loaded automatically on launch. I can't find any examples showing  
> how I might do that. Is there one?


AFAIK, there is no FB5 example specific to aliases. Alias processing  
is mostly the same as it was with FSSpecs except now there are FSRef- 
based calls available ( FSResolveAlias, FSNewAlias ).

There was a list thread back in February of 2008 ( February 13th I  
show with a subject of: MakeAlias and UseAlias ) where Alain and I  
posted some code( Alain's post is shorter - try it ) and discussion on  
alias processing. My current shareware uses CFPrefs to store alias  
records( XML-based ) and this is much simpler( flexible and endian  
safe ) than using a resource file.

My own experience is an aliased file is needed only in very specific  
circumstances. OS X strongly encourages fixed locations for  
application data files, so aliases are unnecessary in many cases. If  
the user is allowed to specify their own location for a data file an  
alias is the best solution.

Post back if those older posts don't help.


Brian S