Article

From:
To:
Steve Gill
Subject:
Re: Services and FireMonkey.
Newsgroup:
embarcadero.public.delphi.firemonkey

Re: Services and FireMonkey.

Hi,

No.. you just start out with a console application, and specify target as OSX.
TServiceApplication wont work on OSX (its Windows only). Console applications will. A daemon is a standard console only application started as a background process.
Eg...:
../someapp &
Thats the shell syntax for starting any application as a background process. The term daemon simply covers over background processes, which are 99.999% basic console applications, that may have the ability to read from or write to sockets or files or other resources.
So for Windows... use TServiceApplication or TSvcWhatever via the wizard 'File/New/Other/Service Application' For Unix(OSX) use console via the wizard 'File/New/Other/Console Application' and start it as a background process sometime during startup as described earlier.
I have googled a bit about OSX and services, and it seems that OSX does have a concept called service, but its a completely different one from the Windows one, which means a process that is left running after the user has logged out. An OSX service is a library that can add features to another (GUI) applications services menu. http://www.mactech.com/articles/mactech/Vol.20/20.12/OSXServices/index.html So a totally different thing. If Delphi can make those or not I dont know, but thats not what the original poster was refering to when he talked about windows services vs OSX similar concept.

-- best regards
Kim Madsen TeamC4D www.components4developers.com
The best components for the best developers High availability, high performance loosely coupled n-tier products
"Matthew Jones" <✉mat-nothanks-thew-jones.com> skrev i meddelelsen
news:✉forums.embarcadero.com...
> Yes, I think that is all understood. But if you have Delphi XE2, and want 
> to write
> an app to run on the Mac, you have to start with "FireMonkey HD" project. 
> So, you
> now have a form. Can we discard that and make a service? Does 
> TServiceApplication
> work in this mode? Where is the sample.
>
> I'll also pick up daemons, which you didn't mention, and I am pretty sure 
> are
> available on the Mac. And if not them, then how can we create an app that 
> shows
> just an icon in the top right of the menu bar?
>
> Give us an inch and we want the whole mile.
>
> /Matthew Jones/
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Tue, 26 Nov 2024 09:42:59 UTC
Copyright © 2009-2024
HREF Tools Corp.