GLBasic forum

Codesnippets => Userlibs [ *.gbal] => Topic started by: trucidare on 2009-Aug-12

Title: CocoaTouch
Post by: trucidare on 2009-Aug-12
Here some Impressions of my work...
Code (glbasic) Select
// --------------------------------- //
// Project: TryTest
// Start: Monday, August 10, 2009
// IDE Version: 7.073

REQUIRE "network.mm"

// Create new Popup
IMPORT "C" void GlbPopup(const char* title, const char* text, const char* firstButton, const char* secondButton);
// Get Pressed ButtonIndex (1,2)
IMPORT "C" int GetPopupState();
// CreateTextField
IMPORT "C" int GlbInitGUI();
// Create Button
IMPORT "C" void GlbButton(const char* caption, int x, int y, int dx, int dy);
// Check Button Action
IMPORT "C" int GetPressState(const char* button);

GlbInitGUI();

GlbPopup("Message...","This message was created with GLBasic \n One Line \n ;)","Cancel","Ok")


WHILE TRUE
Ret = GetPopupState()
IF Ret = 1 THEN foo("Cancel")
IF Ret = 2 THEN foo("OK")



SHOWSCREEN
WEND

FUNCTION foo: muh$
GlbButton(muh$,110,240,100,30);
WHILE TRUE
IF GetPressState(muh$)

ENDIF
SHOWSCREEN
WEND
ENDFUNCTION






[attachment deleted by admin]
Title: Re: CocoaTouch
Post by: Kitty Hello on 2009-Aug-12
Awesome.
Title: Re: CocoaTouch
Post by: trucidare on 2009-Aug-12
Hardwork, but easy to set up a new Window. Didnt use GLBASIC_HWND().

Title: Re: CocoaTouch
Post by: Schranz0r on 2009-Aug-12
N1
Title: Re: CocoaTouch
Post by: Uncle on 2009-Aug-12
Cool, Cool, Cool :)
Title: Re: CocoaTouch
Post by: doimus on 2009-Aug-12
AMAZING!  :good:
Title: Re: CocoaTouch
Post by: MrTAToad on 2009-Aug-12
I presume you can get access to the OS API then ? :)
Title: Re: CocoaTouch
Post by: Schranz0r on 2009-Aug-12
Yepp, he can made it ;)
Title: Re: CocoaTouch
Post by: trucidare on 2009-Aug-12
Two more...



[attachment deleted by admin]
Title: Re: CocoaTouch
Post by: doimus on 2009-Aug-12
Bloody Hell! Native keyboard in iGLB - this is beyond awesome!
Title: Re: CocoaTouch
Post by: Hatonastick on 2009-Aug-12
Very cool! :)
Title: Re: CocoaTouch
Post by: MrTAToad on 2009-Aug-12
Can you get access to the Speech system ?
Title: Re: CocoaTouch
Post by: trucidare on 2009-Aug-12
Can access to everything opened by Apple.

New screenshot... Recognizing NavBarbuttons and Label.



[attachment deleted by admin]
Title: Re: CocoaTouch
Post by: Kitty Hello on 2009-Aug-13
 :nw: :enc:
Title: Re: CocoaTouch
Post by: trucidare on 2009-Aug-13
Two more

[attachment deleted by admin]
Title: Re: CocoaTouch
Post by: kaotiklabs on 2009-Nov-04
How this finally gone?
Are you going to release it?
Would be awesome...
Title: Re: CocoaTouch
Post by: freshworks on 2009-Nov-04
By the way where is this ==>> REQUIRE "network.mm"

so the network.mm file, can't find it in xcode or somewhere, i'd like to know how it's accomplished.

Can anyone hand me this network.mm ?

Cheers,
Jespar.

Title: Re: CocoaTouch
Post by: mykyl66 on 2009-Nov-04
I wondered abut that myself. I did a search manually as well but could not find this file anywhere.

Clueless.

Mike R
Title: Re: CocoaTouch
Post by: trucidare on 2009-Nov-04
network.mm aka CocoaTouch.mm is my objC source file for cocoaTouch lib for glbasic.
Not ready yet. Little problem with tableview, but the most things are working correctly.
Title: Re: CocoaTouch
Post by: mykyl66 on 2009-Nov-04
So this is something you have written in xcode is it?

