Re: NSTableView, NSTextView weirdness
Re: NSTableView, NSTextView weirdness
- Subject: Re: NSTableView, NSTextView weirdness
- From: Hasan Diwan <email@hidden>
- Date: Thu, 28 Nov 2002 14:46:17 -0500
Is your method constructed as follows:
- (NSString *)returnString {
return [textView string]; // or [[textView string] copy] or [[textView
string] mutableCopy] // or [[textView string] retain] or
[[textView string] autorelease]
}
At this point, NSLog(@"%@", [textView string]) is not defined, nor are
any of the other possibilities.
On Thursday, November 28, 2002, at 07:58 AM, email@hidden wrote:
>
I'm not certain I understand the question.
>
>
Since myTextView is part of the GUI, aString = [myTextView string] is
>
in the action methods that cause the text to be modified. For example
>
I have menu action that parses the text. The action metheod
>
"parseText" obtains the string from myTextView and pass it as an
>
arguments to the model that does the work. When passed to the model,
>
the string does get assigned to a Class variable and I have accessor
>
methods for it.
>
>
On Thursday, November 28, 2002, at 12:21 AM, Hasan Diwan wrote:
>
>
> Do you return aString or not? I need to return [myTextView string]
>
> from an accessor. Thanks for the help!
>
> On Wednesday, November 27, 2002, at 10:26 PM, email@hidden wrote:
>
>
>
>> I know aString = [myTextView string] works. I just finished a
>
>> project that uses it a fair amount. Have you connected the outlet?
>
>
Hasan Diwan
OpenPGP KeyID: 0xBE42DCA6
Fingerprint: 1CB0 47E3 0A24 DAC1 DCCA 4225 F166 40C2 BE42 DCA6
http://www.cs.rpi.edu/~diwanh/gpg.key
[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.