Hi, Malcom,

Note that in such cases, it is often easier to write:

        NSString *tmp = [[[view textStorage] string] copy];

or, if your new string should be mutable:

        NSMutableString *tmp = [[[view textStorage] string] mutableCopy];

Cheers,
        Andrew


On Mar 22, 2008, at 11:45 AM, malcom wrote:

Ok I've just found a solution.
Make a new NSString object with a copy of the textview string and pass it.

NSString *tmp = [[NSString alloc] initWithString: [[view textStorage] string]];
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/andrew.merenbach%40ucla.edu

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to