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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to