gnustep-dev
[Top][All Lists]
Advanced

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

textview / test storage string copy problem


From: Riccardo Mottola
Subject: textview / test storage string copy problem
Date: Wed, 18 Jan 2012 10:18:04 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20120104 Icedove/8.0

Hi,

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.

In NSTextView:
 - (NSString *) string
 {
  return [_textStorage string];
 }

If a copy is needed, should it be tone at the textview or at the textstorage level? Matching Cocoa behaviour is of course the goal.

Riccardo



reply via email to

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