[Biococoa-dev] Target upgraded
Alexander Griekspoor
mek at mekentosj.com
Mon Feb 28 04:08:14 EST 2005
BCUtilCGI is a class from John which allows you to perform CGI commands
on a server if I remember correctly.
Anyway, the stringByReplacingPercentEscapesUsingEncoding method
replaces all non-URL characters to escaped counterparts (i.e. spaces to
%20). It's a corefoundation method which received a Cocoa wrapper
method in 10.3.
Because all my apps are still 10.2 compatible, I still use the CF
function. If you add the following to the NSString-Extensions in
BCUtilStrings and change the method in BCUtilCGI accordingly, we should
get rid of the warning...
Alex
- (NSString*) stringByAddingURLEscapesUsingEncoding:
(CFStringEncodings) enc
{
NSString* str2 = (id) CFURLCreateStringByAddingPercentEscapes(NULL,
(CFStringRef)self,
NULL,
NULL, enc);
if( str2 == self )
[self release]; // CF just bumped its refcount
else
[str2 autorelease];
return str2;
}
On 28-feb-05, at 7:26, Charles PARNOT wrote:
> The BioCocoa target has been upgraded to a native target, and its
> SDKROOT set to 10.2.8 in the build settings.
>
> Now that the SDK is really used, one problem showed up in BCUtilCGI:
> somewhere, the use of method
> 'stringByReplacingPercentEscapesUsingEncoding:' which is available on
> 10.3 only... I have no idea what this is used for!!
>
> charles
>
> NB: I kept the old target for now, but I will delete it when things
> have been tested a little more.
>
> --
> Help science go fast forward:
> http://cmgm.stanford.edu/~cparnot/xgrid-stanford/
>
> Charles Parnot
> charles.parnot at stanford.edu
>
> Room B157 in Beckman Center
> 279, Campus Drive
> Stanford University
> Stanford, CA 94305 (USA)
>
> Tel +1 650 725 7754
> Fax +1 650 725 8021
> _______________________________________________
> Biococoa-dev mailing list
> Biococoa-dev at bioinformatics.org
> https://bioinformatics.org/mailman/listinfo/biococoa-dev
>
>
*********************************************************
** Alexander Griekspoor **
*********************************************************
The Netherlands Cancer Institute
Department of Tumorbiology (H4)
Plesmanlaan 121, 1066 CX, Amsterdam
Tel: + 31 20 - 512 2023
Fax: + 31 20 - 512 2029
AIM: mekentosj at mac.com
E-mail: a.griekspoor at nki.nl
Web: http://www.mekentosj.com
Claiming that the Macintosh is inferior to Windows
because most people use Windows, is like saying
that all other restaurants serve food that is
inferior to McDonalds
*********************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3193 bytes
Desc: not available
URL: <http://www.bioinformatics.org/pipermail/biococoa-dev/attachments/20050228/46233151/attachment.bin>
More information about the Biococoa-dev
mailing list