Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-02

New iOS xib-Designer for Lazarus available for testing

8 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Joost van der Sluis

Hi all,

I've finished a version of my iOS xib-Designer which is good enough for testing. ;)

This package adds a designer to design iOS layouts, which are stored in xib-files. You can create an xib-file in Lazarus, then open it in XCode to adapt it and open it in Lazarus again, without any changes being lost.

Outlets are added automatically. This way you can use the objects in the iOS layout as you are used to from working with the LCL. There is one big difference though: the (objective-C) class you are editing is not the window as you see in the designer, but a delegate which is bound to the window. With the LCL you create a new TFormXX class, that inherits from the TForm class. On iOS you have one or multiple UIWindows in the designer, and the code contains a class that is a delegate for these windows.

More information can be found in the wiki: http://wiki.freepascal.org/iOS_Designer

There's a lot that still can be done. For example my painting skills are almost non-existing, so there's a lot of improvement possible there. More objects can be added, and more properties/settings for the existing objects.

Oh, and if someone is so kind to create some icons for the component palette...

All input is welcome.

Despite all it's shortcomings, it is possible to build and publish applications with it. I do have several commercial applications which are already build with it.

Joost.

Reply by email

Sven Barth
to Joost van der Sluis
Joost van der Sluis wrote
I've finished a version of my iOS xib-Designer which is good enough for testing. ;) This package adds a designer to design iOS layouts, which are stored in xib-files. You can create an xib-file in Lazarus, then open it in XCode to adapt it and open it in Lazarus again, without any changes being lost.

Though I'm not developing for iOS (or even Mac OS X) congratulation.

I've not closely followed your recent discussions with the Lazarus devs, so one little question: are you using the non-LCL designer included with Lazarus here?

Regards,
Sven

Reply by email

Joost van der Sluis
Show quoted text 9 lines
On 17.02.2013 17:10, Joost van der Sluis wrote: > I've finished a version of my iOS xib-Designer which is good enough for testing. ;) > > This package adds a designer to design iOS layouts, which are stored in xib-files. You can create an xib-file in Lazarus, then open it in XCode to adapt it and open it in Lazarus again, without any changes being lost. Though I'm not developing for iOS (or even Mac OS X) congratulation.

Thank you.

I've not closely followed your recent discussions with the Lazarus devs, so one little question: are you using the non-LCL designer included with Lazarus here?

Yes. Mattias wrote that for me a few years ago for another project. Now it is also used for this xib-designer.

Biggest difference between this version and earlier versions is that the xib-file is used as a resource-file, so it can be opened in Xcode and thereafter opened in Lazarus again. The earlier version could only export to xib-file, not import it.

Joost.

Reply by email

Sven Barth
to Joost van der Sluis
Joost van der Sluis wrote 7 lines
> I've not closely followed your recent discussions with the Lazarus devs, > so one little question: are you using the non-LCL designer included with > Lazarus here? Yes. Mattias wrote that for me a few years ago for another project. Now it is also used for this xib-designer. Biggest difference between this version and earlier versions is that the xib-file is used as a resource-file, so it can be opened in Xcode and thereafter opened in Lazarus again. The earlier version could only export to xib-file, not import it.

Ok, nice. Finally the non-LCL designer is put to good use :P

Do you think you could add screenshots of the designer in action to the wiki page? This way one can imagine how it looks like.

Regards,
Sven

Reply by email

Michael Van Canneyt
to Sven Barth
Sven Barth wrote 14 lines
On 17.02.2013 18:40, Joost van der Sluis wrote: >> I've not closely followed your recent discussions with the Lazarus devs, >> so one little question: are you using the non-LCL designer included with >> Lazarus here? > > Yes. Mattias wrote that for me a few years ago for another project. Now it > is also used for this xib-designer. > > Biggest difference between this version and earlier versions is that the > xib-file is used as a resource-file, so it can be opened in Xcode and > thereafter opened in Lazarus again. The earlier version could only export > to xib-file, not import it. Ok, nice. Finally the non-LCL designer is put to good use :P

What Joost did is exactly what it was intended to do.

Do you think you could add screenshots of the designer in action to the wiki page? This way one can imagine how it looks like.

Good question :-)

Michael.

Reply by email

Sven Barth
to Michael Van Canneyt
Michael Van Canneyt wrote 23 lines
On Sun, 17 Feb 2013, Sven Barth wrote: > On 17.02.2013 18:40, Joost van der Sluis wrote: >>> I've not closely followed your recent discussions with the Lazarus >>> devs, >>> so one little question: are you using the non-LCL designer included >>> with >>> Lazarus here? >> >> Yes. Mattias wrote that for me a few years ago for another project. >> Now it is also used for this xib-designer. >> >> Biggest difference between this version and earlier versions is that >> the xib-file is used as a resource-file, so it can be opened in Xcode >> and thereafter opened in Lazarus again. The earlier version could >> only export to xib-file, not import it. > > Ok, nice. Finally the non-LCL designer is put to good use :P What Joost did is exactly what it was intended to do.

Yes, I know. But it has taken some time until someone (even if that someone is the same person that requested its addition in the first place) has used it fully. When was the article about that feature published in the ToolBox? 2010? 2011?

Regards,
Sven

Reply by email

Michael Van Canneyt
to Sven Barth
Sven Barth wrote 29 lines
On 17.02.2013 19:08, Michael Van Canneyt wrote: > > > On Sun, 17 Feb 2013, Sven Barth wrote: > >> On 17.02.2013 18:40, Joost van der Sluis wrote: >>>> I've not closely followed your recent discussions with the Lazarus >>>> devs, >>>> so one little question: are you using the non-LCL designer included >>>> with >>>> Lazarus here? >>> >>> Yes. Mattias wrote that for me a few years ago for another project. >>> Now it is also used for this xib-designer. >>> >>> Biggest difference between this version and earlier versions is that >>> the xib-file is used as a resource-file, so it can be opened in Xcode >>> and thereafter opened in Lazarus again. The earlier version could >>> only export to xib-file, not import it. >> >> Ok, nice. Finally the non-LCL designer is put to good use :P > > What Joost did is exactly what it was intended to do. > Yes, I know. But it has taken some time until someone (even if that someone is the same person that requested its addition in the first place) has used it fully. When was the article about that feature published in the ToolBox? 2010? 2011?

November 2009.
But do not be mistaken: Joost uses it in his webpage technology since years.

It was a request by me and Joost (independently) to Mattias, BTW. Requested beginning September 2009, finished.... September 2009 :-)

Michael.

Reply by email

Joost van der Sluis
Show quoted text 12 lines
> Yes. Mattias wrote that for me a few years ago for another project. Now it is also used for this xib-designer. > > Biggest difference between this version and earlier versions is that the xib-file is used as a resource-file, so it can be opened in Xcode and thereafter opened in Lazarus again. The earlier version could only export to xib-file, not import it. Ok, nice. Finally the non-LCL designer is put to good use :P Do you think you could add screenshots of the designer in action to the wiki page? This way one can imagine how it looks like.

You mean like the screenshot in the link in the first mail in this thread?

And maybe the video with the first version: http://www.youtube.com/watch?v=DtltlNHnNMU

Joost.

Reply by email