FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveMac / FivePhone (iPhone, iPad) dos funciones utiles
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
dos funciones utiles
Posted: Mon Jul 05, 2010 07:14 AM
Te pongo aqui 2 funciones que estoy usando . Ya las puse en un post anterior pero mezcladas con mas cosas y por ello igual quedaron despistadas .Una de ellas es una mejor version de apppath() y la otra sería el equivalente a la funcion path() "de toda la vida"
Saludos.
Code (fw): Select all Collapse
 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 ] );
}
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: dos funciones utiles
Posted: Mon Jul 05, 2010 07:47 AM

Manuel,

Incluidas para el próximo build que publiquemos :-)

Muchas gracias! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion