NSTextView/NSMutableArray problem!
NSTextView/NSMutableArray problem!
- Subject: NSTextView/NSMutableArray problem!
- From: "Peter Karlsson" <email@hidden>
- Date: Tue, 27 May 2003 06:46:51 +0000
Dear list!
I have a strange bug in my code, look at the following code snippet...
// This works!!!
[myTextViewOutlet setString:@"Cocoa"];
// This works!!!
[myMutableArray replaceObjectAtIndex: 0 withObject:[myTextViewOutlet
string]];
// But not this!!!
[myTextViewOutlet setString:[myMutableArray objectAtIndex:0]];
Can someone tell me why the last line don't work with a NSTextView please? I
get no errors and the TextView is empty after the code is executed, I was
expecting "Cocoa" in the TextView as he result. It works if I use a
NStextField like this.
[myTextFieldOutlet setStringValue:[myMutableArray objectAtIndex:0]];
Peter
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
_______________________________________________
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.