wxWidgets on iPhone?

0 views
Skip to first unread message

j_ri...@gmx.de

unread,
Mar 25, 2008, 10:43:29 AM3/25/08
to wx-u...@lists.wxwidgets.org

Hi,

I'm considering in porting my App (wxGTK/wxMSW) to iPhone. But before
investing time and money I would like to know if anybody else has
information about it.
How much, if at all, is it different to wxMAC?
Can I expect to built wxWidgets with the iPhone SDK with minor tweaks?
Or do I need a lot more time to make it work?


Thanks,
Jörg

Stefan Csomor

unread,
Mar 25, 2008, 2:21:00 PM3/25/08
to wx-u...@lists.wxwidgets.org
Hi

it is very different, while the base library on trunk more or less compiles
now, there is no GUI layer currently ... also there are many many things to
consider when writing iPhone apps that are true iPhone apps, so this isn't
simply a scale-down of a desktop app, neither of another platform like WinCE
etc ...

Best,

Stefan

> _______________________________________________
> wx-users mailing list
> wx-u...@lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-users

--

Advanced Concepts AG
Software-Engineering
Heldweg 10
CH-8475 Ossingen
Switzerland

phone:+41 52 245 0 245
fax:+41 52 245 0 246
http://www.advanced.ch
mailto:cso...@advanced.ch


Stef Mientki

unread,
Mar 25, 2008, 2:27:36 PM3/25/08
to wx-u...@lists.wxwidgets.org

Stefan Csomor wrote:
> Hi
>
> it is very different, while the base library on trunk more or less compiles
> now, there is no GUI layer currently ... also there are many many things to
> consider when writing iPhone apps that are true iPhone apps, so this isn't
> simply a scale-down of a desktop app, neither of another platform like WinCE
> etc ...
>

strange ...
... AFAIK there exists a wxPython for CE.

cheers,
Stef

Kevin Ollivier

unread,
Mar 25, 2008, 3:20:02 PM3/25/08
to wx-u...@lists.wxwidgets.org
Hi Stef,

Stefan is saying that iPhone is a fundamentally different interface
from OS X, unlike WinCE which supports many Win32 APIs and is sort of
a "Windows lite". On platforms like WinCE, you mostly have to work
around the screen space issue, and maybe the lack of some advanced
controls, but fundamentally it's modeled around desktop concepts like
menus, buttons, radios boxes, etc. iPhone's API and interface, on the
other hand, is a total rework, and wxWidgets APIs don't really support
building that sort of interface.

For example, we have no API for finger gestures like swiping through a
list of items, or for animations like view flips, transitions, etc.
The very things that make an interface into an "iPhone interface".
Even if you used wx API to build your app on iPhone, you'd end up
writing a totally separate GUI for iPhone because of issues like this.

Eventually, I could see there being a higher level API that takes care
of the GUI for you, so that for things like preferences, it would let
you just specify a list of preferences each containing a name, a
preference type, and a default value (and optionally a preference
group/category), and then the toolkit would completely generate the UI
from that for desktop, Android, iPhone, etc. Ditto for things like
forms. But that would be a totally new API and someone would need to
write it. ;-) It would also be somewhat "hands-off" in that you'd only
have a degree of control over the UI it creates, but it would allow
you to build app components quickly.

Regards,

Kevin

>
> cheers,
> Stef

Hec...@coollector.com

unread,
Mar 29, 2008, 9:12:57 AM3/29/08
to wx-u...@lists.wxwidgets.org

> it is very different, while the base library on trunk more or less compiles
> now, there is no GUI layer currently ... also there are many many things to

> consider when writingiPhoneapps that are trueiPhoneapps, so this isn't


> simply a scale-down of a desktop app, neither of another platform like WinCE
> etc ...


Me too I'd really love to have my wx app ported to the iPhone / iPod
Touch in June, when the App Store opens.

I understand that I'll have to re-code the entire UI with Objective-C
and Cocoa, but for all the rest, I'd like to re-use my wx code.

Unfortunately, I fail to modify the Minimal sample .xcodeproj to work
with the iPhone simulator. Even when removing the wxFrame part and
just keeping the wxApp.

Please help me get started. Please tell us about your own experience,
and how far you could get.

Or maybe is it too soon ? Maybe wxMac 2.8.7 is not yet ready for this ?

Stefan Csomor

unread,
Mar 29, 2008, 1:29:25 PM3/29/08
to wx-u...@lists.wxwidgets.org
Hi

it definitely is, I'm only committing things for the Aspen / iPhone platform
to trunk, and I haven't committed everything yet.

Best,

Stefan

Hec...@coollector.com

unread,
Mar 29, 2008, 4:03:13 PM3/29/08
to wx-u...@lists.wxwidgets.org

> > Or maybe is it too soon ? Maybe wxMac 2.8.7 is not yet ready for this ?
>
> it definitely is, I'm only committing things for the Aspen / iPhone platform
> to trunk, and I haven't committed everything yet.

Ah, it's definitely too soon :(

We'll, thank you very much for your answer, I won't lose more time on
this.

Can you estimate when we'll be able to start working on our iPhone
porting ?

Are there any chance that there'll be some wxApps for the AppStore
grand opening in June ?

Stefan Csomor

unread,
Mar 30, 2008, 1:52:53 PM3/30/08
to wx-u...@lists.wxwidgets.org
Hi

On 29.03.08 22:03, "Hec...@coollector.com" <Hec...@coollector.com> wrote:

> Can you estimate when we'll be able to start working on our iPhone
> porting ?

I have already started and as I said most things are compiling for base,
including wxGraphics..., but I haven't committed everything yet



> Are there any chance that there'll be some wxApps for the AppStore
> grand opening in June ?

if I can get a reasonable deal from the map-data delivering companies, I'll
have one, but I will most probably code the GUI directly in IB and UIKit
(apart from wxGraphics usage which will be shared with the desktop apps)

Best,

Stefan

Hec...@coollector.com

unread,
Mar 30, 2008, 4:56:27 PM3/30/08
to wx-u...@lists.wxwidgets.org

> I have already started and as I said most things are compiling for base,
> including wxGraphics..., but I haven't committed everything yet

Wonderful ! Hopefully it will be a matter of days/weeks ;-)


> > Are there any chance that there'll be some wxApps for the AppStore
> > grand opening in June ?
>
> if I can get a reasonable deal from the map-data delivering companies,
> I'll have one

I wish you the best of luck and success ! Is it a porting, or a brand
new app ?


> but I will most probably code the GUI directly in IB and UIKit

Yes, of course.

Reply all
Reply to author
Forward
0 new messages