topic
stringlengths
1
63
text
stringlengths
1
577k
he conseguido un iphone
Antonio una última cosa esta ultima intentona que recompile el totur01 y lo incruste en la aplicacion de tabbarsample ,la aplicacion se abrio y cerro de inmediato , nada nuevo , pero lo que si que ha hecho , y que creo no hizo las otras veces es que se ha quedado "funcionando" , si le doi 2 clicks para ver que tengo en multitarea , alli esta nuestra aplicación en esta ocasion tengo el msginfo () y seguido el bucle ( aqui debe de estar la aplicacion en segundo plano) ¿ No? .. Saludos.
he conseguido un iphone
[quote="mastintin":2nurb74t]Daniel te puedo enviar el harbour construido que estamos utilizando desde mac y que parece que funciona en modo consola , pero antes vamos a confirmar que los programas consola que genera se ejecutan en tu iphone ... [url:2nurb74t]http://rapidshare.com/files/426420523/hello.zip[/url:2nurb74t] te envio el hello word generado desde macosx ... colocalo en root en el iphone , cambiale los permisos para que sea ejecutable , y lanzalo desde la consola a ver si te lanza el hola mundo . Saludos.[/quote:2nurb74t] te dejo el resultado [img:2nurb74t]http://www.sitasoft.net/fivemac/iphone/screen/hello.png[/img:2nurb74t]
he conseguido un iphone
Daniel, Si no recuerdo mal yo me encontré con el mismo problema del utemp.h y lo que hice fué copiar el utmpx.h (que si lo tenemos) como utemp.h y con eso siguió construyendose <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Manuel, Eso son muy buenas noticias! Igual necesitamos crear una ventana principal. Posiblemente... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
Antonio Bueno esto demora bastante... tengo aprox. 2 horas construyendo harbour sin problemas hasta los momentos, estoy usando archivos del sdk 3.2, veamos hasta donde llega
he conseguido un iphone
Manuel, Que código PRG es el que te muestra el MsgInfo() ? Como has modificado tutor01.prg ?
he conseguido un iphone
[quote="Daniel Garcia-Gil":309geo84]Antonio Bueno esto demora bastante... tengo aprox. 2 horas construyendo harbour sin problemas hasta los momentos, estoy usando archivos del sdk 3.2, veamos hasta donde llega[/quote:309geo84] Daniel, Será por el procesador del 2G que es más lento... Con el procesador A4 tarda, pero menos
he conseguido un iphone
Antonio si me lo imagino, pero todo sea por aportar
he conseguido un iphone
Daniel, Cuantos más seamos intentándolo, más posibilidades de que lo consigamos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> A ver si finalmente podemos desarrollar con Harbour para el iPhone/iPad/AppleTV <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
Antonio Siempre trato de estar atento... (esto continua construyendo...)
he conseguido un iphone
Manuel, Funcionando!!! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Faltaba la ventana!!! He modificado el código fuente de windows.m de esta forma: (cambios muy rápidos para que compilase bien) [code=fw:3spnjok0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#import <UIKit/UIKit.h><br /><span style="color: #00D7D7;">#define</span> HB_DONT_DEFINE_BOOL<br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /> <br />void SetWndMain<span style="color: #000000;">&#40;</span> UIWindow * <span style="color: #0000ff;">window</span> <span style="color: #000000;">&#41;</span>;<br /> <br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> CREATEWINDOW <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   UIWindow * <span style="color: #0000ff;">window</span> = <span style="color: #000000;">&#91;</span> UIWindow alloc <span style="color: #000000;">&#93;</span>;<br />   <span style="color: #B900B9;">// float color[ 4 ] = { 0, 0, 0.63, 1 }; // R, G, B, Alpha</span><br /> <br />   <span style="color: #B900B9;">// [ window setView : [ [ UIView alloc ] initWithFrame : [ window bounds ] ] ];</span><br />   <span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">window</span> setBackgroundColor: <span style="color: #000000;">&#91;</span> UIColor greenColor <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span>;<br /> <br />   hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">window</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /> <br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WNDACTIVATE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   UIWindow * <span style="color: #0000ff;">window</span> = <span style="color: #000000;">&#40;</span> UIWindow * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /> <br />   SetWndMain<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">window</span> <span style="color: #000000;">&#41;</span>;   <br /> <br />   <span style="color: #B900B9;">// [ window orderFront : nil ];</span><br />   <span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">window</span> makeKeyAndVisible <span style="color: #000000;">&#93;</span>;<br /><span style="color: #000000;">&#125;</span>              <br /> <br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WNDCLOSE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   UIWindow * <span style="color: #0000ff;">window</span> = <span style="color: #000000;">&#40;</span> UIWindow * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /> <br />   <span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">window</span> <span style="color: #0000ff;">release</span> <span style="color: #000000;">&#93;</span>;<br /><span style="color: #000000;">&#125;</span>                                   <br /> </div>[/code:3spnjok0] Ojo que el make está mal y le falta compilar y meter en la librería windows.o [code=fw:3spnjok0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />./lib/libfivec.a : ./objc/mainapp.o ./objc/uikit.o ./objc/msgs.o ./objc/windows.o<br />    $<span style="color: #000000;">&#40;</span>LM<span style="color: #000000;">&#41;</span> -<span style="color: #00C800;">static</span> -o ./lib/libfivec.a ./objc/mainapp.o ./objc/uikit.o ./objc/msgs.o ./objc/windows.o<br /> </div>[/code:3spnjok0] Y el PRG que he probado es tutor02.prg con un MsgInfo() al final: [code=fw:3spnjok0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd := TWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   oWnd:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Hello world!"</span> <span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3spnjok0] Finalmente he metido el ejecutable en TabBarSample y le he hecho chmod +x TabBarSample y tambien ldid -S TabBarSample Posiblemente fallen un montón de cosas aún, pero ya está aqui <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [img:3spnjok0]http&#58;//img189&#46;imageshack&#46;us/img189/7924/photoyt&#46;png[/img:3spnjok0]
he conseguido un iphone
[img:1hdn6tl6]http&#58;//img841&#46;imageshack&#46;us/img841/9656/photo1y&#46;png[/img:1hdn6tl6]
he conseguido un iphone
... Hasta aqui llegue... el iphone no continua pues se reinicia cada vez que llega a este punto en este link esta lo que logro construir [url:2ti29f15]http&#58;//www&#46;sitasoft&#46;net/fivemac/iphone/files/hrbiphone&#46;zip[/url:2ti29f15] cuando ejecuto harbour sigue aparenciendo KILLED!!! [img:2ti29f15]http&#58;//www&#46;sitasoft&#46;net/fivemac/iphone/screen/harb1&#46;png[/img:2ti29f15] [img:2ti29f15]http&#58;//www&#46;sitasoft&#46;net/fivemac/iphone/screen/harb2&#46;png[/img:2ti29f15]
he conseguido un iphone
Antonio , felicidadesssssss <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o --> . ¿ Currando a las 4:05 ? ¿ No duermes ? <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Ya se ha empezado a cortar el melon . A ver si podemos solucionar lo de Daniel para que pueda hechar un cable . Me da que tiene que ser un problema con la forma de compilar del gcc , agun modificador o algo asi . -arm e vez arm6 o cosa similar , estoy investigando el tema ... Saludos.
he conseguido un iphone
He encontrado esto : [url:1sl6o4q9]http&#58;//code&#46;google&#46;com/p/iphone-gcc/issues/detail?id=2[/url:1sl6o4q9] no se si será lo mismo ( mi ingles es pesimo ) pero suena muy parecido. Saludos.
he conseguido un iphone
Daniel, Prueba a hacer ldid -S harbour (solo una vez) y luego ejecuta harbour Parece que en esa versión de Cydia y jailbreak no se esté haciendo de forma automática. En iOS 4.1 no es necesario usar ldid -S ... pues parece que el jailbreak anula la comprobación del firmado de las aplicaciones. Yo solo le hago chmod +x ... para que la aplicación sea ejecutable.
he conseguido un iphone
unas notas sobre los ipas... 1.-Es un zip renombrado 2.- en su interior una carpeta llamada Payload ( ojo con las mayusculas , que es case sensitive) . dentro de esta carpeta se encuentra el ejecutable ( carpeta app) 3.El archivo iTunesArtwork es realmente un archivo jpg o png de 512x512 de resolución . No se si tiene importancia , pero el perfil de color que lleva incrustado es Apple iTunes color ( nunca lo he visto antes ) . Para crear nuestro propio Artwork , con photoshop y una plantilla de boton es bastante facil. para el que quiera aumentar conocimientos en todo lo que se refiere a iconos para ios ...[url:2yu3pfik]http&#58;//www&#46;cutelittlefactory&#46;com/articles/designing-iphone-icons/[/url:2yu3pfik] y [url:2yu3pfik]http&#58;//developer&#46;apple&#46;com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages&#46;html[/url:2yu3pfik] Saludos.
he conseguido un iphone
Manuel, Ando intentando captar un "touch" event. En principio, puesto que UIWindow deriva de UIView y este de UIResponder, seria suficiente con derivar una clase Window a partir de UIWindow e implementar (redefinir) touchesBegan. Sin embargo lo he probado ya de un montón de maneras distintas y sin éxito por el momento...
he conseguido un iphone
Funcionando !!! <!-- s:-D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":-D" title="Very Happy" /><!-- s:-D --> Me faltaba darle el area correcta: [code=fw:9ivg4wh0]<div class="fw" id="{CB}" style="font-family: monospace;">void <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> NSString * <span style="color: #000000;">&#41;</span>;<br /> <br />@<span style="color: #00C800;">interface</span> <span style="color: #0000ff;">Window</span> : <span style="color: #000000;">UIWindow</span><br /><span style="color: #000000;">&#123;</span><br /><span style="color: #000000;">&#125;</span><br />- <span style="color: #000000;">&#40;</span> void <span style="color: #000000;">&#41;</span> touchesBegan : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> NSSet * <span style="color: #000000;">&#41;</span> touches withEvent : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> UIEvent * <span style="color: #000000;">&#41;</span> event;<br />@end <br /> <br />@implementation <span style="color: #0000ff;">Window</span><br />- <span style="color: #000000;">&#40;</span> void <span style="color: #000000;">&#41;</span> touchesBegan : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> NSSet * <span style="color: #000000;">&#41;</span> touches withEvent : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> UIEvent * <span style="color: #000000;">&#41;</span> event<br /><span style="color: #000000;">&#123;</span><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> @<span style="color: #ff0000;">"touch!"</span> <span style="color: #000000;">&#41;</span>;   <br /><span style="color: #000000;">&#125;</span><br />@end <br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> CREATEWINDOW <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   <span style="color: #0000ff;">Window</span> * <span style="color: #0000ff;">window</span> = <span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">Window</span> alloc <span style="color: #000000;">&#93;</span> initWithFrame : <span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#91;</span> UIScreen mainScreen <span style="color: #000000;">&#93;</span> bounds <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span>;<br /> <br />   <span style="color: #0000ff;">window</span>.backgroundColor = <span style="color: #000000;">&#91;</span> UIColor greenColor <span style="color: #000000;">&#93;</span>;<br /> <br />   hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">window</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /> </div>[/code:9ivg4wh0] [img:9ivg4wh0]http&#58;//img9&#46;imageshack&#46;us/img9/5052/photo2t&#46;png[/img:9ivg4wh0]
he conseguido un iphone
Antonio ya tengo tus ejemplos funcionando sin problemas . Dos cosas : El msginfo que tengo me sale sin el boton y aqui no veo su codigo ... No necesitamos ( por lo menos con el 4.1) usar el ldid , funciona directamente ... por cierto anoto aqui la guia de referencia para tenerla siempre presente : [url:6gqnfs4k]http&#58;//developer&#46;apple&#46;com/library/ios/navigation/index&#46;html[/url:6gqnfs4k] Saludos ------------------------ edito para ------------------- Apppath() funcionando . [img:6gqnfs4k]http&#58;//img4&#46;imageshack&#46;us/img4/5558/img0080p&#46;png[/img:6gqnfs4k]
he conseguido un iphone
Manuel, Añadiendo este @"OK" (msgs.m) aqui te aparece el botón: [code=fw:1pcz8f1e]<div class="fw" id="{CB}" style="font-family: monospace;"><br />void <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> NSString * <span style="color: #0000ff;">text</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   UIAlertView * alert = <span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#91;</span> UIAlertView alloc <span style="color: #000000;">&#93;</span> initWithTitle : @<span style="color: #ff0000;">"Information"</span> <br />                         <span style="color: #0000ff;">message</span> : <span style="color: #0000ff;">text</span> delegate : <span style="color: #000000;">GetApp</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />                         cancelButtonTitle : @<span style="color: #ff0000;">"OK"</span> otherButtonTitles : <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#93;</span>;   <br />                         <br />  <span style="color: #000000;">&#91;</span> alert show <span style="color: #000000;">&#93;</span>;<br />  <span style="color: #000000;">&#91;</span> alert autorelease <span style="color: #000000;">&#93;</span>;                         <br /><span style="color: #000000;">&#125;</span><br /> </div>[/code:1pcz8f1e]
he conseguido un iphone
Sorry if I write in English <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> You can make programming for the Iphone only if you jailbreak it ? Massimo. P.S. You are making an incredible work <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->
he conseguido un iphone
Massimo, Yes, by now, it is required that you jailbreak it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> (Sí, por ahora, es necesario hacerle el jailbreak)
he conseguido un iphone
Seguimos testeando cosas .... Buenas noticias .... con este codigo .... [code=fw:1g9o6h80]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd := TWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> cpath:= apppath<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cDbf:= cpath+<span style="color: #ff0000;">"/test.dbf"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cAlias<br />&nbsp; &nbsp;oWnd:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Hello world! "</span>+cDbf <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;use <span style="color: #000000;">&#40;</span>cDbf<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">New</span><br />&nbsp; &nbsp;calias:=<span style="color: #0000ff;">alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;<span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span>calias<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;dbgoto<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>calias<span style="color: #000000;">&#41;</span>->last <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;dbskip<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>calias<span style="color: #000000;">&#41;</span>->last <span style="color: #000000;">&#41;</span><br />&nbsp; close<span style="color: #000000;">&#40;</span>calias<span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:1g9o6h80] La gestion de dbfs parece que funciona sin problema . Me enconrado con una sorpresa los distintos msginfo se muestran en orden inverso a como deberian .. . primero aparece el último de ellos y según le vamos dando al ok van apareciendo el resto..
he conseguido un iphone
Manuel, Parece que el MsgInfo() aun no se muestra modal, de ahi que se habran todos y se vea el ultimo. Tenemos que buscar la forma de hacerlo modal. Debe existir alguna opcion.
he conseguido un iphone
Una especie de msgGet .... de momento no estamos pasando los distintos "datos" al harbour solo estamos colocando en pantalla cosas y viendo ideas y problemas , pero queda muy aparente . Saludos. [img:1992mraa]http&#58;//img528&#46;imageshack&#46;us/img528/9932/img0081&#46;png[/img:1992mraa]
he conseguido un iphone
Antonio al tema del modal ... mira este codigo , puede ser una solución[code=fw:xugussli]<div class="fw" id="{CB}" style="font-family: monospace;">http:<span style="color: #B900B9;">//www.ikangai.com/blog/development/code-snippet-of-the-week-modal-uialertview-update</span></div>[/code:xugussli] . En principio el iphone esta pensado para no modal .. Saludso.
he conseguido un iphone
Manuel, Daniel, He actualizado el repositorio del FivePhone a la versión más reciente. Podeis actualizar desde: <!-- m --><a class="postlink" href="https://fivephone.googlecode.com/svn/trunk/">https://fivephone.googlecode.com/svn/trunk/</a><!-- m --> samples/tutor03 ya funciona, aunque con limitaciones que hay que implementar <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
Antonio he encontrado este codigo ,pero no consiguo que funcione como se espera , yo por hoy lo dejo ... [code=fw:3l7d24ma]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />@<span style="color: #00C800;">interface</span> MyUIAlertViewDelegate : <span style="color: #000000;">NSObject</span> <UIActionSheetDelegate, UIAlertViewDelegate> &nbsp; <br /><span style="color: #000000;">&#123;</span> &nbsp;<br />&nbsp; &nbsp; int result; &nbsp;<br /><span style="color: #000000;">&#125;</span> &nbsp;<br /><br />-<span style="color: #000000;">&#40;</span>int<span style="color: #000000;">&#41;</span>getResult; &nbsp;<br /><br />@end; &nbsp;<br /><br />@implementation MyUIAlertViewDelegate &nbsp;<br /><br />-<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>alertView:<span style="color: #000000;"><span style="color: #000000;">&#40;</span>UIAlertView</span> *<span style="color: #000000;">&#41;</span>alertView clickedButtonAtIndex:<span style="color: #000000;"><span style="color: #000000;">&#40;</span>NSInteger</span><span style="color: #000000;">&#41;</span>buttonIndex &nbsp;<br /><span style="color: #000000;">&#123;</span> &nbsp;<br />&nbsp; &nbsp; result = buttonIndex; &nbsp;<br /><span style="color: #000000;">&#125;</span> &nbsp;<br /><br />-<span style="color: #000000;">&#40;</span>int<span style="color: #000000;">&#41;</span>getResult &nbsp;<br /><span style="color: #000000;">&#123;</span> &nbsp;<br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> result; &nbsp;<br /><span style="color: #000000;">&#125;</span> &nbsp;<br /><br />@end; &nbsp;<br />&nbsp; <br />void MimsSleep<span style="color: #000000;">&#40;</span>uint32_t msec<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; struct timespec timeout0;<br />&nbsp; &nbsp; struct timespec timeout1;<br />&nbsp; &nbsp; struct timespec* tmp;<br />&nbsp; &nbsp; struct timespec* t0 = &timeout0;<br />&nbsp; &nbsp; struct timespec* t1 = &timeout1;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; t0->tv_sec = msec / <span style="color: #000000;">1000</span>;<br />&nbsp; &nbsp; t0->tv_nsec = <span style="color: #000000;">&#40;</span>msec % <span style="color: #000000;">1000</span><span style="color: #000000;">&#41;</span> * <span style="color: #000000;">&#40;</span><span style="color: #000000;">1000</span> * <span style="color: #000000;">1000</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>nanosleep<span style="color: #000000;">&#40;</span>t0, t1<span style="color: #000000;">&#41;</span> == <span style="color: #000000;">&#40;</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>errno == EINTR<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; tmp = t0;<br />&nbsp; &nbsp; &nbsp; &nbsp; t0 = t1;<br />t1 = tmp;<br /><span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> MSGBEEP <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// NSBeep();</span><br /><span style="color: #000000;">&#125;</span> &nbsp; <br /><br />void <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> NSString * <span style="color: #0000ff;">text</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; MyUIAlertViewDelegate *lpDelegate = <span style="color: #000000;">&#91;</span><span style="color: #000000;">&#91;</span>MyUIAlertViewDelegate alloc<span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">init</span><span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; UIAlertView * alert = <span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#91;</span> UIAlertView alloc <span style="color: #000000;">&#93;</span> initWithTitle : @<span style="color: #ff0000;">"Information"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">message</span> : <span style="color: #0000ff;">text</span> delegate : <span style="color: #000000;">lpDelegate</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cancelButtonTitle : @<span style="color: #ff0000;">"OK"</span> otherButtonTitles : <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#93;</span>; &nbsp;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#91;</span> alert show <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #B900B9;">// Run modally!</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">// By the time this loop terminates, our delegate will have been called and we can</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">// get the result from the delegate (i.e. what button was pressed...)</span><br />&nbsp; &nbsp; <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>!alert.hidden<span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>alert.superview!=<span style="color: #00C800;">nil</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#91;</span><span style="color: #000000;">&#91;</span>NSRunLoop currentRunLoop<span style="color: #000000;">&#93;</span> limitDateForMode:<span style="color: #000000;">NSDefaultRunLoopMode</span><span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; Mimssleep<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #B900B9;">// Grab the result from our delegate (via a custom property)</span><br />&nbsp; &nbsp; int nResult = <span style="color: #000000;">&#91;</span>lpDelegate getResult<span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #B900B9;">// aqui damos salida al resultado </span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #000000;">&#91;</span> alert <span style="color: #0000ff;">release</span> <span style="color: #000000;">&#93;</span>; &nbsp;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #000000;">&#91;</span>lpDelegate <span style="color: #0000ff;">release</span><span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; <br /><span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><br />&nbsp;</div>[/code:3l7d24ma]
he conseguido un iphone
.... Sono la flauta ( a medias )... (efectivamente faltaba el uso de ldid -S) he logrado compilar tutor03 pero al copiarla al telefono no se ejecuta, puedo ejecutar la aplicacion desde el emulador? se ve como si estuviese abriendo pero vuelve al springboard sin mostrar nada
he conseguido un iphone
Daniel, No se puede usar el emulador porque en realidad es un simulador que ejecuta código intel, no arm. Prueba con tutor02 que es más simple
he conseguido un iphone
Antonio... [quote="Antonio Linares":nkekny8v]No se puede usar el emulador porque en realidad es un simulador que ejecuta código intel, no arm.[/quote:nkekny8v] Entendido mismo resultado con tutor02 si ejecuta "hello.prg"
he conseguido un iphone
Daniel, Te digo como lo estamos usando nosotros: una vez construido el ejecutable, copialo dentro de la aplicacion TabBarSample, renombrando tu ejecutable a TabBarSample y hazle chmod +x TabBarSample
he conseguido un iphone
Progresando con el UINavigationBar: tutor03.prg [code=fw:2661hecp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd := TWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   TNavBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd, <span style="color: #ff0000;">"FivePhone"</span>, <span style="color: #ff0000;">"Exit"</span>, <span style="color: #ff0000;">"About"</span> <span style="color: #000000;">&#41;</span><br /><br />   oWnd:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2661hecp] [img:2661hecp]http&#58;//img181&#46;imageshack&#46;us/img181/4185/photo1u&#46;png[/img:2661hecp]
he conseguido un iphone
Ejecutando acciones desde los botones de la barra de navegación: [img:2iqir6ce]http&#58;//img264&#46;imageshack&#46;us/img264/4109/photoc&#46;png[/img:2iqir6ce]
he conseguido un iphone
Antonio , no se muy bien como subir archivos al repositorio , lo he intentado con el snvX paro me da un error ( puede que sea solo cosas de permisos ) dejo el archivo system.m con una sola funcion : [code=fw:3g86s05f]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#import <UIKit/UIKit.h><br />#import <UIKit/UIApplication.h><br /><span style="color: #00D7D7;">#define</span> HB_DONT_DEFINE_BOOL<br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> APPPATH <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;NSString * buPath = <span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#91;</span> NSBundle mainBundle <span style="color: #000000;">&#93;</span> bundlePath <span style="color: #000000;">&#93;</span>;<br /><br />&nbsp; &nbsp;hb_retc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#91;</span> buPath cStringUsingEncoding : <span style="color: #000000;">NSASCIIStringEncoding</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>; &nbsp; &nbsp; &nbsp;<br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:3g86s05f]
he conseguido un iphone
[quote="Antonio Linares":8uzxie5w]Daniel, Te digo como lo estamos usando nosotros: una vez construido el ejecutable, copialo dentro de la aplicacion TabBarSample, renombrando tu ejecutable a TabBarSample y hazle chmod +x TabBarSample[/quote:8uzxie5w] Antonio es exactamente lo que hago, de hecho lo hace buildmac automáticamente
he conseguido un iphone
Manuel, Te acabo de dar de alta en el proyecto en google code. Mira en source que te da tu contraseña para subir archivos y cambios. Por favor intenta de nuevo subir el cambio con el svnx. A mi tambien me está dando un error y de momento estoy subiendo con tortoise desde Windows (lo cual es una lata...) <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
Daniel, Te acabo de dar de alta en el proyecto en google code. Por favor intenta subir un cambio con el svnx a ver si te funciona, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
[quote="Daniel Garcia-Gil":gs9lvbr2][quote="Antonio Linares":gs9lvbr2]Daniel, Te digo como lo estamos usando nosotros: una vez construido el ejecutable, copialo dentro de la aplicacion TabBarSample, renombrando tu ejecutable a TabBarSample y hazle chmod +x TabBarSample[/quote:gs9lvbr2] Antonio es exactamente lo que hago, de hecho lo hace buildmac automáticamente[/quote:gs9lvbr2] Daniuel n osotros no hacemos el firmado de tabBarSample pero tu tienes que hacerlo , puede que en eso este el problema . ldid -s TabBarSample
he conseguido un iphone
Antonio no entro : [code=fw:rv1oyrzo]<div class="fw" id="{CB}" style="font-family: monospace;"><br />svn: <span style="color: #000000;">Commit</span> failed <span style="color: #000000;">&#40;</span>details follow<span style="color: #000000;">&#41;</span>:<br /><span style="color: #000000;">svn</span>: <span style="color: #00C800;">Server</span> sent unexpected <span style="color: #00C800;">return</span> value <span style="color: #000000;">&#40;</span><span style="color: #000000;">405</span> <span style="color: #00C800;">Method</span> Not Allowed<span style="color: #000000;">&#41;</span> in response <span style="color: #0000ff;">to</span> MKACTIVITY request <span style="color: #00C800;">for</span> <span style="color: #ff0000;">'/svn/!svn/act/546b1d9d-42bc-4d78-9d44-68c5f4425bde'</span><br /> </div>[/code:rv1oyrzo] pero no perdamos mucho tiempo con esto ... subelo tu y listo . -------------- edito ------------ Solucionado era una tonteria faltaba la "s" al http Ahora dejo de nuevo de funcionar ... algo debe pasar en google ... Por cierto es hora de cambiar el icono al TabBarSample noooo <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Saludos.
he conseguido un iphone
Manuel, No consigo que funcione el svnx, pero si funciona desde el tortoise windows. Esto es una lata que hace perder tiempo... <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> Podriamos hacer una carpeta en el repositorio, como appsample ( ó ipa ) ó asi y dentro meter el ipa y asi se le cambia el icono, etc <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
Manuel El firmado ya lo habia intentado con los mismos resultados seguiré buscando gracias como hacen la captura de pantalla del iPhone si no hay emulador/simulador ?
he conseguido un iphone
Daniel, Pulsa el botón de abajo y rapidamente dale al de encendido. Eso te hace una captura de pantalla y te la envias por email <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
Antonio , estoy parado con el msginfo modal , todos las soluciones que me encuentro por la red no dan resultado dejandop congelado el iphone . Delegando , que boton se pulsa ( msgYesno) si es detectado , podemos pasar los datos a harbour a la ventana METHOD HandleEvent( nMsg, nSender, uParam1, uParam2 ) y que sea harbour quien tome decisiones ... ¿ No?
he conseguido un iphone
Manuel, Si, de momento no nos preocupemos por eso. Por lo que he visto el truco que hacen es crear un bucle de espera. Ya le buscaremos una forma. Acabo de hacer commit desde el terminal (a mano): svn ci --message test y he subido unos cambios a window.prg para procesar los eventos
he conseguido un iphone
Subido el rutado de eventos al pulsar el botón izquierdo de la barra de navegación <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [code=fw:3614ltk2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd := TWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;TNavBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd, <span style="color: #ff0000;">"FivePhone"</span>, <span style="color: #ff0000;">"Exit"</span>, <span style="color: #ff0000;">"About"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oNavBar</span>:<span style="color: #000000;">bLeftClick</span> = <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Left"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oWnd:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:3614ltk2]
he conseguido un iphone
Subidos el rutado del botón izquierdo y derecho de la barra de navegación
he conseguido un iphone
Modificado el método End() de TWindow para que termine la aplicación <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> samples/tutor03 prueba el metodo End() Ya me funciona svnx, se solucionó al añadir un nuevo fichero al repositorio <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
... Ahora si sono la flauta el problema era que el firmado lo hacia desde mac con el comando ssh me meti hasta la carpeta de la aplicacion en el iphone y listo... solo lo firme una vez y ejecuta tutor02 y tutor03 sin problemas, seguire con pruebas hasta saber que esta estable GRACIAS!!! [img:3buj58hw]http&#58;//img269&#46;imageshack&#46;us/img269/4256/fotodr&#46;jpg[/img:3buj58hw]
he conseguido un iphone
Daniel, Estupendo!!! <!-- s:-D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":-D" title="Very Happy" /><!-- s:-D --> Ya estás a bordo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
Comenzada la implementación de las toolbars. Ya está subido al SVN tutor04.prg [code=fw:1iy6z5ha]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd := TWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   TNavBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd, <span style="color: #ff0000;">"FivePhone"</span>, <span style="color: #ff0000;">"Exit"</span>, <span style="color: #ff0000;">"About"</span> <span style="color: #000000;">&#41;</span><br />   <br />   oWnd:<span style="color: #000000;">oNavBar</span>:<span style="color: #000000;">bLeftClick</span> = <span style="color: #000000;">&#123;</span> || oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oWnd:<span style="color: #000000;">oNavBar</span>:<span style="color: #000000;">bRightClick</span> = <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"iOS SDK for Harbour"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   TToolBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />   oWnd:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1iy6z5ha] [img:1iy6z5ha]http&#58;//img842&#46;imageshack&#46;us/img842/8535/downloadba&#46;jpg[/img:1iy6z5ha]
he conseguido un iphone
Antonio el exit no funciona como debe creo . La aplicacion pasa a quedar en segundo plano pero no se termina . si pulsas doble click la tienes abierta en la multitarea. Por cierto , ¿ no seria buena idea colocar la interface window en un fichero de cabecera ,en vez en codigo del archivo , tal como lo hace objective-c ?. Lo digo porque veo el mismo codigo tanto en windows.m como toolbars.m y seguro que si hacemos desde otro control añadidos a window se nos olvida en toolbar ... [code=fw:3qmyyfj1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@<span style="color: #00C800;">interface</span> <span style="color: #0000ff;">Window</span> : <span style="color: #000000;">UIWindow</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;@<span style="color: #00C800;">public</span> UIWindow * hWnd;<br /><span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">// - ( void ) sendEvent : ( UIEvent * ) event;</span><br />- <span style="color: #000000;">&#40;</span> void <span style="color: #000000;">&#41;</span> touchesBegan : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> NSSet * <span style="color: #000000;">&#41;</span> touches withEvent : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> UIEvent * <span style="color: #000000;">&#41;</span> event;<br />- <span style="color: #000000;">&#40;</span> void <span style="color: #000000;">&#41;</span> BarLeftClick : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">&#41;</span> sender;<br />- <span style="color: #000000;">&#40;</span> void <span style="color: #000000;">&#41;</span> BarRightClick : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> <span style="color: #0000ff;">id</span> <span style="color: #000000;">&#41;</span> sender;<br />@end <br />&nbsp;</div>[/code:3qmyyfj1] Saludos.
he conseguido un iphone
Manuel, Lo de la multitarea en el iphone no lo tengo muy claro. Si das doble click, aparecen muchas aplicaciones que en realidad no se han arrancado. Ademas, si estuviese en funcionamiento no permitiria sobreescribir el ejecutable, salvo que aqui sea distinto... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Lo del fichero de cabecera, si, podemos sacarlo a un windows.h o similar
he conseguido un iphone
Saludos; Tengo un Ipod Touch, funciona este para estas pruebas ?
he conseguido un iphone
Mario, Si, debería servir tambien. Que versión de software tiene ? (Settings, General, Acerca de)
he conseguido un iphone
Implementados los botones de la toolbar (disponible ya desde el SVN de google code): tutor04.prg [code=fw:yszusigh]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd := TWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oTbr<br /><br />   TNavBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd, <span style="color: #ff0000;">"FivePhone"</span>, <span style="color: #ff0000;">"Exit"</span>, <span style="color: #ff0000;">"About"</span> <span style="color: #000000;">&#41;</span><br />   <br />   oWnd:<span style="color: #000000;">oNavBar</span>:<span style="color: #000000;">bLeftClick</span> = <span style="color: #000000;">&#123;</span> || oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oWnd:<span style="color: #000000;">oNavBar</span>:<span style="color: #000000;">bRightClick</span> = <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"iOS SDK for Harbour"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   oTbr = TToolBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br />   oTbr:<span style="color: #000000;">AddButton</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"New"</span> <span style="color: #000000;">&#41;</span><br />   oTbr:<span style="color: #000000;">AddButton</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Open"</span> <span style="color: #000000;">&#41;</span><br />   oTbr:<span style="color: #000000;">AddButton</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Save"</span> <span style="color: #000000;">&#41;</span><br />   oTbr:<span style="color: #000000;">AddButton</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Search"</span> <span style="color: #000000;">&#41;</span><br />   oTbr:<span style="color: #000000;">AddButton</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Close"</span> <span style="color: #000000;">&#41;</span><br /><br />   oWnd:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:yszusigh] [img:yszusigh]http&#58;//img214&#46;imageshack&#46;us/img214/672/downloadte&#46;jpg[/img:yszusigh]
he conseguido un iphone
Subidos cambios al SVN para evaluar acciones (codeblocks) desde los botones de la toolbar
he conseguido un iphone
Bueno, el próximo objetivo deben ser los browses... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> ( UITableView )
he conseguido un iphone
Sobre la multitarea del iphone : [code=fw:19johc1c]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Contrariamente a lo que dijo Steve Jobs, cuando sales de una aplicación de la <span style="color: #000000;">4.0</span> la aplicación NO SIGUE FUNCIONANDO, no consume recursos <span style="color: #000000;">&#40;</span>eso lo dijo bien<span style="color: #000000;">&#41;</span>. Simplemente, el iPhone guarda el estado de la aplicación <span style="color: #000000;">&#40;</span>su RAM<span style="color: #000000;">&#41;</span> en el disco y sale de la aplicación liberando esa RAM, cuando vuelves a abrir la aplicación, se carga a la RAM el estado guardado de la aplicación. Y probablemente se libere ese estado guardado.<br /><br />Todos esto pasa instantáneamente, pero cuando la aplicación es un juego en 3D o estaba consumiendo mucha RAM puede tardar un segundo o <span style="color: #000000;">2</span> <span style="color: #000000;">&#40;</span>la RAM del iPhone 3Gs son 256MB y no sé cual es el máximo que consumirá un programa pero ponte 128MB, eso tardaría unos <span style="color: #000000;">2</span> segundos si se pasara a 60MB/s, que es una velocidad aceptable para una memoria Flash en la placa base.<span style="color: #000000;">&#41;</span><br /><br />El Dock de la multitarea no representa realmente las aplicaciones en funcionamiento, sino las aplicaciones que tienen un estado guardado en el iPhone, hace la función de “Aplicaciones recientes” por así decirlo. He llegado a contar <span style="color: #000000;">26</span> aplicaciones en esa lista, incluyendo juegos como Avatar, aplicaciones pesadas como el TomTom y no notaba ninguna pérdida de velocidad <span style="color: #000000;">&#40;</span>ni de batería ya que estamos<span style="color: #000000;">&#41;</span>.<br /><br />Cuando eliminamos una aplicación de ese dock <span style="color: #000000;">&#40;</span>la “cerramos del todo” manteniendo pulsado el icono en la nueva barra y pulsando un “menos”<span style="color: #000000;">&#41;</span> lo que estamos haciendo es borrar el estado guardado de esa aplicación, lo que hará que vaya al menú principal cuando la abramos de nuevo.<br /><br />En definitiva, una aplicación guarda su estado tal cual liberando al iPhone de ciclos de procesador y liberando la memoria RAM para otras aplicaciones. SÓLO las aplicaciones que hagan uso de VoIP, Audio, Task Completion o Background Location consumirán CPU y RAM <span style="color: #000000;">&#40;</span>y sólo en esos servicios<span style="color: #000000;">&#41;</span>.<br /><br />Apple ha reinventado la forma de hacer multitarea <span style="color: #0000ff;">sin</span> que la batería, el procesador o la rapidez que percibe el usuario <span style="color: #00C800;">final</span> se vean alterados.<br /><br />&nbsp;</div>[/code:19johc1c]
he conseguido un iphone
Manuel, Una información muy interesante, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
Antonio, Versión 4.0 (8A293) de mi ipod. si me sirve tomo el hilo para "jugar" un rato <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
Mario, Deberia servirte <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Le has hecho "jailbreak" ?
he conseguido un iphone
Antonio, no le he hecho "jailbreak" . mis conocimientos de mac es nulo pero leere el hilo de este tema , estaremos en contacto. voy a revisar con calma e intentar jailbreak mi ipod. Gracias.-
he conseguido un iphone
Primera idea de Browse ... falta inmplementar todo aún , pero ya se presenta en pantalla el control ...subido codigo al repositorio [img:2a6ujuqy]http&#58;//img514&#46;imageshack&#46;us/img514/1193/img0086n&#46;png[/img:2a6ujuqy]
he conseguido un iphone
Manuel, Bien! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> he modificado el makefile y un pequeño cambio en TableView.m
he conseguido un iphone
Añadido tutor05.prg y un simple gestor de errores GUI...
he conseguido un iphone
Añadido una simple Clase TTableView y modificado tutor05.prg
he conseguido un iphone
Añadida una nueva Clase TView. Todas las clases GUI derivan de ella <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
El gestor de errores ya funciona bastante bien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [img:9lmc62lm]http&#58;//img340&#46;imageshack&#46;us/img340/9716/photobp&#46;png[/img:9lmc62lm]
he conseguido un iphone
He comenzado a construir el data source para el browse. Ya está subido <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
He conseguido sacar en pantalla un TabBar con dos botones ( aun no tienen sus views ni nada ) .Cuando tenga mas limpio el codigo lo subo . [img:3bs4j973]http&#58;//img213&#46;imageshack&#46;us/img213/7476/img0087h&#46;png[/img:3bs4j973]
he conseguido un iphone
Manuel, Muy bueno! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Ya mostramos datos en el browse! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> (subido al SVN) [img:2ckrna7m]http&#58;//img294&#46;imageshack&#46;us/img294/6877/photo1o&#46;png[/img:2ckrna7m]
he conseguido un iphone
He subido el codigo de TabBar ... de momento no muestra aun los view asociados , solo se presenta en pantalla . Tambien va una funcion para añadir los tabs que queramos ... el segundo parametro de CREATEITEMTABBAR es el icono que mostrará dentro de los predefinidos del sistema : typedef enum { UITabBarSystemItemMore, UITabBarSystemItemFavorites, UITabBarSystemItemFeatured, UITabBarSystemItemTopRated, UITabBarSystemItemRecents, UITabBarSystemItemContacts, UITabBarSystemItemHistory, UITabBarSystemItemBookmarks, UITabBarSystemItemSearch, UITabBarSystemItemDownloads, UITabBarSystemItemMostRecent, UITabBarSystemItemMostViewed, } UITabBarSystemItem; [code=fw:2emhu0zl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd := TWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oTbr<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> tabbar<br />&nbsp; &nbsp;TNavBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd, <span style="color: #ff0000;">"FivePhone"</span>, <span style="color: #ff0000;">"Exit"</span>, <span style="color: #ff0000;">"About"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oNavBar</span>:<span style="color: #000000;">bLeftClick</span> = <span style="color: #000000;">&#123;</span> || oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oNavBar</span>:<span style="color: #000000;">bRightClick</span> = <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"iOS SDK for Harbour"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; tabBar:=CREATETABBAR<span style="color: #000000;">&#40;</span>oWnd:<span style="color: #000000;">hwnd</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; CREATEITEMTABBAR<span style="color: #000000;">&#40;</span>tabbar,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CREATEITEMTABBAR<span style="color: #000000;">&#40;</span>tabbar,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CREATEITEMTABBAR<span style="color: #000000;">&#40;</span>tabbar,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oWnd:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:2emhu0zl]
he conseguido un iphone
Manuel, He modificado la Clase TTableView para que ya muestre campos de una DBF. Algo muy simple para probar <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Pero el problema que tengo es que no me abre la DBF. Hago: USE ( AppPath() + "/test.dbf" ) Puedes probarlo ahi ? (samples/tutor05.prg) gracias
he conseguido un iphone
El problema lo tienes en los permisos del archivo dbf , cambialos ( de momento pontos a 777 ) y ya te funciona seguro.
he conseguido un iphone
Iniciado el archivo label.m ... esta solo en prototipo . Cuando lo tenga mas avanzado subo el codigo al repositorio. [img:2suk1ana]http&#58;//img442&#46;imageshack&#46;us/img442/9892/img0088s&#46;png[/img:2suk1ana]
he conseguido un iphone
subido codigo de label.m al repositorio . Codigo del tutor : [code=fw:2c7w33rj]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd := TWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oTbr<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> label <br />&nbsp; &nbsp;TNavBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd, <span style="color: #ff0000;">"FivePhone"</span>, <span style="color: #ff0000;">"Exit"</span>, <span style="color: #ff0000;">"About"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oNavBar</span>:<span style="color: #000000;">bLeftClick</span> = <span style="color: #000000;">&#123;</span> || oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oNavBar</span>:<span style="color: #000000;">bRightClick</span> = <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"iOS SDK for Harbour"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;label:=CREATELABEL<span style="color: #000000;">&#40;</span>oWnd:<span style="color: #000000;">hwnd</span>,<span style="color: #ff0000;">"hola"</span>, <span style="color: #000000;">120</span>,<span style="color: #000000;">120</span> , <span style="color: #000000;">400</span> , <span style="color: #000000;">50</span> <span style="color: #000000;">&#41;</span><br />&nbsp; SETLABELCOLOR <span style="color: #000000;">&#40;</span>label,<span style="color: #000000;">255</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">100</span><span style="color: #000000;">&#41;</span><br />&nbsp; SETLABELFONT<span style="color: #000000;">&#40;</span>label,<span style="color: #ff0000;">"Helvetica"</span>,<span style="color: #000000;">56</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oWnd:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:2c7w33rj]
he conseguido un iphone
[quote="Antonio Linares":1yqh5q8u]Manuel, He modificado la Clase TTableView para que ya muestre campos de una DBF. Algo muy simple para probar <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Pero el problema que tengo es que no me abre la DBF. Hago: USE ( AppPath() + "/test.dbf" ) Puedes probarlo ahi ? (samples/tutor05.prg) gracias[/quote:1yqh5q8u] Antonio Probado y funcionando perfectamente . Todo el problema era con los permisos de las dbf , tienes que ponerlos a 666 o 777 y funciona sin problema ...
he conseguido un iphone
HE hecho una pequeña modificacion en la clase Tableview . He añadido un parametro codeblock que se evalua al procesar el tableview , asi podemos poner que queremos mostrar. Saludos.
he conseguido un iphone
el tutor05 queda asi : [code=fw:ozgq2owp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd := TWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oTbr<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cPath := AppPath<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"/test.dbf"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> obrw<br />&nbsp; &nbsp;TNavBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd, <span style="color: #ff0000;">"FivePhone"</span>, <span style="color: #ff0000;">"Exit"</span>, <span style="color: #ff0000;">"About"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oNavBar</span>:<span style="color: #000000;">bLeftClick</span> = <span style="color: #000000;">&#123;</span> || oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oNavBar</span>:<span style="color: #000000;">bRightClick</span> = <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"iOS SDK for Harbour"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oTbr = TToolBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oTbr:<span style="color: #000000;">AddButton</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"New"</span>, &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"New"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oTbr:<span style="color: #000000;">AddButton</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Open"</span>, &nbsp; <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Open"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oTbr:<span style="color: #000000;">AddButton</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Save"</span>, &nbsp; <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Save"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oTbr:<span style="color: #000000;">AddButton</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Search"</span>, <span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Search"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oTbr:<span style="color: #000000;">AddButton</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Close"</span>, &nbsp;<span style="color: #000000;">&#123;</span> || <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; USE <span style="color: #000000;">&#40;</span> cPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;obrw:=TTableView<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oWnd<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; obrw:<span style="color: #000000;">bData</span>:=<span style="color: #000000;">&#123;</span>|| alltrim<span style="color: #000000;">&#40;</span>fieldget<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+Alltrim<span style="color: #000000;">&#40;</span>FieldGet<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+alltrim<span style="color: #000000;">&#40;</span>fieldget<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oWnd:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:ozgq2owp] [img:ozgq2owp]http&#58;//img513&#46;imageshack&#46;us/img513/6249/img0089&#46;png[/img:ozgq2owp]
he conseguido un iphone
Manuel, Formidable! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Ya tenemos browses de DBFs! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> no caí en lo de los permisos! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
Un enlace interesante para avanzar más con los browses: [url:o4irk4ot]http&#58;//www&#46;iphonesdkarticles&#46;com/2009/01/uitableview-creating-simple-table-view&#46;html[/url:o4irk4ot]
he conseguido un iphone
Primeros pasos con mas controles : Les ha tocado a los controles Label ( Say) , Get , progressbar, y switch ...ya estan en el repositorio con un tutor06 . De momento solo se presentan en pantalla y poco mas , lo siguien te es mirar como los "conectamos" sus eventos con harbour. Saludos. [img:1rgw7q4s]http&#58;//img44&#46;imageshack&#46;us/img44/6175/img0090&#46;png[/img:1rgw7q4s]
he conseguido un iphone
Agregados los nuevos archivos al makefile para construir la libreria y ordenados alfabeticamente
he conseguido un iphone
Problemas con tutor05 copio test.dbf dentro de la carpeta .app en el iphone, cambio los permisos a 777 la aplicacion no pasa del USE...
he conseguido un iphone
Daniel, Has cambiado los permisos conectandote por ssh al iphone ? A mi eso me lo solucionó
he conseguido un iphone
Implementados los eventos para la Clase TSwitch <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
Muy buenas, tendríamos alguna posibilidad de poder compilar con la distribución linux OpenSuse? Un Saludo.
he conseguido un iphone
Juan, Busca en google acerca de como construir el toolchain para iPhone en Linux. Nosotros no lo henos probado aún, pero no debería haber problema <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Aunque lo más recomendable es usar un Mac (ó un hackintosh). Nosotros usamos Macs.
he conseguido un iphone
Clase TView implementados los métodos nTop, nLeft, nWidth y nHeight de tipo SETGET <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
Antonio el Tutor06 no me funciona correctamente . Al cambiar el switch de posicion no sale el msginfo y se queda congelado . Saludos.
he conseguido un iphone
Detectando el modo silencio .... [img:2xofucmb]http&#58;//img688&#46;imageshack&#46;us/img688/9829/38956099&#46;png[/img:2xofucmb]
he conseguido un iphone
[quote="mastintin":23gwy092]Antonio el Tutor06 no me funciona correctamente . Al cambiar el switch de posicion no sale el msginfo y se queda congelado . Saludos.[/quote:23gwy092] Manuel, Aqui funciona bien. Usas la 4.1 ? Borra todos los ficheros y haz un checkout desde cero, y vuelve a probarlo, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
he conseguido un iphone
Ampliada la Clase TView y el ejemplo tutor07 para ir haciendo pruebas con views <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [img:19a2tdfd]http&#58;//img25&#46;imageshack&#46;us/img25/5173/photodn&#46;png[/img:19a2tdfd]
he conseguido un iphone
Manuel, En el ejemplo tutor07 modificado que he subido (quite la creación de views de la Clase TTabBar) creo un view y ya rutamos en touchBegan de la ventana principal. Lo que no acabo de ver es porque al pulsar sobre el view hijo, salta el touchBegan de la ventana principal... Supongo que deberiamos poder evitar eso
he conseguido un iphone
[quote="Antonio Linares":2r82i6un][quote="mastintin":2r82i6un]Antonio el Tutor06 no me funciona correctamente . Al cambiar el switch de posicion no sale el msginfo y se queda congelado . Saludos.[/quote:2r82i6un] Manuel, Aqui funciona bien. Usas la 4.1 ? Borra todos los ficheros y haz un checkout desde cero, y vuelve a probarlo, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:2r82i6un] ok. Creo que el problema viene que lo modifique para probar el msgsound() y luego lo puse a msginfo() . Cuando llegue a casa por la noche ,vuelvo a la version del repositorio y te comento . Saludos.
he conseguido un iphone
mirado lo del tutor06 ... si funciona el switch .Cuando realmente falla es si haces un touch en la pantalla ( yo le di un par de veces al swictch , pero una falle y di fuera de su area ) .No sale el mensaje touch y se queda congelado . Saludos.
he conseguido un iphone
Manuel, Lo acabo de probar y va bien. Al hacer click fuera, ya se ruta a la ventana y si no hay nada definido en bTouchesBegan no se hace nada Igual tenemos alguna diferencia...
he conseguido un iphone
Arreglado . He borrado todo y con un checkout nuevo funciono sin problemas.
he conseguido un iphone
Saludos * new script to build IPA file. ./buildipa.sh appname [dbffile] + /samples/buildipa.sh + /samples/test.dbf + /samples/iTunesArtwork +[dir] /samples/Payload +[dir] /icons/ + /icons/fivetech.icns [img:1ql3zghu]http&#58;//www&#46;sitasoft&#46;net/fivemac/iphone/screen/IMG_0054&#46;png[/img:1ql3zghu] * add clean option to "make" clean obj, lib files make clean