[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: textview / test storage string copy problem
From: |
Wolfgang Lux |
Subject: |
Re: textview / test storage string copy problem |
Date: |
Wed, 18 Jan 2012 10:45:54 +0100 |
Riccardo Mottola wrote:
> while debugging SWK on gnustep, Fred found out that we have a problem that
> the string returned by the textview is not a copy.
>
> On cocoa it works, it would be nice if somebody can confirm that Cocoa
> returns a copy.
No. Cocoa doesn't return a copy of the string.
Test program attached below. The output is the same on GNUstep:
2012-01-18 10:41:31.294 test[43670] string (1) = This is the first string
2012-01-18 10:41:31.294 test[43670] string (2) = This is the second string
2012-01-18 10:41:31.294 test[43670] string (3) = This is the second string
No copy
and on Cocoa:
2012-01-18 10:42:33.089 test[43687:903] string (1) = This is the first string
2012-01-18 10:42:33.114 test[43687:903] string (2) = This is the second string
2012-01-18 10:42:33.115 test[43687:903] string (3) = This is the second string
No copy
Wolfgang
test.m
Description: Binary data
- textview / test storage string copy problem, Riccardo Mottola, 2012/01/18
- Re: textview / test storage string copy problem,
Wolfgang Lux <=
- Re: textview / test storage string copy problem, Dr. H. Nikolaus Schaller, 2012/01/18
- Re: textview / test storage string copy problem, Riccardo Mottola, 2012/01/18
- Re: textview / test storage string copy problem, Dr. H. Nikolaus Schaller, 2012/01/18
- Re: textview / test storage string copy problem, Dr. H. Nikolaus Schaller, 2012/01/18
- Re: textview / test storage string copy problem, Riccardo Mottola, 2012/01/18
- Re: textview / test storage string copy problem, Fred Kiefer, 2012/01/18