Re: NSTableView, NSTextView weirdness
Re: NSTableView, NSTextView weirdness
- Subject: Re: NSTableView, NSTextView weirdness
- From: matt neuburg <email@hidden>
- Date: Tue, 26 Nov 2002 12:01:34 -0800
On Mon, 25 Nov 2002 22:07:16 -0500, Hasan Diwan <email@hidden> said:
>
(void)tableView:(NSTableView *)tv setObject:(id)anObject
>
forTableColumn:(NSTableColumn *)aTC row:(int)rowIndex {
>
[[data objectAtIndex:rowIndex] setSortKey:anObject];
>
[[data objectAtIndex:rowIndex] setSortString:[valueView string]];
>
}
>
Needless to say, these don't do what they're supposed to. The
>
NSTextView's string is never stored in the array, like it's supposed to
>
be. Only the keys are stored. Any help is appreciated
You might wish to read up on TextView -string. This is a volatile fellow, and all you've got is a reference to him. If you want to store something that is independent and can survive, copy the string. m.
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.