path command to libary

Post Reply
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

path command to libary

Post by plantenkennis »

Hello,
It has been a while that i was working on my app, a lot of other things to do.

I am prepering a package to install my app. I think it is wise to put the app in the application folder and the database in the llbary folder. Is there a command that I can use to get the libary folder. I use Path(), Respath() and Userpath(), but I could not find a LibaryPath(). Is there one available.
Kind regards,

René Koot
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: path command to libary

Post by Antonio Linares »

René,

I have just emailed you the FiveMac libraries with the new function LibraryPath()

many thanks for your great feedback :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: path command to libary

Post by Antonio Linares »

Code: Select all

HB_FUNC( LIBRARYPATH )
{
   NSString * Userpath = [ @"~/Library" stringByExpandingTildeInPath ];
   
   hb_retc( [ Userpath cStringUsingEncoding : NSWindowsCP1252StringEncoding ] );
}
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply