[futurebasic] Re: [FB] [FBtoC]CocoaSuggestion

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2011 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Fri, 17 Jun 2011 10:50:25 -0700
> 
> SVanVoorst wrote:
> 
>> One of the problems that I see using FBtoC to compile straight obj-c code is the addition of 43 Legacy calls.  
> 


On Jun 17, 2011, at 3:29 AM, Robert Purves wrote:

> When I build a pure Obj-C program 
Doesn’t have to be pure Objective-C to get these results. I have a demo that uses only Core Printing, CoreFoundation and it also has four legacy calls as shown by LegacyAPISurvey.

> CarbonCore HighLevelCalls.o	1	1	_FSGetCatalogInfo
> HIServices Processes.o	1	1	_GetProcessBundleLocation
> HIToolbox Events.o	1	1	_QuitApplicationEventLoop
> QD Rects.o	1	1	_SetRect


Some can be eliminated manually. For example, some of the calls in InitFBGlobals() ( which is generated automatically by FB ) can be removed by a knowledgable user. One such call is FBPRInit(). In my code FB printer commands ( route, PRINT # , clear lprint etc. ) aren’t used, so this call may be eliminated. FBPRInit() contains the SetRect() call shown in the legacy calls by LegacyAPISurvey.


Brian S