Re: Still can't get NSArrayController to work!
Re: Still can't get NSArrayController to work!
- Subject: Re: Still can't get NSArrayController to work!
- From: Scott Stevenson <email@hidden>
- Date: Fri, 17 Sep 2004 18:34:34 -0700
On Sep 17, 2004, at 6:25 PM, jjoonathan wrote:
The controller still doesnt work with the tableviews. I have tried subclassing NSValueTransformer, and this is my code for transforming values:
NSMutableArray *ret = [[NSMutableArray alloc] initWithArray:value];
int i;
for (i=0;i<[nsa count];i++)
{
[ret addObject:[NSMutableDictionary dictionaryWithDictionary:[nsa objectAtIndex:i]]];
}
return ret;
...And it still does not work. I get the same error as always. ANy help would be appreciated.
So what is the nsa variable?
On the first line, you probably want to do just "init" rather than "initWithArray". Otherwise you're going to get half immutable objects, and half mutable objects. This is probably why you're still see the error.
Also, how are you applying the value transformer?
- Scott
--
Tree House Ideas
http://treehouseideas.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden