Felipe,

I think you can set Pass Options To The Linker to this:

-framework carbon -framework Qt4Intf -lobjc

for each new project and then just forget about it. You can then change
the widget type to gtk, qt or carbon as needed and compile. I don't
believe the extra linker switches make any difference if not needed to
resolve references for a particular widget set.

Regarding your 2nd suggestion: It's absolutely critical that the IDE not
create a new app bundle each time it compiles. Remember that an app
bundle is rarely the barebones folder that createmacapplication creates.
It may contain dozens or hundreds of other files - resources, icons,
private frameworks, etc. These will likely need to be copied in manually
by the developer, but once he's done that the IDE shouldn't delete the
app bundle - rather, it should just compile to replace the executable
(which is either inside the bundle or outside the bundle and symlinked
to it from within the bundle as createmacapplication does it).

It would be nice if there were a way to set the bundle's Info.plist
settings from within the IDE, but this might be asking too much. I
believe I wrote up some suggestions related to this and the IDE's
Project Options | Version Info about a year ago but don't recall if I
posted them on the forum or what.

Currently I use a script file something like my create_app_mac.sh that I
run to create the initial app bundle and copy everything needed into the
bundle folder (can also do this anytime I need to "start over" with the
bundle). Something like this will probably always be needed for
non-trivial projects.

Thanks.

-Phil


-----Original Message-----
From: Felipe Monteiro de Carvalho
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 30, 2007 6:21 PM
To: [email protected]
Subject: Re: [lazarus] Debugger on Mac OS X

On 5/30/07, Tom Gregorovic <[EMAIL PROTECTED]> wrote:
> I am working on running/debugging Application bundles under Carbon
> option for Lazarus IDE.
> I will test it tomorrow and if it succeeds, I commit it.

Thanks. Indeed it would be nice to have a better working IDE on mac os
x.

I have some suggestions to make the macintosh ide work better (I am
posting here to see what others think and mature the idea a bit):

* Identify when something is being compiled for carbon and
automatically add the framework linker option.

* Identify when something is being compiled for carbon, and when this
is an application, automatically create the app bundle. To create the
app bundle we could either add code to do this on the IDE or use the
already existing createmacapplication. If we use this, then we would
probably want to make it's executable always be compiled for mac and
be positioned at a more noble position, just as the base lazarus dir

-- 
Felipe Monteiro de Carvalho

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to