topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
he conseguido un iphone | [quote="Daniel Garcia-Gil":1e5f49q2]Manuel
has subido algun codigo?? es para no repetir informacion porque tenia los tab funcionando[/quote:1e5f49q2]
No no he subido nada ,simplemente he cambiado en el nib de pruebas el control UItabbAr por tabBar y ya ha funcionado lo que tenía .Lo comenté por si alguien tenía el mismo problema que yo lo solucionase. |
he conseguido un iphone | Manuel,
[quote:1f6xnfhy]
Error launching remote program: failed to get the task for process 3700
[/quote:1f6xnfhy]
Parece que ni siquiera llega a cargar...
Habria que ir añadiendo módulos, poco a poco, hasta ver cuando comienza ese problema.
Ando haciendo pruebas con el xcode directamente, para afianzar más conceptos. |
he conseguido un iphone | [quote="Antonio Linares":3phm8na9]Manuel,
[quote:3phm8na9]
Error launching remote program: failed to get the task for process 3700
[/quote:3phm8na9]
Parece que ni siquiera llega a cargar...
Habria que ir añadiendo módulos, poco a poco, hasta ver cuando comienza ese problema.
Ando haciendo pruebas con el xcode directamente, para afianzar más conceptos.[/quote:3phm8na9]
Lanzar si se lanza . el programa que "en segundo plano " ( pulsando el boton queda entre los programas de la multitarea) .
Hace como cuando hicimos las primeras pruebas de fivephone que no tenía ventana principal ( recuerdas ? ) . |
he conseguido un iphone | He conseguido que xcode me compile los prg ... de momento es la cosa muy manual , pero seguro que se puede mejorar mucho el tema .
el primer paso es colocar un script que le diga que compile los prg con harbour ...
En la barra lateral izquierda Groups&files -> Targets->"nombre proyecto"->boton derecho ->add->New Build Fase ->new run script Build phase
Se crea una carpeta llamada Run Script ->doble click
Se habre una ventana donde colocamos las ordenes a realizar , de momento yo lo he colocado con todos los path y nombres , pero seguro que se puede acortar y generalizar :
/Users/manuel/Desktop/paraiphone/harbour/bin/harbour tutor07 -n -I/Users/manuel/Desktop/paraiphone/harbour/include -I/Users/manuel/Desktop/paraiphone/fivephone/include
cerramos la ventana y arrastramos la carpeta Run Script para que sea la de mas arriba del proceso ( primera en ejecutarse )
Nos dará un par de avisos al compilar algo asi como :
No defines rules for prg files .
Esto es porque realmente xcode no sabe que hacer con los archivos prg metidos en el proyecto .
Yo lo he resuelto asi :
En la barra lateral izquierda Groups&files -> Targets->"nombre del proyecto"->boton derecho->get info->rules ->boton "+" ( abajo)
Process->source files with names matching -> *.prg
Using -> custom script .
En script he puesto:
/Users/manuel/Desktop/paraiphone/harbour/bin/harbour $(INPUT_FILE_BASE).prg -n -I/Users/manuel/Desktop/paraiphone/harbour/include -I/Users/manuel/Desktop/paraiphone/fivephone/include
con esto ya compila sin problemas.
Saludos. |
he conseguido un iphone | Antonio te comento lo que estoy haciendo ... Genero un proyecto iphone puro y duro xcode con un xlib con un boton . Compruebo que funciona correctamente . introduzco un archivo prg con una function dummy()
[code=fw:1ggkl2kk]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> dummy<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1ggkl2kk]
[code=fw:1ggkl2kk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />- <span style="color: #000000;">(</span>BOOL<span style="color: #000000;">)</span>application:<span style="color: #000000;"><span style="color: #000000;">(</span>UIApplication</span> *<span style="color: #000000;">)</span>application didFinishLaunchingWithOptions:<span style="color: #000000;"><span style="color: #000000;">(</span>NSDictionary</span> *<span style="color: #000000;">)</span>launchOptions <span style="color: #000000;">{</span> <br /> <br /> <span style="color: #B900B9;">// Override point for customization after application launch.</span><br /><br /> <span style="color: #B900B9;">// Add the view controller's view to the window and display.</span><br /> <span style="color: #000000;">[</span><span style="color: #0000ff;">window</span> addSubview:<span style="color: #000000;">viewController</span>.view<span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span><span style="color: #0000ff;">window</span> makeKeyAndVisible<span style="color: #000000;">]</span>;<br /> <br /> HB_FUN_DUMMY<span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /><br /> <span style="color: #00C800;">return</span> YES;<br /><span style="color: #000000;">}</span><br /><br /> </div>[/code:1ggkl2kk]
Si comento la funcion el programa funciona , si dejo la function el programa casca .
No entiendo que pasa ...
----------------- edito ----------------------------
Avanzo en el tema ...
He creado una funcion en c llamada dummy
[code=fw:1ggkl2kk]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />void dummy<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> <br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> symFPH == <span style="color: #00C800;">NULL</span> <span style="color: #000000;">)</span><br /> symFPH = hb_dynsymSymbol<span style="color: #000000;">(</span> hb_dynsymFindName<span style="color: #000000;">(</span> <span style="color: #ff0000;">"DUMMY"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <br /> <span style="color: #B900B9;">// hb_vmPushSymbol( symFPH );</span><br /> <br /> <span style="color: #B900B9;">// hb_vmPushNil();</span><br /> <span style="color: #B900B9;">// hb_vmDo( 0 ); </span><br /><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span>@<span style="color: #ff0000;">"no"</span><span style="color: #000000;">)</span>; <br /><span style="color: #000000;">}</span><br /><br /> </div>[/code:1ggkl2kk]
Si la dejo asi llega a MsInfo() sin problemas ( eso quiere decir que enlaza las librerias ) .
Si quito el comentario a hb_vmPushSymbol( symFPH ); con la intencion que llame a la funcion dummy que tengo en el prg casca ..
Saludos. |
he conseguido un iphone | Manuel,
El problema seguramente se debe a que no se está inicializando la máquina virtual de Harbour, ya que el punto de entrada de la aplicación no es el de Harbour.
Prueba a poner estas llamadas:
[code=fw:3hb6pvex]<div class="fw" id="{CB}" style="font-family: monospace;"><br />void dummy<span style="color: #000000;">(</span> void <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> <span style="color: #B900B9;">// hb_cmdargInit( argc, argv );</span><br /> hb_vmInit<span style="color: #000000;">(</span> HB_TRUE <span style="color: #000000;">)</span>; <span style="color: #B900B9;">// inicializa la maquina virtual de Harbour </span><br /> <br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> symFPH == <span style="color: #00C800;">NULL</span> <span style="color: #000000;">)</span><br /> symFPH = hb_dynsymSymbol<span style="color: #000000;">(</span> hb_dynsymFindName<span style="color: #000000;">(</span> <span style="color: #ff0000;">"DUMMY"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <br /> hb_vmPushSymbol<span style="color: #000000;">(</span> symFPH <span style="color: #000000;">)</span>;<br /> hb_vmPushNil<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> hb_vmDo<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>; <br /><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span>@<span style="color: #ff0000;">"no"</span><span style="color: #000000;">)</span>;<br /><br /> hb_vmQuit<span style="color: #000000;">(</span><span style="color: #000000;">)</span>; <span style="color: #B900B9;">// termina la maquina virtual de Harbour</span><br /><span style="color: #000000;">}</span><br /> </div>[/code:3hb6pvex] |
he conseguido un iphone | [quote="Antonio Linares":1b4t3c7l]Manuel,
El problema seguramente se debe a que no se está inicializando la máquina virtual de Harbour, ya que el punto de entrada de la aplicación no es el de Harbour.
Prueba a poner estas llamadas:
[code=fw:1b4t3c7l]<div class="fw" id="{CB}" style="font-family: monospace;"><br />void dummy<span style="color: #000000;">(</span> void <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> <span style="color: #B900B9;">// hb_cmdargInit( argc, argv );</span><br /> hb_vmInit<span style="color: #000000;">(</span> HB_TRUE <span style="color: #000000;">)</span>; <span style="color: #B900B9;">// inicializa la maquina virtual de Harbour </span><br /> <br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> symFPH == <span style="color: #00C800;">NULL</span> <span style="color: #000000;">)</span><br /> symFPH = hb_dynsymSymbol<span style="color: #000000;">(</span> hb_dynsymFindName<span style="color: #000000;">(</span> <span style="color: #ff0000;">"DUMMY"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <br /> hb_vmPushSymbol<span style="color: #000000;">(</span> symFPH <span style="color: #000000;">)</span>;<br /> hb_vmPushNil<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> hb_vmDo<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>; <br /><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span>@<span style="color: #ff0000;">"no"</span><span style="color: #000000;">)</span>;<br /><br /> hb_vmQuit<span style="color: #000000;">(</span><span style="color: #000000;">)</span>; <span style="color: #B900B9;">// termina la maquina virtual de Harbour</span><br /><span style="color: #000000;">}</span><br /> </div>[/code:1b4t3c7l][/quote:1b4t3c7l]
Antonio no funciona ....
incluso asi casca :
[code=fw:1b4t3c7l]<div class="fw" id="{CB}" style="font-family: monospace;"><br />void dummy<span style="color: #000000;">(</span>void<span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span>@<span style="color: #ff0000;">"nono"</span><span style="color: #000000;">)</span>; <br /> <br /> hb_vmInit<span style="color: #000000;">(</span> HB_TRUE <span style="color: #000000;">)</span>; <span style="color: #B900B9;">// inicializa la maquina virtual de Harbour </span><br /> <br /> <br /> <span style="color: #B900B9;">//if( symFPH == NULL )</span><br /> <span style="color: #B900B9;">// symFPH = hb_dynsymSymbol( hb_dynsymFindName( "MIA" ) );</span><br /> <br /> <span style="color: #B900B9;">// hb_vmPushSymbol( symFPH );</span><br /> <br /> <span style="color: #B900B9;">//hb_vmPushNil();</span><br /> <span style="color: #B900B9;">// hb_vmDo( 0 ); </span><br /><br /><span style="color: #B900B9;">// hb_vmQuit(); </span><br /> <br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span>@<span style="color: #ff0000;">"no"</span><span style="color: #000000;">)</span>; <br /> <br /><span style="color: #000000;">}</span><br /> </div>[/code:1b4t3c7l] |
he conseguido un iphone | Manuel,
En base a tus explicaciones para compilar los PRGs desde el xcode, estoy usando esta regla:
[img:24n7db6k]http://img408.imageshack.us/img408/2974/screenshot20101122at740.png[/img:24n7db6k]
Pero me genera este error:
/bin/sh: INPUT_FILE_BASE: command not found
A ti te está compilando bien ? |
he conseguido un iphone | Asi parece que funciona: (falta proporcionarle el path para los ficheros de cabecera al compilar *.c)
/Users/anto/harbour/bin/harbour ${INPUT_FILE_BASE}.prg -n -o${DERIVED_FILES_DIR}/${INPUT_FILE_BASE}.c
manteniendo como "with output files:"
$(DERIVED_FILES_DIR)/$(INPUT_FILE_BASE).c |
he conseguido un iphone | Asi he conseguido que use los ficheros de cabecera de Harbour <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
La idea es que trate nuestros ficheros C como ficheros suyos, y les pase los flags del xcode, etc:
[img:osepidg5]http://img408.imageshack.us/img408/3329/screenshot20101122at810.png[/img:osepidg5] |
he conseguido un iphone | Bueno, de momento la consola de xcode reporta un error concreto a solucionar:
[img:3tqw96pq]http://img33.imageshack.us/img33/9135/screenshot20101122at237.png[/img:3tqw96pq]
Ese es el error que se genera al llamar a hb_vmInit( TRUE ); |
he conseguido un iphone | Implementada la clase SegmetedControl tanto desde codigo como desde recursos .Faltan mejoras y algunas funciones mas pero ya está funcionando correctamente desde ambos .
Saludos.
[code=fw:ik6uutno]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd := TWindow<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> osegment = TSegment<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oWnd, <span style="color: #000000;">77</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">207</span>, <span style="color: #000000;">44</span> <span style="color: #000000;">)</span><br /> <br /> osegment:<span style="color: #000000;">addbutton</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"hola"</span><span style="color: #000000;">)</span> <br /> osegment:<span style="color: #000000;">addbutton</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Adios"</span><span style="color: #000000;">)</span> <br /> <br /> osegment:<span style="color: #000000;">bChange</span>:=<span style="color: #000000;">{</span>|o| <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span>str<span style="color: #000000;">(</span>o:<span style="color: #000000;">nValue</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> <br /> oWnd:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /> </div>[/code:ik6uutno]
------------------------------- editado para ampliar ------------------------------------
Ya funciona el preprocesado de segments .....
[code=fw:ik6uutno]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd := TWindow<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> osegment <br /> <br /> @ <span style="color: #000000;">77</span>,<span style="color: #000000;">50</span> SEGMENTED oSegment <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">{</span><span style="color: #ff0000;">"hola"</span>,<span style="color: #ff0000;">"Adios"</span> <span style="color: #000000;">}</span> <span style="color: #0000ff;">OF</span> oWnd ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">{</span>|o| <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span>str<span style="color: #000000;">(</span>o:<span style="color: #000000;">nValue</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">207</span>,<span style="color: #000000;">44</span> <br /> <br /> oWnd:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /> </div>[/code:ik6uutno]
[img:ik6uutno]http://img207.imageshack.us/img207/4963/lafotog.png[/img:ik6uutno] |
he conseguido un iphone | Ya podemos construir desde xcode! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
El error de la inicialización del GT es un error relacionado con el uso de g++ (en vez de gcc) y que ya se detectó en el 2009 y supuestamente se arregló, aunque a nosotros nos está apareciendo. Asi que lo que he hecho es anular la inicialización de la consola de Harbour, que además no la vamos a usar para nada <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
(aqui se comentó <!-- m --><a class="postlink" href="http://www.mail-archive.com/harbour@harbour-project.org/msg23216.html">http://www.mail-archive.com/harbour@har ... 23216.html</a><!-- m -->)
Aqui esta la libreria libhbvm.a sin inicialización de consola:
<!-- m --><a class="postlink" href="http://www.mediafire.com/?weex3440tdvn04e">http://www.mediafire.com/?weex3440tdvn04e</a><!-- m -->
Ojo al enlazar, no incluir libhbvmmt.a !
He modificado main.m de esta forma para probar desde xcode:
[code=fw:160hpbzb]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#import <UIKit/UIKit.h><br /><br />void hb_vmInit<span style="color: #000000;">(</span> BOOL <span style="color: #000000;">)</span>;<br /><br />int main<span style="color: #000000;">(</span>int argc, char *argv<span style="color: #000000;">[</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span> <span style="color: #000000;">{</span><br /> <br /> NSAutoreleasePool * pool = <span style="color: #000000;">[</span><span style="color: #000000;">[</span>NSAutoreleasePool alloc<span style="color: #000000;">]</span> <span style="color: #0000ff;">init</span><span style="color: #000000;">]</span>;<br /> NSLog<span style="color: #000000;">(</span> @<span style="color: #ff0000;">"antes de vmInit()"</span> <span style="color: #000000;">)</span>;<br /> hb_vmInit<span style="color: #000000;">(</span> <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">)</span>;<br /> NSLog<span style="color: #000000;">(</span> @<span style="color: #ff0000;">"despues de vmInit"</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #B900B9;">// int retVal = UIApplicationMain(argc, argv, nil, nil);</span><br /> <span style="color: #000000;">[</span>pool <span style="color: #0000ff;">release</span><span style="color: #000000;">]</span>;<br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span>; <span style="color: #B900B9;">// retVal;</span><br /><span style="color: #000000;">}</span><br /> </div>[/code:160hpbzb]
y añado un PRG que solo contiene una llamada a NSLog() (la he subido nueva al repositorio):
[code=fw:160hpbzb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> NSLog<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Si"</span> <span style="color: #000000;">)</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /> </div>[/code:160hpbzb]
Y en la consola de xcode se muestra:
[quote:160hpbzb]
2010-11-23 02:38:54.168 harb1[5960:307] antes de vmInit()
2010-11-23 02:38:54.180 harb1[5960:307] Si
2010-11-23 02:38:54.183 harb1[5960:307] despues de vmInit
Debugger stopped.
[/quote:160hpbzb]
Asi que ya podemos seguir haciendo pruebas y ver hasta donde avanzamos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | Nuestras ventanas desde PRG funcionando! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Al construir desde xcode se ejecuta el ...appdelegate.m del proyecto. Si en didFinishLaunchingWithOptions copiamos el código que tenemos en mainapp.m:
[code=fw:3vz5h6li]<div class="fw" id="{CB}" style="font-family: monospace;"><br />- <span style="color: #000000;">(</span>BOOL<span style="color: #000000;">)</span>application:<span style="color: #000000;"><span style="color: #000000;">(</span>UIApplication</span> *<span style="color: #000000;">)</span>application didFinishLaunchingWithOptions:<span style="color: #000000;"><span style="color: #000000;">(</span>NSDictionary</span> *<span style="color: #000000;">)</span>launchOptions <span style="color: #000000;">{</span> <br /> <br /> <span style="color: #B900B9;">// Override point for customization after application launch.</span><br /> NSLog<span style="color: #000000;">(</span> @<span style="color: #ff0000;">"antra en appdelegate"</span> <span style="color: #000000;">)</span>;<br /><br /> PHB_SYMB symMain = hb_dynsymSymbol<span style="color: #000000;">(</span> hb_dynsymFindName<span style="color: #000000;">(</span> <span style="color: #ff0000;">"MAIN"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <br /> NSLog<span style="color: #000000;">(</span> @<span style="color: #ff0000;">"aqui"</span> <span style="color: #000000;">)</span>;<br /> <br /> <span style="color: #B900B9;">// app = self;</span><br /> <br /> hb_vmPushSymbol<span style="color: #000000;">(</span> symMain <span style="color: #000000;">)</span>;<br /> hb_vmPushNil<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /> hb_vmDo<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>;<br /> <br /> <span style="color: #B900B9;">// Add the view controller's view to the window and display.</span><br /> <span style="color: #B900B9;">// [window addSubview:viewController.view];</span><br /> <span style="color: #B900B9;">// [window makeKeyAndVisible];</span><br /><br /> <span style="color: #00C800;">return</span> YES;<br /><span style="color: #000000;">}</span><br /> </div>[/code:3vz5h6li]
Salta perfectamente a nuestro PRG y desde ahi creamos la ventana correctamente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Además la aplicación parece que se firma bien! Estoy usando una licencia de desarrollador de Apple y parece funcionar correctamente. Es decir:
YA NO NECESITAMOS QUE EL IPHONE TENGA JAILBREAK!!! <!-- s:-D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":-D" title="Very Happy" /><!-- s:-D -->
Proxima prueba: Ejecutar en el simulador... |
he conseguido un iphone | [img:19mhfo5z]http://img413.imageshack.us/img413/1169/screenshot20101123at317.png[/img:19mhfo5z] |
he conseguido un iphone | Bien , Antonio , bien <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> .
Exactamente eso estaba intentando hacer con el tema de la function dummy() , si se lanzaba dummy tambien podia lanzar main <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> .
Ahora tenemos superado el tema de copiado y lanzado al iphone.
Sería importante hacer "mixtas" las librerias de harbour para iphone .Una misma libreria serviría para el iphone y el simulador y facilitaría el tema mucho . |
he conseguido un iphone | Una cosa queda en el tintero ... Xcode no generará la aplicacion si no tenemos un certificado de desarrollador de apple .
Si uno se dedica profesionalmente a programar no supone un gran problema el desembolso a realizar , pero si solo se pretende "probar" o usamos el simulador que no necesita certificado ( de momento no disponible <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> ) o usamos un iphone con jailbreak y "simulamos" que tenemos certificado para que xcode compile el programa ...
Seguir esta guía para el tema del certificado ( lo del paquete para cydia es otro tema ) [url:3hhvvh0u]http://iapps.scenebeta.com/tutorial/como-publicar-una-aplicacion-en-cydia-xcode-3-2-3iphone-sdk-4[/url:3hhvvh0u] |
he conseguido un iphone | Manuel,
[quote:m594upmo]
Sería importante hacer "mixtas" las librerias de harbour para iphone .Una misma libreria serviría para el iphone y el simulador y facilitaría el tema mucho
[/quote:m594upmo]
Si. Ayer intenté modificar el make pero no lo terminé. Es algo que tenemos que hacer para facilmente pasar del simulador al teléfono real y viceversa.
Otra idea es unir todas las librerias de Harbour usando lipo, con lo que será mucho más simple el proceso. Una única libreria <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | Acabo de actualizar el iphone a la nueva versión 4.2.1, aun sin jailbreak, y la aplicación que usa Harbour funciona perfectamente en el iphone <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | [quote="Antonio Linares":223ct7d6]
Otra idea es unir todas las librerias de Harbour usando lipo, con lo que será mucho más simple el proceso. Una única libreria <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:223ct7d6]
Creo que esta es la mejor opción , una unica librería para los dos sistemas permite cambiar de una a otra rapido.
saludos. |
he conseguido un iphone | Compilado y enviado al iphone con xCode ... con archivo de recursos ... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
[img:15quygqv]http://img7.imageshack.us/img7/3923/lafoto.png[/img:15quygqv] |
he conseguido un iphone | Manuel,
Has podido hacerlo sin certificado ? Cómo ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | [quote="Antonio Linares":36n9ieoz]Manuel,
Has podido hacerlo sin certificado ? Cómo ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:36n9ieoz]
Se crea un certificado de desarrollador que no se verifica pero que sirve para que xcode deje compilar .Me dá que para la proxima version de xcode lo taparán pero de momento sirve .
Aqui esta el post donde dejé el enlace : <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
[url:36n9ieoz]http://forums.fivetechsupport.com/viewtopic.php?f=8&t=20079&start=390#p107896[/url:36n9ieoz]
Por cierto he mirado que se pueden hacer plantillas personalizadas de xcode donde directamente podemos hacer que nos ponga el vmInit() y la llamada a main() automaticamente <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
he conseguido un iphone | He subido al repositorio un template personalizado que genera automatico el codigo para hacer aplicaciones fivephone desde xcode .
Falta mirar como hacemos para configurar los parametros de paths de includes y librerias pero como comienzo vale.
Saludos.
--------------------- edito ------------------------------------
He subido una nueva version donde van tambien ajustado para que compile los prg .Los paths tambien van puestos pero ajustados con mi configuracion asi que tenemos que cambiarlos ( para cada uno ) .
Para instalar descomprimir en :
/Users/xxxx/Library/Application\ Support/Developer/Shared/Xcode/
Para ajustar lo de los path se abre el template con xcode y se pone lo que queramos ...
Saludos. |
he conseguido un iphone | Manuel,
El template lo has creado a mano ó usando xcode ?
Es decir, puede usarse xcode para crear un template ? gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | [quote="Antonio Linares":7pj9k4ty]Manuel,
El template lo has creado a mano ó usando xcode ?
Es decir, puede usarse xcode para crear un template ? gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:7pj9k4ty]
Antonio el template es el que trae el propio xcode modificado con xcode ...me explico para todos.
nos vamos a /Developer/Library/Xcode/Project Templates ( creo recordar , sino es parecido ) aqui tenemos todos los templates de xcode. Copiamos el que nos interesa a la carpeta ~/Library/Application Support/Developer/Shared/Xcode/
y lo abrimos con xcode . Hacemos las modificaciones oportunas y lo cerramos. listo .
Si abres el asistente de xcode para un nuevo proyecto lo veras en personalizados .
Saludos. |
he conseguido un iphone | He subido dos descargas a la página del proyecto:
1. Una única libreria Harbour que contiene todas dentro <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
<!-- m --><a class="postlink" href="http://fivephone.googlecode.com/files/libharbour.a">http://fivephone.googlecode.com/files/libharbour.a</a><!-- m -->
2. Una única librería FivePhone que contiene Five y FiveC dentro <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
<!-- m --><a class="postlink" href="http://fivephone.googlecode.com/files/libfivephone.a">http://fivephone.googlecode.com/files/libfivephone.a</a><!-- m -->
Probado con ambas y con el xcode correspondiente a la versión más reciente de iOS (4.2.1) y funcionando bien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | Manuel,
Los templates originales de xcode para el iPhone los he encontrado en:
/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates/Application |
he conseguido un iphone | Manuel,
[quote:ebu7dggu]
Antonio el template es el que trae el propio xcode modificado con xcode ...me explico para todos.
nos vamos a /Developer/Library/Xcode/Project Templates ( creo recordar , sino es parecido ) aqui tenemos todos los templates de xcode. Copiamos el que nos interesa a la carpeta ~/Library/Application Support/Developer/Shared/Xcode/
y lo abrimos con xcode . Hacemos las modificaciones oportunas y lo cerramos. listo .
Si abres el asistente de xcode para un nuevo proyecto lo veras en personalizados .
[/quote:ebu7dggu]
Podrias poner algunos pantallazos siguiendo el proceso ? No acabo de conseguirlo, gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | [quote="Antonio Linares":6ch347yz]Manuel,
Los templates originales de xcode para el iPhone los he encontrado en:
/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates/Application[/quote:6ch347yz]
No estoy en el mac asi que no puedo ponerte capturas de momento ,pero la cosa es muy simple ...
Bien , coje el que quieras ,por ejemplo el "View-based iPhone Application" , copia la carpeta
Vete a ~/Library/Application Support/Developer/Shared/Xcode
crea los directorios que faltan /Project Templates/Application/
y copia la carpeta anterior dentro .
Te queda así:
~/Library/Application Support/Developer/Shared/Xcode/Project Templates/Application/View-based iPhone Application/
dentro veras un proyecto de xcode ->doble click y te lo abre . Modificas el proyecto y lo cierras . Listo .
tienes en el repositorio un proyecto ya modificado por mi que funciona , está en el directorio fivephone sintax .
saludos. |
he conseguido un iphone | Antonio si puedes subir el make para hacer solo un lib al repositorio ......
Por cierto , deberíamos ponernos de acuerdo en una "instalacion standar" para que los path sean validos para todos. En la carpeta developer por ejemplo ...
----------------------- edito --------------------------------
He subido al repositorio un instalador de fivephone . Despues de mucho pensarlo pienso que el directorio Developer es el mas apropiado . No pertenece al sistema propiamente dicho ,pertenece a todos los usuarios y casi seguro todos lo hemos colocado en raiz . De esta manera podemos standarizar los path .
Un saludo. |
he conseguido un iphone | Manuel,
[quote:3aevbxsh]
Antonio si puedes subir el make para hacer solo un lib al repositorio ......
[/quote:3aevbxsh]
Lo he hecho a mano, asi:
[code=fw:3aevbxsh]<div class="fw" id="{CB}" style="font-family: monospace;"><br />libtool -<span style="color: #00C800;">static</span> -o libfivephone.a libfive.a libfivec.a<br /><br />libtool -<span style="color: #00C800;">static</span> -o libharbour.a libbz2.a libhbcommon.a libhbcpage.a libhbcplr.a libhbdebug.a libhbextern.a libhbhsx.a libhblang.a libhbmacro.a libhbnulrdd.a libhbrdd.a libhbrtl.a libhbsix.a libhbuddall.a libhbusrrdd.a libhbvm.a libjpeg.a liblibhpdf.a libm.a libminizip.a libmsqlite3<span style="color: #000000;">.0</span>.a libpng.a librddcdx.a librddfpt.a librddnsx.a librddntx.a<br /> </div>[/code:3aevbxsh] |
he conseguido un iphone | subido al repositorio instalador con el fivephone , harbour , archivos de sintaxis y template de aplicacion fivephone .... queda todo listo para usar .
Saludos. |
he conseguido un iphone | [quote="mastintin":4kky3an4]subido al repositorio instalador con el fivephone , harbour , archivos de sintaxis y template de aplicacion fivephone .... queda todo listo para usar .
Saludos.[/quote:4kky3an4]
Manuel,
Extraordinario! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Voy a ponerlo como fichero de descarga! Vamos muy bien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | Manuel,
Te ha quedado estupendo! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:81szx8lq]http://img827.imageshack.us/img827/9886/screenshot20101124at114.png[/img:81szx8lq] |
he conseguido un iphone | Funcionando en el simulador!!! <!-- s:-D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":-D" title="Very Happy" /><!-- s:-D -->
[img:17txm1y9]http://img10.imageshack.us/img10/170/screenshot20101125at131.png[/img:17txm1y9]
Subidas las librerias a la sección de descarga del proyecto:
<!-- m --><a class="postlink" href="http://fivephone.googlecode.com/files/libharbour.sim.a">http://fivephone.googlecode.com/files/libharbour.sim.a</a><!-- m -->
<!-- m --><a class="postlink" href="http://fivephone.googlecode.com/files/libfivephone.sim.a">http://fivephone.googlecode.com/files/l ... hone.sim.a</a><!-- m -->
He tenido que añadir unas funciones al proyecto. Ya las incluiremos en las librerias una vez revisadas:
[code=fw:17txm1y9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> HB_GT_TRM<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:17txm1y9]
[code=fw:17txm1y9]<div class="fw" id="{CB}" style="font-family: monospace;"><br />void write$UNIX2003<span style="color: #000000;">(</span> int i, char * s <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> NSString * ns = <span style="color: #000000;">[</span> <span style="color: #000000;">[</span> NSString alloc <span style="color: #000000;">]</span> initWithCString: <span style="color: #000000;">s</span> <span style="color: #000000;">]</span>;<br /> NSLog<span style="color: #000000;">(</span> ns <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br />void fopen$UNIX2003<span style="color: #000000;">(</span> void <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /><span style="color: #000000;">}</span><br /> </div>[/code:17txm1y9] |
he conseguido un iphone | Creadas las librería completas (teléfono y simulador) y funcionando correctamente! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[url:3kzljykx]http://fivephone.googlecode.com/files/libfivephone.full.a[/url:3kzljykx]
<!-- m --><a class="postlink" href="http://fivephone.googlecode.com/files/libharbour.full.a">http://fivephone.googlecode.com/files/libharbour.full.a</a><!-- m -->
Las he creado asi:
[code=fw:3kzljykx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />lipo -create -arch i386 libfivephone.sim.a -arch arm libfivephone.a -output libfivephone.full.a<br /> </div>[/code:3kzljykx]
[code=fw:3kzljykx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />lipo -create -arch i386 libharbour.sim.a -arch arm libharbour.a -output libharbour.full.a<br /> </div>[/code:3kzljykx] |
he conseguido un iphone | Antonio felicidades doble <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> .
Por el trabajo realizado .Estupendo <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Por tu cumpleaños .Aun mas importante quel trabajo es ir cumpliendo años .
Felicidades <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> |
he conseguido un iphone | Manuel,
Estamos realizando un trabajo en equipo, realmente bueno <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Gracias por todo,
Antonio |
he conseguido un iphone | Sorry if I write in English...
First of all many compliments for the work made.
If you use the Xcode compiler, you can develop for the Iphone, Ipad and for the Imac too ?
Thanks a lot.
Massimo.
if date() = ctod("25/11/2010")
msgalert("Happy Birthday Antonio","Fiwewin Power")
endif |
he conseguido un iphone | Massimo,
The iPhone and the iPad use the same library: FivePhone.
FiveMac uses a different library (FiveMac). And surely we could also build FiveMac apps from the xcode now, with all that we have learnt <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | Antonio ,he subido una nueva version del instalador con las librerias posteadas que sirven para telefono y simulador . Les he quitado lo de full de la extensión pues pienso que a partir de ahora debemos trabajar con estas .
Cambiala en los archivos de descarga cuando puedas.
Saludos. |
he conseguido un iphone | Subido nuevo makefile y un makelib.sh para intentar automatizar el hacer la libreria total en un paso .
Genera las 2 librerias sin problema ( la del simulador y la del telefono) . pero cuando ejecuta lipo me da un error y no genera la libreria final .
pare e un problema con los flags de compilacion del simulador que puse en el makefile .
[code=fw:261p9ird]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />lipo -create -arch i386 ./lib/libfiveSimul.a -arch arm ./lib/libfiveDevice.a -output ./lib/libfivephone.a<br />lipo: <span style="color: #000000;">specifed</span> architecture type <span style="color: #000000;">(</span>i386<span style="color: #000000;">)</span> <span style="color: #00C800;">for</span> file <span style="color: #000000;">(</span>./lib/libfiveSimul.a<span style="color: #000000;">)</span> does not <span style="color: #0000ff;">match</span> it<span style="color: #ff0000;">'s cputype (12) and cpusubtype (6) (should be cputype (7) and cpusubtype (3))<br /><br /><br /></span></div>[/code:261p9ird]
-------------------------edito ------------------------------------
no lo he probado aun pero he encontrado un bug ( ya corregido) en el makefile que seguro que es el problema .
Confirmado ya está resuelto .
Saludos. |
he conseguido un iphone | [quote="mastintin":1msd9hq0]Antonio ,he subido una nueva version del instalador con las librerias posteadas que sirven para telefono y simulador . Les he quitado lo de full de la extensión pues pienso que a partir de ahora debemos trabajar con estas .
Cambiala en los archivos de descarga cuando puedas.
Saludos.[/quote:1msd9hq0]
Manuel,
Subido a la sección de descargas, gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | Añadido los archivos simula.prg ( en funciones) y simulas.m para el simulador ...
El makelib.sh ya genera una unica libreria libfivephone.a compatible para simulador e iphone ...
Desde el simulador .... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
[img:d7gm6hx9]http://img842.imageshack.us/img842/4658/screencapture0.png[/img:d7gm6hx9]
Saludos. |
he conseguido un iphone | para poder usar los includes desde xcode en rules
[code=fw:2tzes7ri]<div class="fw" id="{CB}" style="font-family: monospace;"><br />/Developer/fivephone/harbour/bin/harbour $<span style="color: #000000;">{</span>INPUT_FILE_BASE<span style="color: #000000;">}</span>.prg -n -I/Developer/fivephone/fivephone/include -I/Developer/fivephone/harbour/include -o$<span style="color: #000000;">{</span>DERIVED_FILES_DIR<span style="color: #000000;">}</span>/$<span style="color: #000000;">{</span>INPUT_FILE_BASE<span style="color: #000000;">}</span>.c<br /> </div>[/code:2tzes7ri]
Ya tengo algo funcionando con DEFINES ...
[code=fw:2tzes7ri]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd , oLabel<br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">100</span><br /> <br /> @ <span style="color: #000000;">120</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> oLabel <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Hello world!"</span> <span style="color: #0000ff;">OF</span> oWnd ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">50</span> ;<br /> <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">255</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">100</span><br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /> </div>[/code:2tzes7ri] |
he conseguido un iphone | El simulador del iPad tambien funcionando bien, desde xcode <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:3vp7rm68]http://img593.imageshack.us/img593/5588/screenshot20101128at112.png[/img:3vp7rm68] |
he conseguido un iphone | los comandos para el Toolbar implementados. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
[code=fw:3gbdnr6p]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd , oLabel<br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">100</span><br /> <br /> TNavBar<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oWnd, <span style="color: #ff0000;">"FivePhone"</span>, <span style="color: #ff0000;">"Exit"</span>, <span style="color: #ff0000;">"About"</span> <span style="color: #000000;">)</span><br /><br /> <br /> oWnd:<span style="color: #000000;">oNavBar</span>:<span style="color: #000000;">bLeftClick</span> = <span style="color: #000000;">{</span> || oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> oWnd:<span style="color: #000000;">oNavBar</span>:<span style="color: #000000;">bRightClick</span> = <span style="color: #000000;">{</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"iOS SDK for Harbour"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> <br /> <br /> <span style="color: #0000ff;">DEFINE</span> TOOLBAR oTbr <span style="color: #0000ff;">OF</span> oWnd <br /> <br /> oTbr:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span><span style="color: #000000;">90</span>,<span style="color: #000000;">90</span>,<span style="color: #000000;">90</span>, <span style="color: #000000;">80</span><span style="color: #000000;">)</span><br /> oTbr:<span style="color: #000000;">SetTraslucent</span><span style="color: #000000;">(</span>.t.<span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> TBBUTTON <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">2</span> <span style="color: #0000ff;">OF</span> oTbr <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"New"</span> <span style="color: #000000;">)</span> <br /> <span style="color: #0000ff;">DEFINE</span> TBBUTTON <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">7</span> <span style="color: #0000ff;">OF</span> oTbr <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"New2"</span> <span style="color: #000000;">)</span> <br /> <span style="color: #0000ff;">DEFINE</span> TBBUTTON <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">9</span> <span style="color: #0000ff;">OF</span> oTbr <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"open2"</span> <span style="color: #000000;">)</span> <br /> <span style="color: #0000ff;">DEFINE</span> TBBUTTON <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">10</span> <span style="color: #0000ff;">OF</span> oTbr <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"open3"</span> <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">DEFINE</span> TBBUTTON <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Save"</span> <span style="color: #0000ff;">OF</span> oTbr <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"save"</span> <span style="color: #000000;">)</span> <br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /><br /> </div>[/code:3gbdnr6p]
[img:3gbdnr6p]http://img19.imageshack.us/img19/3492/screencaptureo0.png[/img:3gbdnr6p] |
he conseguido un iphone | Manuel,
He modificado el makefile para que cree libfivephone.a y ya no hace falta buildlib.sh
Log message
* makefile modified to create libfivephone.a
* No longer need for buildlib.sh
* Minor change to function NSLog() to avoid compiler warning
Affected files expand all collapse all
Modify /trunk/makefile diff
Delete /trunk/makelib.sh diff
Modify /trunk/source/sdkapi/system.m diff |
he conseguido un iphone | Nueva Clase TMoviePlayer <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Incluye el "hack" para ver el video por "AirPlay" en el AppleTV2 <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[img:1zou5cki]http://img811.imageshack.us/img811/3555/screenshot20101129at607.png[/img:1zou5cki] |
he conseguido un iphone | El ejemplo samples/movie.prg reproduciéndose por "AirPlay" desde el iphone en el televisor (a traves de Apple TV2):
[img:2oerb1ev]http://img219.imageshack.us/img219/5240/fotoca.jpg[/img:2oerb1ev] |
he conseguido un iphone | Muy bueno lo del hack <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> .
Antonio, Daniel quiero implementar los comandos para la clase View , pero no se si usar el comando DIALOG ,por similitud con el resto de los productos five o usar un nuevo comando VIEW . ¿ Como lo veis ?.
Saludos. |
he conseguido un iphone | Manuel,
Mi voto es ambos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Que pueda escribirse como VIEW ó DIALOG, asi ayudamos a los FiveWinners que vayan llegando <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | [quote="Antonio Linares":m0hz55ix]Manuel,
Mi voto es ambos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Que pueda escribirse como VIEW ó DIALOG, asi ayudamos a los FiveWinners que vayan llegando <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:m0hz55ix]
Misma opinion |
he conseguido un iphone | Implementados los commandos de Dialog - View
Implementados los commandos del tabbar ....
ahora es muy facil crear tabbars genericos ...
[code=fw:28z5eyoq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd , oLabel<br /> <br /> <span style="color: #00C800;">local</span> oVista1, oView2, oTabbar<br /> <span style="color: #00C800;">local</span> onavitem , onav1,onav2 <br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">100</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> TABS oTabBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"UNO"</span>,<span style="color: #ff0000;">"DOS"</span>,<span style="color: #ff0000;">"TRES"</span> OPTION <span style="color: #000000;">2</span> <br /> <br /> @ <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"First"</span> <span style="color: #0000ff;">OF</span> oTabBar:<span style="color: #000000;">aView</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <br /> @ <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Second"</span> <span style="color: #0000ff;">OF</span> oTabBar:<span style="color: #000000;">aView</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> <br /> @ <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"TRES"</span> <span style="color: #0000ff;">OF</span> oTabBar:<span style="color: #000000;">aView</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> <br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /> </div>[/code:28z5eyoq]
el resultado :
[img:28z5eyoq]http://img257.imageshack.us/img257/4134/screencapturemh.png[/img:28z5eyoq] |
he conseguido un iphone | primera implementacion de comandos NavBar funcionando.
el codigo que ejemplo de tabbar y navbar con comandos :
[code=fw:1iu04whj]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivephone.ch"</span><br /> <br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd , oLabel<br /> <br /> <span style="color: #00C800;">local</span> oVista1, oView2, oTabbar<br /> <span style="color: #00C800;">local</span> onavitem , onav1,onav2 <br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">100</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> TABS oTabBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"UNO"</span>,<span style="color: #ff0000;">"DOS"</span>,<span style="color: #ff0000;">"TRES"</span> ;<br /> OPTION <span style="color: #000000;">2</span> <br /> <br /> <br /> @ <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"First"</span> <span style="color: #0000ff;">OF</span> oTabBar:<span style="color: #000000;">aView</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <br /> @ <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Second"</span> <span style="color: #0000ff;">OF</span> oTabBar:<span style="color: #000000;">aView</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> <br /> @ <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"TRES"</span> <span style="color: #0000ff;">OF</span> oTabBar:<span style="color: #000000;">aView</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> <br /> <br /> <br /> <span style="color: #0000ff;">DEFINE</span> NAVBAR oNav1 <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Vista 1"</span> <span style="color: #0000ff;">OF</span> oTabBar:<span style="color: #000000;">aView</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> ;<br /> BTNLEFT <span style="color: #ff0000;">"Exit 1"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"exit1"</span><span style="color: #000000;">)</span> ;<br /> BTNRIGHT <span style="color: #ff0000;">"About 1"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"About1"</span><span style="color: #000000;">)</span> <br /> <br /> <span style="color: #0000ff;">DEFINE</span> NAVBAR oNav2 <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Vista 2"</span> <span style="color: #0000ff;">OF</span> oTabBar:<span style="color: #000000;">aView</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> ;<br /> BTNLEFT <span style="color: #ff0000;">"Exit 2"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"exit2"</span><span style="color: #000000;">)</span> ;<br /> BTNRIGHT <span style="color: #ff0000;">"About 2"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"About2"</span><span style="color: #000000;">)</span> <br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /><br /><br /> </div>[/code:1iu04whj] |
he conseguido un iphone | Implementado el comando listbox .Se puede mejorar aun mucho pero por ahora lo dejo asi .
Un ejemplo , tres tabs y en el segundo tab el listbox :
[code=fw:1ki3cmfd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivephone.ch"</span><br /> <br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd , oTabbar<br /> <span style="color: #00C800;">local</span> onav1,onav2 , oBrw<br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">100</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> TABS oTabBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"UNO"</span>,<span style="color: #ff0000;">"DOS"</span>,<span style="color: #ff0000;">"TRES"</span> ;<br /> OPTION <span style="color: #000000;">2</span> <br /> <br /> <br /> @ <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"First"</span> <span style="color: #0000ff;">OF</span> oTabBar:<span style="color: #000000;">aView</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <br /> @ <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"TRES"</span> <span style="color: #0000ff;">OF</span> oTabBar:<span style="color: #000000;">aView</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> <br /> <br /> <br /> <span style="color: #0000ff;">DEFINE</span> NAVBAR oNav1 <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Vista 1"</span> <span style="color: #0000ff;">OF</span> oTabBar:<span style="color: #000000;">aView</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> ;<br /> BTNLEFT <span style="color: #ff0000;">"Exit 1"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"exit1"</span><span style="color: #000000;">)</span> ;<br /> BTNRIGHT <span style="color: #ff0000;">"About 1"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"About1"</span><span style="color: #000000;">)</span> <br /> <br /> <span style="color: #0000ff;">DEFINE</span> NAVBAR oNav2 <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Configuracion"</span> <span style="color: #0000ff;">OF</span> oTabBar:<span style="color: #000000;">aView</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> ;<br /> BTNLEFT <span style="color: #ff0000;">"Exit 2"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"exit2"</span><span style="color: #000000;">)</span> ;<br /> BTNRIGHT <span style="color: #ff0000;">"About 2"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"About2"</span><span style="color: #000000;">)</span> <br /> <br /> <br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">LISTBOX</span> oBrw ;<br /> <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"Indices"</span>,<span style="color: #ff0000;">"Parametros"</span>,<span style="color: #ff0000;">"Conexiones"</span><span style="color: #000000;">}</span> ;<br /> HEADS <span style="color: #000000;">{</span>space<span style="color: #000000;">(</span><span style="color: #000000;">21</span><span style="color: #000000;">)</span>+<span style="color: #ff0000;">"Varios"</span><span style="color: #000000;">}</span> ;<br /> <span style="color: #0000ff;">OF</span> oTabBar:<span style="color: #000000;">aView</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>,<span style="color: #000000;">190</span> ;<br /> CELLHEIGHT <span style="color: #000000;">90</span> ;<br /> CELLSTYLE <span style="color: #000000;">1</span> ;<br /> CELLACCESORY <span style="color: #000000;">2</span> ;<br /> GROUP <br /> <br /> obrw:<span style="color: #000000;">SetBackClear</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /> </div>[/code:1ki3cmfd]
[img:1ki3cmfd]http://img193.imageshack.us/img193/9895/screencaptureyc.png[/img:1ki3cmfd] |
he conseguido un iphone | Manuel,
Está estupendo, enhorabuena! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | ¡¡Bonito!! Esto se está convirtiendo en una costumbre, llegar al curro y tirarse al post "he conseguido un iphone", jajajaja
Enhorabuena |
he conseguido un iphone | Antonio tenemos un problema en la libreria de harbour ....
Al usar la funcion alias() en un prg en el simulador me da este error :
[code=fw:m0gqp9yc]<div class="fw" id="{CB}" style="font-family: monospace;"><br />ld: <span style="color: #000000;">duplicate</span> symbol _HB_FUN_ALIAS in /Users/manuel/Desktop/paraiphone/harbour/lib/libharbour.a<span style="color: #000000;">(</span>dbcmd.o<span style="color: #000000;">)</span> and /Users/manuel/Desktop/paraiphone/harbour/lib/libharbour.a<span style="color: #000000;">(</span>nulsys.o<span style="color: #000000;">)</span><br />collect2: <span style="color: #000000;">ld</span> returned <span style="color: #000000;">1</span> exit status<br />Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc<span style="color: #000000;">-4.2</span> failed with exit code <span style="color: #000000;">1</span><br /><br /> </div>[/code:m0gqp9yc]
A sumar ... el mismo código , si me paso al Device en vez el simulador meda otro error distinto :
[code=fw:m0gqp9yc]<div class="fw" id="{CB}" style="font-family: monospace;"><br />ld: <span style="color: #000000;">duplicate</span> symbol _HB_FUN_DBUNLOCK in /Users/manuel/Desktop/paraiphone/harbour/lib/libharbour.a<span style="color: #000000;">(</span>dbcmd.o<span style="color: #000000;">)</span> and /Users/manuel/Desktop/paraiphone/harbour/lib/libharbour.a<span style="color: #000000;">(</span>nulsys.o<span style="color: #000000;">)</span><br />collect2: <span style="color: #000000;">ld</span> returned <span style="color: #000000;">1</span> exit status<br />Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc<span style="color: #000000;">-4.2</span> failed with exit code <span style="color: #000000;">1</span><br /><br /> </div>[/code:m0gqp9yc]
Si uso el simulador y quito la referencia a la funcion alias() del prg ahora el error es :
[code=fw:m0gqp9yc]<div class="fw" id="{CB}" style="font-family: monospace;"><br />ld: <span style="color: #000000;">duplicate</span> symbol _hb_rddSelectWorkAreaAlias in /Users/manuel/Desktop/paraiphone/harbour/lib/libharbour.a<span style="color: #000000;">(</span>nulsys.o<span style="color: #000000;">)</span> and /Users/manuel/Desktop/paraiphone/harbour/lib/libharbour.a<span style="color: #000000;">(</span>wafunc.o<span style="color: #000000;">)</span><br />collect2: <span style="color: #000000;">ld</span> returned <span style="color: #000000;">1</span> exit status<br />Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc<span style="color: #000000;">-4.2</span> failed with exit code <span style="color: #000000;">1</span><br /> </div>[/code:m0gqp9yc]
Si usamos las librerias antiguas de harbour para iphone y compilamos desde terminal funciona sin problemas ... |
he conseguido un iphone | Manuel,
El problema es que hemos añadido la librería libnullrdd.a junto con las otras librerias de RDDs al construir la librería única.
Hay que quitar libnullrdd.a al construir la libreria completa de Harbour |
he conseguido un iphone | Quedaría así:
libtool -static -o libharbour.a libhbcommon.a libhbcpage.a libhbcplr.a libhbdebug.a libhbextern.a libhbhsx.a libhblang.a libhbmacro.a libhbrdd.a libhbrtl.a libhbsix.a libhbuddall.a libhbusrrdd.a libhbvm.a libjpeg.a liblibhpdf.a libminizip.a libpng.a librddcdx.a librddfpt.a librddnsx.a librddntx.a
Aqui está la librería completa de Harbour (iPhone/iPad y simuladores) de nuevo:
<!-- m --><a class="postlink" href="http://fivephone.googlecode.com/files/libharbour.a">http://fivephone.googlecode.com/files/libharbour.a</a><!-- m --> |
he conseguido un iphone | Antonio nos falta un methodo para oview:end() .
si creamos una ventana ,matarla , se te ocurre algo ? |
he conseguido un iphone | Manuel,
En la Clase TWindow tenemos:
METHOD End() INLINE WndClose( ::hWnd ), EndPool()
Que destruye la ventana y hace que se salga del bucle principal, liberando el pool de memoria. Pues las aplicaciones del iPhone/iPad solo tienen una única ventana.
Para el método End() de la Clase TView solo tendriamos que hacer:
[ view release ];
y removerla de nuestro array devuelto por GetAllWin(). Creo que con eso es suficiente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | Añadido el methodo end a los view . Ya esta funcionando bien .
Realizaba el borrado y redimensionamiento del array de controles de harbour , y el release del objeto , pero el detalle que me tenia parado es que no realizaba la "baja" del objeto en el su superview de objective c :
Ahora si funciona . <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
[code=fw:qq4hn4ko]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> VIEWEND <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> UIView * view = <span style="color: #000000;">(</span> UIView * <span style="color: #000000;">)</span> hb_parnl<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">[</span>view removeFromSuperview <span style="color: #000000;">]</span>;<br /> <span style="color: #000000;">[</span>view <span style="color: #0000ff;">release</span><span style="color: #000000;">]</span>; <br /><span style="color: #000000;">}</span> <br /><br /><br /> </div>[/code:qq4hn4ko] |
he conseguido un iphone | que numeros son los que tendría que pasar como parametros para las animaciones ? . No entiendo que devuelve cada cosa
el problema es que es una variable NSUInteger y yo paso una variable hb_parnl que se supone es integer , por lo que no tiene el mismo tipo ...
[code=fw:1i6j1tun]<div class="fw" id="{CB}" style="font-family: monospace;"><br />UIViewAnimationOptions<br />Specifies options <span style="color: #00C800;">for</span> animating views with blocks.<br /><br />enum <span style="color: #000000;">{</span><br /> UIViewAnimationOptionLayoutSubviews = <span style="color: #000000;">1</span> << <span style="color: #000000;">0</span>,<br /> UIViewAnimationOptionAllowUserInteraction = <span style="color: #000000;">1</span> << <span style="color: #000000;">1</span>,<br /> UIViewAnimationOptionBeginFromCurrentState = <span style="color: #000000;">1</span> << <span style="color: #000000;">2</span>,<br /> UIViewAnimationOptionRepeat = <span style="color: #000000;">1</span> << <span style="color: #000000;">3</span>,<br /> UIViewAnimationOptionAutoreverse = <span style="color: #000000;">1</span> << <span style="color: #000000;">4</span>,<br /> UIViewAnimationOptionOverrideInheritedDuration = <span style="color: #000000;">1</span> << <span style="color: #000000;">5</span>,<br /> UIViewAnimationOptionOverrideInheritedCurve = <span style="color: #000000;">1</span> << <span style="color: #000000;">6</span>,<br /> UIViewAnimationOptionAllowAnimatedContent = <span style="color: #000000;">1</span> << <span style="color: #000000;">7</span>,<br /> UIViewAnimationOptionShowHideTransitionViews = <span style="color: #000000;">1</span> << <span style="color: #000000;">8</span>,<br /> <br /> UIViewAnimationOptionCurveEaseInOut = <span style="color: #000000;">0</span> << <span style="color: #000000;">16</span>,<br /> UIViewAnimationOptionCurveEaseIn = <span style="color: #000000;">1</span> << <span style="color: #000000;">16</span>,<br /> UIViewAnimationOptionCurveEaseOut = <span style="color: #000000;">2</span> << <span style="color: #000000;">16</span>,<br /> UIViewAnimationOptionCurveLinear = <span style="color: #000000;">3</span> << <span style="color: #000000;">16</span>,<br /> <br /> UIViewAnimationOptionTransitionNone = <span style="color: #000000;">0</span> << <span style="color: #000000;">20</span>,<br /> UIViewAnimationOptionTransitionFlipFromLeft = <span style="color: #000000;">1</span> << <span style="color: #000000;">20</span>,<br /> UIViewAnimationOptionTransitionFlipFromRight = <span style="color: #000000;">2</span> << <span style="color: #000000;">20</span>,<br /> UIViewAnimationOptionTransitionCurlUp = <span style="color: #000000;">3</span> << <span style="color: #000000;">20</span>,<br /> UIViewAnimationOptionTransitionCurlDown = <span style="color: #000000;">4</span> << <span style="color: #000000;">20</span>,<br /><span style="color: #000000;">}</span>;<br />typedef NSUInteger UIViewAnimationOptions;<br /> </div>[/code:1i6j1tun]
----------------- edito -------------------
Resuelto he cambiado la forma de implementarlo y ya no necesito lo anterior .. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Saludos.
como ampliacion y que quede aqui .....
UIViewAnimationOptionTransitionFlipFromLeft = 1 << 20 => su valor es 1048576 * 1
UIViewAnimationOptionTransitionFlipFromRight = 2 << 20, => su valor es 1048576 * 2 .....
UIViewAnimationOptionCurveEaseIn = 1 << 16 => su valor 65536 *1 ..... |
he conseguido un iphone | Ya funciona el view:end() , a sumar he añadido un methodo mas oview:EndAnimate(nAnimacion) que mata el dialogo y vuelve a la ventana padre con una animacion .
Segun que numero pongamos se realiza una animacion distinta .
[img:3bfbui2i]http://img440.imageshack.us/img440/5227/capturadepantalla201012k.png[/img:3bfbui2i] |
he conseguido un iphone | Creacion de indices en el iphone ....funciona perfectamente ....
Saludos.
[img:1f85t9q9]http://img210.imageshack.us/img210/3923/lafoto.png[/img:1f85t9q9] |
he conseguido un iphone | Muy buenas, por fin tengo un Hackintosh en mi PC, quien quiera le doy informacion de como instalarlo, bueno entonces ya empiezo a querer generar aplicaciones para el iPhone, he seguido algunos pasos pero me he quedado atascado:
1- Me he creado una carpeta llamada harbour y alli he metido
- harbour
- fivephone
1- He instalado el harbour desde
svn co <!-- m --><a class="postlink" href="https://harbour-project.svn.sourceforge.net/svnroot/harbour-project/trunk">https://harbour-project.svn.sourceforge ... ject/trunk</a><!-- m --> harbour
he realizado el make y todo a la perfeccion y ya puedo ejecutar ./harbour
2- He descargado el ultimo fivephone desde
svn co <!-- m --><a class="postlink" href="https://fivephone.googlecode.com/svn/trunk">https://fivephone.googlecode.com/svn/trunk</a><!-- m --> fivephone
pero cuando hago make me genera unos ciertos errores
Ayudarme con ellos. Tengo muchas ganas de generar aplicaciones iPhone desde harbour
sudo make
Password:
./../harbour/bin/darwin/clang/harbour source/classes/accel.prg -o./obj/accel.c -n -I./../harbour/include -I./include
Harbour 2.1.0beta2 (Rev. 15915)
Copyright (c) 1999-2010, <!-- m --><a class="postlink" href="http://harbour-project.org/">http://harbour-project.org/</a><!-- m -->
Compiling 'source/classes/accel.prg'...
Lines 1114, Functions/Procedures 3
Generating C source output to './obj/accel.c'... Done.
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -mthumb -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -c -o obj/accel.o -I./../harbour/include obj/accel.c
In file included from ./../harbour/include/hbvmpub.h:56,
from obj/accel.c:7:
./../harbour/include/hbdefs.h:56:20: error: stdarg.h: No such file or directory
./../harbour/include/hbdefs.h:57:19: error: stdio.h: No such file or directory
In file included from ./../harbour/include/hbdefs.h:58,
from ./../harbour/include/hbvmpub.h:56,
from obj/accel.c:7:
./../harbour/include/stdlib.h:61:26: error: Availability.h: No such file or directory
./../harbour/include/stdlib.h:63:20: error: _types.h: No such file or directory
./../harbour/include/stdlib.h:65:22: error: sys/wait.h: No such file or directory
./../harbour/include/stdlib.h:67:20: error: alloca.h: No such file or directory
In file included from ./../harbour/include/hbdefs.h:58,
from ./../harbour/include/hbvmpub.h:56,
from obj/accel.c:7:
./../harbour/include/stdlib.h:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘size_t’
./../harbour/include/stdlib.h:81: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ct_rune_t’
./../harbour/include/stdlib.h:86: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rune_t’
./../harbour/include/stdlib.h:93: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wchar_t’
./../harbour/include/stdlib.h:145: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
./../harbour/include/stdlib.h: In function ‘abs’:
./../harbour/include/stdlib.h:146: error: expected declaration specifiers before ‘__pure2’
./../harbour/include/stdlib.h:155: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:156: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:157: warning: parameter names (without types) in function declaration
./../harbour/include/stdlib.h:158: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pure2’
./../harbour/include/stdlib.h:159: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__dead2’
./../harbour/include/stdlib.h:162: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pure2’
./../harbour/include/stdlib.h:163: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__pure2’
./../harbour/include/stdlib.h:169: warning: parameter names (without types) in function declaration
./../harbour/include/stdlib.h:170: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:171: error: expected declaration specifiers before ‘size_t’
./../harbour/include/stdlib.h:172: error: expected ‘)’ before ‘*’ token
./../harbour/include/stdlib.h:173: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:173: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:174: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:174: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:177: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:179: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__DARWIN_ALIAS’
./../harbour/include/stdlib.h:180: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__DARWIN_ALIAS’
./../harbour/include/stdlib.h:183: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__DARWIN_LDBL_COMPAT’
./../harbour/include/stdlib.h:194: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__DARWIN_ALIAS_C’
./../harbour/include/stdlib.h:195: error: expected declaration specifiers before ‘size_t’
./../harbour/include/stdlib.h:196: error: expected declaration specifiers or ‘...’ before ‘wchar_t’
./../harbour/include/stdlib.h:199: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__dead2’
./../harbour/include/stdlib.h:223: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__DARWIN_ALIAS’
./../harbour/include/stdlib.h:229: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__DARWIN_ALIAS’
./../harbour/include/stdlib.h:233: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__DARWIN_ALIAS’
./../harbour/include/stdlib.h:255:27: error: machine/types.h: No such file or directory
./../harbour/include/stdlib.h:258: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dev_t’
./../harbour/include/stdlib.h:263: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mode_t’
./../harbour/include/stdlib.h:267: error: expected declaration specifiers before ‘u_int32_t’
./../harbour/include/stdlib.h:273: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:274: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:289: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__DARWIN_1050’
./../harbour/include/stdlib.h:290: warning: parameter names (without types) in function declaration
./../harbour/include/stdlib.h:291: error: expected ‘)’ before ‘char’
./../harbour/include/stdlib.h:297: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:297: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:300: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:300: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:303: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:303: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:306: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:306: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:309: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:309: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:312: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:312: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:315: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:315: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:318: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:318: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:321: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:321: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:330: error: expected declaration specifiers or ‘...’ before ‘size_t’
./../harbour/include/stdlib.h:337: error: storage class specified for parameter ‘suboptarg’
./../harbour/include/stdlib.h:338: warning: parameter names (without types) in function declaration
./../harbour/include/stdlib.h:345: error: expected declaration specifiers before ‘__END_DECLS’
In file included from ./../harbour/include/hbvmpub.h:56,
from obj/accel.c:7:
./../harbour/include/hbdefs.h:59:20: error: string.h: No such file or directory
./../harbour/include/hbdefs.h:60:20: error: limits.h: No such file or directory
./../harbour/include/hbdefs.h:78:23: error: stdint.h: No such file or directory
./../harbour/include/hbdefs.h:171:24: error: pthread.h: No such file or directory
In file included from ./../harbour/include/hbvmpub.h:56,
from obj/accel.c:7:
./../harbour/include/hbdefs.h:201: error: storage class specified for parameter ‘HB_ULONGLONG’
./../harbour/include/hbdefs.h:244: error: storage class specified for parameter ‘HB_BOOL’
./../harbour/include/hbdefs.h:245: error: storage class specified for parameter ‘HB_SCHAR’
./../harbour/include/hbdefs.h:246: error: storage class specified for parameter ‘HB_UCHAR’
./../harbour/include/hbdefs.h:247: error: storage class specified for parameter ‘HB_SHORT’
./../harbour/include/hbdefs.h:248: error: storage class specified for parameter ‘HB_USHORT’
./../harbour/include/hbdefs.h:249: error: storage class specified for parameter ‘HB_LONG’
./../harbour/include/hbdefs.h:250: error: storage class specified for parameter ‘HB_ULONG’
./../harbour/include/hbdefs.h:251: error: storage class specified for parameter ‘HB_INT’
./../harbour/include/hbdefs.h:252: error: storage class specified for parameter ‘HB_UINT’
./../harbour/include/hbdefs.h:267: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_SIZE’
./../harbour/include/hbdefs.h:269: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_ISIZ’
./../harbour/include/hbdefs.h:270: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_USIZ’
./../harbour/include/hbdefs.h:279: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_BYTE’
./../harbour/include/hbdefs.h:282: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_I8’
./../harbour/include/hbdefs.h:283: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_U8’
./../harbour/include/hbdefs.h:302: error: storage class specified for parameter ‘HB_I16’
./../harbour/include/hbdefs.h:303: error: storage class specified for parameter ‘HB_U16’
./../harbour/include/hbdefs.h:372: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_I64’
./../harbour/include/hbdefs.h:373: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_U64’
./../harbour/include/hbdefs.h:395: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘BOOL’
./../harbour/include/hbdefs.h:404: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘UINT’
./../harbour/include/hbdefs.h:407: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SCHAR’
./../harbour/include/hbdefs.h:410: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘UCHAR’
./../harbour/include/hbdefs.h:414: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘BYTE’
./../harbour/include/hbdefs.h:418: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SHORT’
./../harbour/include/hbdefs.h:421: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘USHORT’
./../harbour/include/hbdefs.h:425: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘LONG’
./../harbour/include/hbdefs.h:429: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ULONG’
./../harbour/include/hbdefs.h:434: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘LONGLONG’
./../harbour/include/hbdefs.h:437: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ULONGLONG’
./../harbour/include/hbdefs.h:458: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘UINT16’
./../harbour/include/hbdefs.h:461: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘INT16’
./../harbour/include/hbdefs.h:464: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘UINT32’
./../harbour/include/hbdefs.h:467: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘INT32’
./../harbour/include/hbdefs.h:471: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘UINT64’
./../harbour/include/hbdefs.h:474: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘INT64’
./../harbour/include/hbdefs.h:481: error: storage class specified for parameter ‘HB_MAXDBL’
./../harbour/include/hbdefs.h:503: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_MAXINT’
./../harbour/include/hbdefs.h:504: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_MAXUINT’
./../harbour/include/hbdefs.h:517: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_VMMAXINT’
./../harbour/include/hbdefs.h:518: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_VMMAXUINT’
./../harbour/include/hbdefs.h:584:1: warning: "HB_LONG_LENGTH" redefined
./../harbour/include/hbdefs.h:578:1: warning: this is the location of the previous definition
./../harbour/include/hbdefs.h:615: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_TYPE’
./../harbour/include/hbdefs.h:618: error: storage class specified for parameter ‘HB_COUNTER’
./../harbour/include/hbdefs.h:625: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_FATTR’
./../harbour/include/hbdefs.h:632: error: storage class specified for parameter ‘HB_PTRDIFF’
./../harbour/include/hbdefs.h:633: error: storage class specified for parameter ‘HB_PTRUINT’
./../harbour/include/hbdefs.h:641: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_FOFFSET’
./../harbour/include/hbdefs.h:649: error: storage class specified for parameter ‘HB_FHANDLE’
./../harbour/include/hbdefs.h:650: error: storage class specified for parameter ‘HB_NHANDLE’
./../harbour/include/hbdefs.h:879: error: expected specifier-qualifier-list before ‘HB_BYTE’
./../harbour/include/hbdefs.h:881: error: storage class specified for parameter ‘HB_PTRCAST’
./../harbour/include/hbdefs.h:881: error: storage class specified for parameter ‘PHB_PTRCAST’
./../harbour/include/hbdefs.h:885: error: expected specifier-qualifier-list before ‘HB_U16’
./../harbour/include/hbdefs.h:887: error: storage class specified for parameter ‘HB_U16CAST’
./../harbour/include/hbdefs.h:887: error: storage class specified for parameter ‘PHB_U16CAST’
./../harbour/include/hbdefs.h:891: error: expected specifier-qualifier-list before ‘HB_U32’
./../harbour/include/hbdefs.h:893: error: storage class specified for parameter ‘HB_U32CAST’
./../harbour/include/hbdefs.h:893: error: storage class specified for parameter ‘PHB_U32CAST’
./../harbour/include/hbdefs.h:898: error: expected specifier-qualifier-list before ‘HB_U64’
./../harbour/include/hbdefs.h:900: error: storage class specified for parameter ‘HB_U64CAST’
./../harbour/include/hbdefs.h:900: error: storage class specified for parameter ‘PHB_U64CAST’
./../harbour/include/hbdefs.h:906: error: expected specifier-qualifier-list before ‘HB_BYTE’
./../harbour/include/hbdefs.h:910: error: storage class specified for parameter ‘HB_DBLCAST’
./../harbour/include/hbdefs.h:910: error: storage class specified for parameter ‘PHB_DBLCAST’
./../harbour/include/hbdefs.h:912: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
./../harbour/include/hbdefs.h:919: error: expected ‘)’ before ‘*’ token
./../harbour/include/hbdefs.h:926: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_hb_get_std_uint16’
./../harbour/include/hbdefs.h:933: error: expected ‘)’ before ‘*’ token
./../harbour/include/hbdefs.h:940: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_hb_get_rev_uint16’
./../harbour/include/hbdefs.h:948: error: expected ‘)’ before ‘*’ token
./../harbour/include/hbdefs.h:956: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_hb_get_std_uint32’
./../harbour/include/hbdefs.h:963: error: expected ‘)’ before ‘*’ token
./../harbour/include/hbdefs.h:970: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_hb_get_rev_uint32’
./../harbour/include/hbdefs.h:985: error: expected ‘)’ before ‘*’ token
./../harbour/include/hbdefs.h:1001: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_hb_get_std_uint64’
./../harbour/include/hbdefs.h:1008: error: expected ‘)’ before ‘*’ token
./../harbour/include/hbdefs.h:1015: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_hb_get_rev_uint64’
./../harbour/include/hbdefs.h:1034: error: expected ‘)’ before ‘*’ token
./../harbour/include/hbdefs.h:1054: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
./../harbour/include/hbdefs.h:1061: error: expected ‘)’ before ‘*’ token
./../harbour/include/hbdefs.h:1068: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
./../harbour/include/hbdefs.h:1089: error: expected ‘)’ before ‘*’ token
./../harbour/include/hbdefs.h:1663: error: storage class specified for parameter ‘PHB_FUNC’
./../harbour/include/hbdefs.h:1664: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_FUNC_PTR’
./../harbour/include/hbdefs.h:1667: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HB_SYMBOLSCOPE’
./../harbour/include/hbdefs.h:1669: error: storage class specified for parameter ‘HB_ATTR’
./../harbour/include/hbdefs.h:1670: error: storage class specified for parameter ‘HB_COLOR’
In file included from ./../harbour/include/hbdefs.h:1710,
from ./../harbour/include/hbvmpub.h:56,
from obj/accel.c:7:
./../harbour/include/hbtrace.h:219: error: storage class specified for parameter ‘HB_TRACEINFO’
./../harbour/include/hbtrace.h:219: error: storage class specified for parameter ‘PHB_TRACEINFO’
./../harbour/include/hbtrace.h:221: error: storage class specified for parameter ‘hb_tracestate’
./../harbour/include/hbtrace.h:222: error: storage class specified for parameter ‘hb_tracelevel’
./../harbour/include/hbtrace.h:223: error: storage class specified for parameter ‘hb_traceflush’
./../harbour/include/hbtrace.h:224: error: storage class specified for parameter ‘hb_tracesysout’
./../harbour/include/hbtrace.h:225: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘hb_tracefile’
./../harbour/include/hbtrace.h:227: error: storage class specified for parameter ‘hb_tracelog’
./../harbour/include/hbtrace.h:229: error: storage class specified for parameter ‘hb_traceset’
./../harbour/include/hbtrace.h:230: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘hb_traceinfo’
./../harbour/include/hbtrace.h:232: error: storage class specified for parameter ‘hb_tr_level’
./../harbour/include/hbtrace.h:233: error: storage class specified for parameter ‘hb_tr_trace’
./../harbour/include/hbtrace.h:234: error: storage class specified for parameter ‘hb_tr_stealth’
In file included from obj/accel.c:7:
./../harbour/include/hbvmpub.h:174: error: storage class specified for parameter ‘PHB_ITEM’
./../harbour/include/hbvmpub.h:175: error: storage class specified for parameter ‘HB_ITEM_PTR’
./../harbour/include/hbvmpub.h:176: error: storage class specified for parameter ‘HB_CODEBLOCK_PTR’
./../harbour/include/hbvmpub.h:177: error: storage class specified for parameter ‘PHB_PCODEFUNC’
./../harbour/include/hbvmpub.h:179: error: storage class specified for parameter ‘HB_STACK’
./../harbour/include/hbvmpub.h:195: error: storage class specified for parameter ‘PHB_DYNS’
./../harbour/include/hbvmpub.h:196: error: storage class specified for parameter ‘PHB_DYNS_PTR’
./../harbour/include/hbvmpub.h:207: error: expected specifier-qualifier-list before ‘HB_SYMBOLSCOPE’
./../harbour/include/hbvmpub.h:212: error: expected specifier-qualifier-list before ‘PHB_FUNC’
./../harbour/include/hbvmpub.h:216: error: expected specifier-qualifier-list before ‘PHB_DYNS’
./../harbour/include/hbvmpub.h:217: error: storage class specified for parameter ‘HB_SYMB’
./../harbour/include/hbvmpub.h:217: error: storage class specified for parameter ‘PHB_SYMB’
./../harbour/include/hbvmpub.h:220: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PHB_DYNS_FUNC’
./../harbour/include/hbvmpub.h:222: error: storage class specified for parameter ‘PHB_ALLOCUPDT_FUNC’
./../harbour/include/hbvmpub.h:224: error: storage class specified for parameter ‘HB_INIT_FUNC’
./../harbour/include/hbvmpub.h:228: error: expected specifier-qualifier-list before ‘HB_INIT_FUNC’
./../harbour/include/hbvmpub.h:231: error: storage class specified for parameter ‘HB_FUNC_LIST’
./../harbour/include/hbvmpub.h:231: error: storage class specified for parameter ‘PHB_FUNC_LIST’
./../harbour/include/hbvmpub.h:249: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
In file included from obj/accel.c:8:
./../harbour/include/hbinit.h:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘hb_vmProcessSymbols’
obj/accel.c:12: error: storage class specified for parameter ‘HB_FUN___CLSLOCKDEF’
obj/accel.c:13: error: storage class specified for parameter ‘HB_FUN_HBCLASS’
obj/accel.c:14: error: storage class specified for parameter ‘HB_FUN_HBOBJECT’
obj/accel.c:15: error: storage class specified for parameter ‘HB_FUN_TACCELEROMETER_NEW’
obj/accel.c:16: error: storage class specified for parameter ‘HB_FUN_TACCELEROMETER_HANDLEEVENT’
obj/accel.c:17: error: storage class specified for parameter ‘HB_FUN___CLSUNLOCKDEF’
obj/accel.c:18: error: storage class specified for parameter ‘HB_FUN___OBJHASMSG’
obj/accel.c:19: error: storage class specified for parameter ‘HB_FUN_CREATEACCELEROMETER’
obj/accel.c:20: error: storage class specified for parameter ‘HB_FUN_EMPTY’
obj/accel.c:21: error: storage class specified for parameter ‘HB_FUN_GETACCELEROMETERX’
obj/accel.c:22: error: storage class specified for parameter ‘HB_FUN_GETACCELEROMETERY’
obj/accel.c:23: error: storage class specified for parameter ‘HB_FUN_GETACCELEROMETERZ’
obj/accel.c:24: error: storage class specified for parameter ‘hb_INITSTATICS’
obj/accel.c:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘symbols_table’
obj/accel.c:52: error: expected declaration specifiers before ‘;’ token
obj/accel.c:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘symbols’
obj/accel.c:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
obj/accel.c:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
obj/accel.c:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
obj/accel.c:103: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
obj/accel.c:118: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
obj/accel.c:125: error: old-style parameter declarations in prototyped function definition
./../harbour/include/stdlib.h:146: error: parameter name omitted
obj/accel.c:125: error: expected ‘{’ at end of input
make: *** [obj/accel.o] Error 1
rm obj/accel.c |
he conseguido un iphone | Softruz ...parece un problema con la version de harbour ....Todo mucho mas facil .... cogete el instalador que hemos dejado en descargas :[url:16rzd0y0]http://code.google.com/p/fivephone/downloads/detail?name=Fivephone.pkg&can=2&q=[/url:16rzd0y0]
y te queda preparado para programar . bajate el ultimo codigo del repositorio de fivephone ( carpeta source) y el archivo make para compilar y listo . |
he conseguido un iphone | he subido un nuevo instalador al repositorio con los últimos cambios . Está en fivephone sintax ... es un archivo pkg . Bajate solo ese archivo.
Supongo que ya tienes instalado las herramientas de desarrollo de mac . si no las tienes instalalas (<!-- m --><a class="postlink" href="http://developer.apple.com">http://developer.apple.com</a><!-- m --> ) son gratuitas .
Luego Instala el paquete fivephone . Dentro del directotio Developer tendras una carpeta llamada fivephone . dentro dos carpetas ,la de harbour y la de fivephone listas para funcionar .
Un saludo. |
he conseguido un iphone | [quote="softruz":34a0416s]Muy buenas, por fin tengo un Hackintosh en mi PC, quien quiera le doy informacion de como instalarlo...
[/quote:34a0416s]
Hola, me puedes pasar información. Mi direccion es <!-- e --><a href="mailto:pacogarcia@gmail.com">pacogarcia@gmail.com</a><!-- e -->
Un saludo |
he conseguido un iphone | Hola softruz,
Yo también estoy interesado en hacer estas pruebas, pero primero lo primero, por favor me puedes dar información referente acerca de hackintosh.
Gracias,
Alin |
he conseguido un iphone | Mastintin. Puedes poner las direcciones de descargas de los instaladores d harbour y fivephone gracias |
he conseguido un iphone | [quote="softruz":2adfql8q]Mastintin. Puedes poner las direcciones de descargas de los instaladores d harbour y fivephone gracias[/quote:2adfql8q]
Es un unico instalador que te instala el fivephone , el harbour y la plantilla para programar con xcode y el archivo de sintaxis .
Te lo deja para trabajar . te lo subo [url:2adfql8q]http://rapidshare.com/files/435347380/_Fivephone.pkg[/url:2adfql8q] |
he conseguido un iphone | Una muestra de una aplicación que estoy haciendo para buscar codigos postales en España ...faltan aún detalles como las busquedas y demas pero ya funciona ... Entera realizada con fivephone desde código ( ningun archivo nib ) .
Un saludo.
[img:hhlalumg]http://img839.imageshack.us/img839/7906/lafotow.png[/img:hhlalumg] [img:hhlalumg]http://img232.imageshack.us/img232/3244/lafotof.png[/img:hhlalumg] |
he conseguido un iphone | Muchas gracias, ya lo he descargado voy a probar y te digo algo.
Un Saludo. |
he conseguido un iphone | Hola
Para el programa que tengo en mente necesitaría acceder a la brújula y al giróscopo. Se podrá hacer desde 5p??
Edito:
Creo que tiene que ver con las clases:
CLLocationManager y con CMMotionManager
[i:3lu7xvns][size=85:3lu7xvns]Un objeto CMMotionManager es la puerta de acceso a los servicios de movimiento proporcionado por el IOS. Estos servicios proporcionan una aplicación con los datos del acelerómetro, los datos de velocidad de rotación, y otros datos de movimiento de dispositivos tales como la altitud. Estos tipos de datos de los acelerómetros vienen con un dispositivo y (en algunos modelos) su giroscopio.[/size:3lu7xvns][/i:3lu7xvns]
[url:3lu7xvns]http://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html[/url:3lu7xvns]
[url:3lu7xvns]http://developer.apple.com/library/ios/#documentation/CoreMotion/Reference/CMMotionManager_Class/Reference/Reference.html[/url:3lu7xvns]
La última noticia es que el Mac me llega el 17 de este <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
A ver si es verdad y puedo contribuir |
he conseguido un iphone | [quote="pgfdz":erxsx4lr]Hola
Para el programa que tengo en mente necesitaría acceder a la brújula y al giróscopo. Se podrá hacer desde 5p??
Edito:
Creo que tiene que ver con las clases:
CLLocationManager y con CMMotionManager
[i:erxsx4lr][size=85:erxsx4lr]Un objeto CMMotionManager es la puerta de acceso a los servicios de movimiento proporcionado por el IOS. Estos servicios proporcionan una aplicación con los datos del acelerómetro, los datos de velocidad de rotación, y otros datos de movimiento de dispositivos tales como la actitud. Estos tipos de datos de los acelerómetros vienen con un dispositivo y (en algunos modelos) su giroscopio.[/size:erxsx4lr][/i:erxsx4lr]
[url:erxsx4lr]http://developer.apple.com/library/ios/#documentation/CoreMotion/Reference/CMMotionManager_Class/Reference/Reference.html[/url:erxsx4lr]
La gestion de acelerometros esta implementada ( solo inicialmente ) en el archivo acells.m ., pero supongo que será cosa de ponerse con ello cuando tengamos un ratito .
Animo con la espera de ordenador que a la larga merece la pena : <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
La última noticia es que el Mac me llega el 17 de este <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
A ver si es verdad y puedo contribuir[/quote:erxsx4lr] |
he conseguido un iphone | Dibujar en IPhone:
[url:2vplslbm]http://www.techotopia.com/index.php/An_iPhone_Graphics_Drawing_Tutorial_using_Quartz_2D[/url:2vplslbm]
Un saludo |
he conseguido un iphone | Tengo el programa casi terminado , faltan los detalles de calidad (un view que no permita tocar el browse mientras buscas , y cosas asi ).
Cuando lo tenga mas completo pondré aqui todo su codigo para quien lo quiera compilar ...
Ya tengo implementada y funcionando la busqueda en browse sobre array . De momento esta un poco complicada ,pero miraré como simplificar todo . para sacar el "buscador" se invoca a obrw:addsearch() y para quitarlo obrw:delsearch() ...el proceso de filtrado me funciona pero tengo que pensar como "generalizarlo".
Tambien funciona muy bien la busqueda de la calle en el maps del iphone ....
Saludos.
[img:1x5g4plb]http://img227.imageshack.us/img227/3923/lafoto.png[/img:1x5g4plb] [img:1x5g4plb]http://img227.imageshack.us/img227/108/lafoto2.png[/img:1x5g4plb] |
he conseguido un iphone | Un offtopic .... mi amigo de este puente largo ....me lo han dejado unos dias y es una gozada programarlo para realizar "misiones" . Tiene detector de ultrasonidos ,de sonido , detector de colores ,tres motores( uno para el brazo robotico),sensor de presion ...todo controlado por una cpu arm7 , programado con el ordenador y enviado via bluetooth
[img:1exvmfcm]http://img213.imageshack.us/img213/6451/lafotoz.jpg[/img:1exvmfcm] |
he conseguido un iphone | Que chulada!!! <!-- s:-D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":-D" title="Very Happy" /><!-- s:-D --> |
he conseguido un iphone | <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> . Muy bueno , admito que tienes toda la razón .
El caso es que realmente en el browse de iphone no tenemos porque cargar todo .... se puede controlar que se carga sin problema , por ejemplo solo carge 20 elementos y que elementos son esos 20 ... sería todo cuestion de mirar como se puede controlar cuando se hace scroll hasta la celda ( pongamos ) 15 y que carge los 15 siguientes ...ojo que lo que digo se me ocurre sobre la marcha segun escribo .
De todas formas las posiblidades de dibujo de ios son muchas, he visto por algun lado una barra tipo dock integramente realizada desde codigo ....
saludos. |
he conseguido un iphone | me he puesto con los browse de dbf ( los de array parece que van bastante bien ) : Tengo un problema y mi clipper esta algo oxidado ... cuando carga el browse se produce una itinerancia de la dbf con un dbgoto(nrow+1) que va devolviendo los valores que carga el browse .
Esto funciona muy bien mientras no tengamos indices . Si tenemos indices el dbgoto() carga los valores en el orden "natural" de la base de datos y no en el orden que debe ...
de momento lo he solucionado con un dbgotop() dbskip(nRow+1) pero seguro que existe algo mejor .....
Saludos.
Otra cosa para devolver el elemento selecionado ,debemos buscar otra formula para las dbfs , ya que si utilizo la dbf para buscar el valor luego se pierde al recargar los valores del browse . |
he conseguido un iphone | [quote="mastintin":2xl0lfmu]me he puesto con los browse de dbf ( los de array parece que van bastante bien ) : Tengo un problema y mi clipper esta algo oxidado ... cuando carga el browse se produce una itinerancia de la dbf con un dbgoto(nrow+1) que va devolviendo los valores que carga el browse .
Esto funciona muy bien mientras no tengamos indices . Si tenemos indices el dbgoto() carga los valores en el orden "natural" de la base de datos y no en el orden que debe ...
de momento lo he solucionado con un dbgotop() dbskip(nRow+1) pero seguro que existe algo mejor .....
Saludos.
Otra cosa para devolver el elemento selecionado ,debemos buscar otra formula para las dbfs , ya que si utilizo la dbf para buscar el valor luego se pierde al recargar los valores del browse .[/quote:2xl0lfmu]
Yo tampoco controlo mucho de los dbfs pero supongo que si mueves el puntero en la busqueda luego tendrás que resituarlo, no?
¿cómo funcionan los browses en iphone? ¿cargas un control nativo fisicamente con todos los registros? En five es virtual, no se cargan sino que se pintan los que tocan.
No podríamos acoplar el browse de fivewin, aunque fuera de una versión muy temprana a 5p? Por lo que he estado viendo no es muy complicado y no es muy diferente la forma de pintar en windows y ios |
he conseguido un iphone | pgfdz ...
En iphone internamente lo que el browse carga es un array , o mejor dicho un "diccionario" (array con claves) con uno o varios arrays . tiene una velocidad de carga muy buena y le da una flexibilidad increible .Puedes carga lo que te de la gana y como tu quieras .El tema consiste en como cargar esos arrays .Yo por ejemplo lo que estoy haciendo es crear un array con los datos de la base de datos que me interesan ( todos o parte) y luego pasarlos al browse . Se hacen dos trabrabajos :
1.- recorrer la base de datos para crear el array .
2.- recorrer el array para cargar los datos .
No tiene mala respuesta ,puedo decirte que en hacer estas 2 operaciones mi iphone ( 3gs) tarda para 57.000 registros unos 2 segundos , demasiado para algo que tiene que no notarse . supongo que en el 4G que tiene mas memoria y procesador esto no se notará tanto .
El metodo usado con dbfs que ideo Antonio es magnifico .Solo hace una itineración por la base de datos y se cargan rapidísimo .Decir que la carga de los 57.000 registros es instantaneo .Claro que estoy hablando en el uso de la funcion dbgoto() que no nos sirbe .Pensemos que la funcion X que usemos se usará x*57000 veces asi que esta debe ser lo mas optima posible .
Crear un browse "pintado" bajo mi punto de vista , es como intentar inventar la rueda , te limita el uso de las nib ( pintado con recursos) que acelera el desarrollo un monton ,es dificil de mantener si apple cambia el "aspecto visual" del ioS y no creo que elimine los problemas de implementación en el paso de datos desde harbour a objective-c .
Un abrazo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
he conseguido un iphone | [quote="mastintin":suv2ldhw]...Crear un browse "pintado" bajo mi punto de vista , es como intentar inventar la rueda , te limita el uso de las nib ( pintado con recursos) que acelera el desarrollo un monton ,es dificil de mantener si apple cambia el "aspecto visual" del ioS y no creo que elimine los problemas de implementación en el paso de datos desde harbour a objective-c .
Un abrazo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:suv2ldhw]
[img:suv2ldhw]http://www.devtics.com.mx/imgs/blogimgs/no-reinventar-la-rueda/rueda.jpg[/img:suv2ldhw] [img:suv2ldhw]http://www.marcadecoche.com/images/ruedas-sin-aire.jpg[/img:suv2ldhw] <--- mi coche en la actualidad <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
Hombre, reinventar la rueda se ha hecho constantemente. La primera rueda que se inventó no tiene nada que ver con las ruedas que calzan nuestros coches en la actualidad. Los "Browses de Linares" son listas virtuales que solo pintan lo que cabe en la pantalla. No le veo ningún problema. En cuanto a pintarlos, nos hemos pasado toda la vida pintando controles "parecidos" a los de Windows. He estado viendo la documentación y pone que se pueden crear Plug-in para Interface Builder. Todavía no sé muy bien de lo que hablo, ya comenté que hasta el 17 no me traen el mac, pero creo que se podría hacer un browse que tuviera el "Kinetic scrolling" vertical y horizontal y que no cargase en un array sino que pintase de una tirada lo que se necesitase. En cuanto al "aspecto visual" pues habrá que hacer algo como con los temas de xp, no?
Un saludo |
he conseguido un iphone | Hola M,
Si me puedo unir a la fiesta.... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> . Yo creo q los browse tanto de FWPPC como de 5P tienen q estar mas enfocados a la paginación. Piensa q si conectamos a alguna base de datos en INet por ejemplo MySql, cargaremos x registros de una consulta. Si somos capaces de controlar si EOF() o BOF() pues carga +15 o -15 sera lo mejor... (No se ha de mirar solo el trabajo en "LOCAL" )
Softruz has conseguido intalar el hackintosh i q funcione bien con todo el paquete de 5P (Harbour, libreria, xCode, ...) ?
Puedes indicarme por donde empiezo ? <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Saludos.
C. |
he conseguido un iphone | Carles bien venido al club .... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> .
De forma "nativa" los iphone trabajan con sqllite , lo que implica que la forma de "funcionar" ya está adaptada al sql ,todo es cuestion de ver "como lo hace" .
saludos.
------------------ edito -----------------------------
aqui un ejemplo :[url:26vyeted]http://blog.objectgraph.com/index.php/2010/04/08/how-to-use-sqlite-with-uitableview-in-iphone-sdk/[/url:26vyeted] |
he conseguido un iphone | M,
Gràcias por info. Ahora lo primero es saber si puedo montar un entorno de trabajo desde el propio PC. Y si, me apetece ahora este club. A ver en q puedo ayudar |
he conseguido un iphone | [quote="mastintin":1d0po3nw]me he puesto con los browse de dbf ( los de array parece que van bastante bien ) : Tengo un problema y mi clipper esta algo oxidado ... cuando carga el browse se produce una itinerancia de la dbf con un dbgoto(nrow+1) que va devolviendo los valores que carga el browse .
Esto funciona muy bien mientras no tengamos indices . Si tenemos indices el dbgoto() carga los valores en el orden "natural" de la base de datos y no en el orden que debe ...
de momento lo he solucionado con un dbgotop() dbskip(nRow+1) pero seguro que existe algo mejor .....
Saludos.
Otra cosa para devolver el elemento selecionado ,debemos buscar otra formula para las dbfs , ya que si utilizo la dbf para buscar el valor luego se pierde al recargar los valores del browse .[/quote:1d0po3nw]
Solucionado ordkeygoto() es mi funcion ....para devolver el valor selecionado lo mismo ... |
he conseguido un iphone | Mastintin, ya he instalado el archivo de instalador Fivephone, que has dejado para descargar, pero tengo otro problema, como os comente tengo instalado Hackintosh en un HP, y a la hora de ejecutar harbour me dice que
- Bad CPU type in executable
Podemos hacer algo con esto
un saludo. el Harbour que me baje del repositorio si me funcionaba.
Que hago.
'
Un Saludo. |
he conseguido un iphone | [quote="softruz":1daqvatc]Mastintin, ya he instalado el archivo de instalador Fivephone, que has dejado para descargar, pero tengo otro problema, como os comente tengo instalado Hackintosh en un HP, y a la hora de ejecutar harbour me dice que
- Bad CPU type in executable
Podemos hacer algo con esto
un saludo. el Harbour que me baje del repositorio si me funcionaba.
Que hago.
'
Un Saludo.[/quote:1daqvatc]
Siento la tardanza...estoy fuera por trabajo y te escribo desde el iPhone .
Te explico un poco el tema ...
Jugamos con 3 plataformas distintas eliphone,los intel,y los powerpc.
El harbour que tienes en el instalador lo a construido Antonio y supongo esta construido para Intel .
Si tu hackintos esta instalado como un powerpc en vez un Intel es lógico que de ese error al ejecutarse .
Una solución rápida que se me ocurre es que guasea el harbour que tienes con otro nombre y coloques el harbour anterior (que si funcionaba ) en su lugar.
De todas formas si nos puedes decir que pasos das o que ejecutas para que te lance el error intentaremos ayudaste.
Piensa que el programa que sale es arquitectura arm y solo se ejecutara en eliphone.
Un saludo |
he conseguido un iphone | [quote="mastintin":23ciy2yt][quote="softruz":23ciy2yt]Mastintin, ya he instalado el archivo de instalador Fivephone, que has dejado para descargar, pero tengo otro problema, como os comente tengo instalado Hackintosh en un HP, y a la hora de ejecutar harbour me dice que
- Bad CPU type in executable
Podemos hacer algo con esto
un saludo. el Harbour que me baje del repositorio si me funcionaba.
Que hago.
'
Un Saludo.[/quote:23ciy2yt]
Siento la tardanza...estoy fuera por trabajo y te escribo desde el iPhone .
Te explico un poco el tema ...
Jugamos con 3 plataformas distintas eliphone,los intel,y los powerpc.
El harbour que tienes en el instalador lo a construido Antonio y supongo esta construido para Intel .
Si tu hackintos esta instalado como un powerpc en vez un Intel es lógico que de ese error al ejecutarse .
Una solución rápida que se me ocurre es que guasea el harbour que tienes con otro nombre y coloques el harbour anterior (que si funcionaba ) en su lugar.
De todas formas si nos puedes decir que pasos das o que ejecutas para que te lance el error intentaremos ayudaste.
Piensa que el programa que sale es arquitectura arm y solo se ejecutara en eliphone.
Un saludo[/quote:23ciy2yt]
Podríais explicar de alguna forma como instalar ios en un pc? Supongo que Snow Leopard.
Yo una vez lo intenté en un portatil, parecía que se instalaba pero al reiniciar me echaba fuera. |
he conseguido un iphone | [quote="pgfdz":hp5nruz7]
Podríais explicar de alguna forma como instalar ios en un pc? Supongo que Snow Leopard.
Yo una vez lo intenté en un portatil, parecía que se instalaba pero al reiniciar me echaba fuera.[/quote:hp5nruz7]
En eso no te puedo ayudar demasiado . Trabajo sobre mac . Hace tiempo en la epoca de tiger si he tenido un hackinthos corriendo sobre un AMD y la verdad es que la "experiencia de usuario " nada tiene que ver con un autentico mac .
Desde entonces se ha hecho mucho camino , los procesadores son mucho mas potentes y las distribuciones alternativas han mejorado muchísimo .Se que existe un aumento de exito si tu procesador es intel y tu tarjeta grafica es "soportada" por algun modelo de mac . Otra opcion que aumenta la posiblidad de exito es usar para instalar un sistema de virtualizacion tipo vmware o virtualbox y poco mas te puedo decir . En este foro pero en otro hilo existe un enlace a un tutorial pero no se decirte exactamente como va :
[url:hp5nruz7]http://forums.fivetechsupport.com/viewtopic.php?f=8&t=20138[/url:hp5nruz7]
De todas formas en sanGoogle tienes literatura sobre el tema hasta cansarse y repito salvo raras excepciones que existen ( yo he probado un hackintohs que volaba ) no es lo mismo ... |
he conseguido un iphone | Gracias siempre Mastintin lo voy a probar para ver si puedo ya compilar, pero el primer caso que veo es que en fivephone/lib no tengo las librerias lfive, etc...
¿donde las puedo conseguir?, es decir, ya no tengo que hacer make en fivephone para construirlas, no? o si?
gracias. |
he conseguido un iphone | A todos que quieren instalar Hackintosh en un PC, el tema es un poco extenso puesto que depende de la máquina donde la quieran instalar, yo por ejemplo tengo un HP Pavilion dv6000 y funciona a la perfección, despues de instalar muchas versiones yo que ustedes probaría con iAtkos S3 V2, lo que teneis que hacer es descargaros esa version, grabar un DVD a la mímina velocidad posible 1X o 2X y despues reinicias el ordenador e instalais es muy sencilla la instalación, si teneis dudas de drivers y eso. Postearlo.
Un Saludo y espero ayudar. |
he conseguido un iphone | [quote="softruz":3b7erlzn]Gracias siempre Mastintin lo voy a probar para ver si puedo ya compilar, pero el primer caso que veo es que en fivephone/lib no tengo las librerias lfive, etc...
¿donde las puedo conseguir?, es decir, ya no tengo que hacer make en fivephone para construirlas, no? o si?
gracias.[/quote:3b7erlzn]
En la carpeta fivephone/lib tendras solo una libreria llamada libfivephone.a si no la tienes aqui te la dejo [url:3b7erlzn]http://rapidshare.com/files/436556772/libfivephone.a[/url:3b7erlzn]
es la ultima con los cambios de hoy mismo .De momento ( salvo que cambies algun fuente) con esto no necesitas usar make para nada . |
he conseguido un iphone | ¿Con que .sh compilais?
Un Saludo. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.