gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing LaunchServices inside corebase


From: Luboš Doležel
Subject: Re: Implementing LaunchServices inside corebase
Date: Wed, 13 Apr 2016 21:08:47 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1

Dne 13.4.2016 v 19:38 Sergio L. Pascual napsal(a):
> Hi,
> 
> While working on an implementation of LaunchServices, I've noticed that
> I need to define a bunch of static CFStringRef objects (like kUTTypeText, 
> kUTTypeRTF...).
> 
> Looking at corebase sources, those static CFStringRef seem to be
> somewhat special, as they're defined with the CONST_STRING_DECL macro,
> and initialized for runtime usage with GSRuntimeConstantInit.
> 
> Is there a way to define an static CFStringRef object outside the
> corebase project?
> 
> If it isn't, it would be reasonable to implement LaunchServices as part
> of the corebase project itself?
> 
> Thanks,
> Sergio.

Hi,

LaunchServices absolutely does not belong into CoreBase.

The simplest way to define such a constant is to use the @"xxx" syntax
and thus make use of toll-free bridging.

-- 
Luboš Doležel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]