• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Table view question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Table view question (From: Dave <email@hidden>)
 >Re: Table view question (From: Jens Alfke <email@hidden>)

  • Prev by Date: iPad: Device Orientation
  • Next by Date: Re: Core Data: binding to a sum
  • Previous by thread: Re: Table view question
  • Next by thread: iPad: Device Orientation
  • Index(es):
    • Date
    • Thread