Saludos.
Code: Select all
HB_FUNC( APPPATH )
{
NSString *buPath = [[NSBundle mainBundle] bundlePath];
hb_retc( [ buPath cStringUsingEncoding : NSASCIIStringEncoding ] );
}
HB_FUNC( PATH )
{
NSString *buPath = [[NSBundle mainBundle] bundlePath];
NSString *secondParentPath = [buPath stringByDeletingLastPathComponent] ;
hb_retc( [ secondParentPath cStringUsingEncoding : NSASCIIStringEncoding ] );
}