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

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

Post by mastintin »

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
Antonio Linares
Site Admin
Posts: 42516
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

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

Post by Antonio Linares »

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
mastintin
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

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

Post by mastintin »

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

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

- (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

Post by mastintin »

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
Antonio Linares
Site Admin
Posts: 42516
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

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

Post by Antonio Linares »

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

#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

...- (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

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_TRMreturn 


screenshot:
Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
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

Post by pcordonet »

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.
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

Post by mastintin »

mira a ver esto si te sirve :http://www.wtfmacos.ru/?p=16054
Post Reply