Cheers

Mike R
Title: Re: CocoaTouch
Post by: freshworks on 2009-Nov-04
@trucisdare,

Could you probaly share the objective-c code for IMPORT "C" int GetPressState(const char* button); i would love to use functions of the iphone SDK itself within glbasic.

I could probaly also port a lot of the cocos2d framework.

How is the speed compared to for example mousestate functions within glbasic etc... ?

Thanks and cheers,
Jespar
Title: Re: CocoaTouch
Post by: trucidare on 2009-Nov-05
no written with glbasic editor.

The function GetPressState is my function to check if a button created with cocoatouch was pressed.

speed = equal to objC code only.
Title: Re: CocoaTouch
Post by: codegit on 2009-Nov-06
This is totally awesome. Will you release commercial (please)?    :good:
Title: Re: CocoaTouch
Post by: trucidare on 2009-Nov-06
will be released as gbal / .a for easy use. under AGPL
Title: Re: CocoaTouch
Post by: codegit on 2009-Nov-06
Thank you.  :good: Is this close to being released or is it still early days?  =D
Title: Re: CocoaTouch
Post by: mykyl66 on 2009-Nov-19
Any progress on this? Would love to have a look.

Mike R
Title: Re: CocoaTouch
Post by: Kitty Hello on 2009-Nov-19
trucidare seems really busy now that he has a full time job.
Title: Re: CocoaTouch
Post by: mykyl66 on 2009-Nov-20
Ah ok. Thats a shame. I would have been willing to pay something for this. I guess I will keep my home designed keyboard.

Mike R
Title: Re: CocoaTouch
Post by: codegit on 2009-Nov-20
Thats a real shame, I was really looking forward to this release. I too would have paid for this.  :)
Title: Re: CocoaTouch
Post by: trucidare on 2009-Nov-20
iÃ,´m working on it, sorry guys for the long time to wait :(
Hope for a quick example for everyone. Including, buttons, tabbars and interactions.
Title: Re: CocoaTouch
Post by: codegit on 2009-Nov-20
 :enc:
Title: Re: CocoaTouch
Post by: bigsofty on 2010-Jan-14
Did this lib ever get finished?
Title: Re: CocoaTouch
Post by: trucidare on 2010-Jan-14
i hope ;)
one problem with tableViews :( they are not scrollable O.o

After solving this i can create a beta xcode project and glb lib
Title: Re: CocoaTouch
Post by: Schranz0r on 2010-Jan-14
Do it!
Title: Re: CocoaTouch
Post by: bigsofty on 2010-Jan-15
Oooh sounds close!  =D
Title: Re: CocoaTouch
Post by: codegit on 2010-Jan-15
Quote from: trucidare on 2010-Jan-14
i hope ;)
one problem with tableViews :( they are not scrollable O.o

After solving this i can create a beta xcode project and glb lib

:enc: :enc: :enc: :enc: :enc: :enc: :enc: :enc: :enc:
Title: Re: CocoaTouch
Post by: djtoon on 2010-Sep-26
any news about this project?
Title: Re: CocoaTouch
Post by: trucidare on 2010-Sep-26
no time for this project at this time - but its on my desktop - not in trash.

first mac ide
Title: Re: CocoaTouch
Post by: bigtunacan on 2012-Jan-06
Whatever happened to this? Last update was more than a year ago.  I would love to see this as would others. 

Trucidare, if you never had time to complete, please consider posting it in it's existing state, maybe someone else will have time to get it the rest of the way where it needs to be.
Title: Re: CocoaTouch
Post by: hardyx on 2013-Feb-06
Quote from: trucidare on 2010-Jan-14
i hope ;)
one problem with tableViews :( they are not scrollable O.o
In iPhone SDK tables can be very complex and get the data in a dynamic way. This can be implemented with an array or a function called when a new element needs to be created. Using an array for simple elements is more easy to use with GLBasic. Other table types can be developed later.