Re: Table view question
Re: Table view question
- Subject: Re: Table view question
- From: Dave <email@hidden>
- Date: Wed, 7 Apr 2010 18:09:27 +0100
Hi,
Sorry for the iPhone.
I've actually managed to get this working now, but not sure if it's
the best/right way to do it. Here is a code snippet from
tableView:didSelectRowAtIndex
myKey - [self.mKeyArray objectAtIndex:theIndexPath.section];
myDictionary = [self.mDictionary objectForKey:myKey];
myString = [myDictionary objectForKey:@"FieldX"];
if ([myString isEqualToString:@"One"] == YES)
{
[myString release];
myString = @"Two";
}
else
{
[myString release];
myString = @"One";
}
[myDictionary setValue: myString forKey:@"FieldX"];
[self.tableView reloadData];
Thanks a lot
All the Best
Dave
On 7 Apr 2010, at 17:36, Jens Alfke wrote:
Um, is this for OS X or iPhone? You need to make that clear...
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden