Re: finder file size
Re: finder file size
- Subject: Re: finder file size
- From: Michael Ash <email@hidden>
- Date: Thu, 9 Apr 2009 00:02:22 -0400
On Wed, Apr 8, 2009 at 8:51 PM, Gerriet M. Denkmann
<email@hidden> wrote:
> I would propose to use only the term "Carbon application" as defined in:
>
> "Carbon application" ::= app whose main.c file is very big (more than 5000
> characters) and contains InstallApplicationEventHandler().
>
> as opposed to:
> "Cocoa application" ::= app with a very small main.m (less than 100
> characters) which contains NSApplicationMain().
I think the important distinction is what kind of event loop your
application uses. If you use a Carbon event loop
(RunApplicationEventLoop(), WaitNextEvent()) then you're a Carbon app.
If you use a Cocoa event loop ([NSApp run], NSApplicationMain()) then
you're a Cocoa app. Pretty much everything else can be mixed and
matched these days, but you can only run one kind of event loop, and
that in turn influences all the rest.
> A somehow unrelated question:
> What would be a rational reason to create a new "Carbon application" today?
A couple of reasons come to mind, none of them particularly common:
1) You know Carbon vastly better than Cocoa, and your userbase is such
that you don't care about the framework's impending doom, because
they're never upgrading their OS X as long as they care to use your
program.
2) You need your program to run on Mac OS 9. (It could happen!)
At this point, Carbon-the-UI-technology pretty much just exists to
allow old code to continue to work. (Incidentally, that "old code"
includes a fair amount of Cocoa which is implemented on top of Carbon.
Even in 64-bit.) There is little reason to start a new program from
scratch using Carbon-the-UI-technology today.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden