Probando FivePhone con Lion (beta), xcode 4.1 y iOS 4.3

Re: Probando FivePhone con Lion (beta), xcode 4.1 y iOS 4.3

Postby mastintin » Sat Apr 09, 2011 5:59 pm

Nos falta el tema de las plantillas y la sintaxis que han cambiado en xcode 4.1 ... Si alguien puede aportar algo sobre el tema a nivel de localizacion de archivos o demas se lo agradeceremos . :-)
Saludos.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: Probando FivePhone con Lion (beta), xcode 4.1 y iOS 4.3

Postby Antonio Linares » Sat Apr 09, 2011 9:39 pm

Manuel,

Que modificaciones has hecho en los ficheros .m que crea xcode ?

Desde donde estas llamando a hb_vmInit( TRUE ); ?

Como solucionas el "provisioning profile" que te pide xcode para instalar en el dispositivo real ?

gracias :-)
regards, saludos

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

Re: Probando FivePhone con Lion (beta), xcode 4.1 y iOS 4.3

Postby mastintin » Sun Apr 10, 2011 7:44 am

Antonio realmente no he hecho NADA . Al conectar el dispositivo al xcode se me registra sin ningun tipo de problema .( ojo que tiene jailbreak ) .
EL hb_vmInit ( true) lo llamo en el mismo sitio que se hacia en la version anterior , de hecho he usado un programa ya generado con la plantilla que creamos para xcode 3.2
Ojo que los archivos son ya existentes , no son generados por xcode 4.1 sino por xcode 3.2 ... tengo que probar con unos de 4.1 y mirar si son iguales ...
llamada en main :

Code: Select all  Expand view

int main(int argc, char *argv[]) {
   
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    hb_vmInit( TRUE );
    int retVal = UIApplicationMain(argc, argv, nil, nil);
    [pool release];
    return retVal;
}

 

y cambio en el fichero Delegate que genera xcode :
Code: Select all  Expand view



- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
   
   
    SetWndMain( self.window );
   
    // Add the view controller's view to the window and display.
   
    [self.window addSubview:viewController.view];
    [self.window makeKeyAndVisible];
   

    PHB_SYMB symMain = hb_dynsymSymbol( hb_dynsymFindName( "MAIN" ) );
   
    // app = self;
   
    hb_vmPushSymbol( symMain );
    hb_vmPushNil();
    hb_vmDo( 0 );   
   
    return YES;
}   
 
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: Probando FivePhone con Lion (beta), xcode 4.1 y iOS 4.3

Postby mastintin » Sun Apr 10, 2011 10:19 am

Investigando un poco en el tema de los templates de xcode 4.1 parece que hay cambios importantes respecto a xcode 3.2 .
Dejo un enlace con información de como crear un template inicial para xcode 4.1 ....( puede ser un punto de partida ) .
http://blog.boreal-kiss.net/2011/03/11/a-minimal-project-template-for-xcode-4/

Saludos.


-------------- edito -----------------------
El sistema de coloreado de sintaxis también ha cambiado en xcode 4.1 . No existe documentación oficial al respecto y de momento nadie ( que yo sepa) ha encontrado el modo o los archivos para "meterlo" . Todos los lenguajes no soportados por xcode oficialmente están igual así que existe bastante gente detrás del tema .
Saludos.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: Probando FivePhone con Lion (beta), xcode 4.1 y iOS 4.3

Postby Antonio Linares » Mon Apr 11, 2011 6:45 am

He conseguido que funcione mostrando la ventana creada desde el PRG eliminando completamente los ficheros XIB del proyecto y con este código:

main.m
Code: Select all  Expand view
#import <UIKit/UIKit.h>

BOOL hb_vmInit( BOOL );

int main(int argc, char *argv[])
{
    // NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    // int retVal = UIApplicationMain(argc, argv, nil, nil);
    // [pool release];
    // return retVal;
   
    hb_vmInit( TRUE );
    return 0;
}
 


testAppDelegate.m
Code: Select all  Expand view
...
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
   
    // [self.window makeKeyAndVisible];
   
    // SetWndMain( self.window );
   
    return YES;
}
...
 


tutor02.prg
Code: Select all  Expand view
function Main()

   local oWnd := TWindow():New(), oLabel  

   oLabel = TLabel():New( oWnd, "Hello world!", 120, 100, 100, 50 )
   oLabel:SetColor( 255, 255, 255, 255 )

   oWnd:bTouchesBegan = { || MsgInfo( Version() ) }
   
   oWnd:Activate()
   
return nil    

procedure HB_GT_TRM
return
 


screenshot:
Image
regards, saludos

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

Re: Probando FivePhone con Lion (beta), xcode 4.1 y iOS 4.3

Postby pcordonet » Mon Apr 11, 2011 11:11 am

Hola,

Me podriais echar una mano ?

Tengo instalado una maquina virtual con OS X 10.4

Intento instalar svn-client para el codigo de xharbour.
sudo apt-get install svn-client

El problema que svn-client no soporta openssl

Alguna recomendacion? otro cliente svn?


Gracias.
Pere.
pcordonet
 
Posts: 111
Joined: Sat Jan 30, 2010 8:35 am
Location: Girona

Re: Probando FivePhone con Lion (beta), xcode 4.1 y iOS 4.3

Postby mastintin » Mon Apr 11, 2011 2:10 pm

mira a ver esto si te sirve :http://www.wtfmacos.ru/?p=16054
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Previous

Return to FiveMac / FivePhone (iPhone, iPad)

Who is online

Users browsing this forum: No registered users and 3 guests