Page 1 of 1

path command to libary

Posted: Wed Mar 01, 2017 7:10 pm
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.

Re: path command to libary

Posted: Thu Mar 02, 2017 7:57 am
by Antonio Linares
René,

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

many thanks for your great feedback :-)

Re: path command to libary

Posted: Thu Mar 02, 2017 8:22 am
by Antonio Linares

Code: Select all

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