dos funciones utiles

dos funciones utiles

Postby mastintin » Mon Jul 05, 2010 7: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: Select all  Expand view

 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 ] );
}
 
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: dos funciones utiles

Postby Antonio Linares » Mon Jul 05, 2010 7:47 am

Manuel,

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

Muchas gracias! :-)
regards, saludos

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


Return to FiveMac / FivePhone (iPhone, iPad)

Who is online

Users browsing this forum: No registered users and 23 guests