• 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: Adding Rows to a Table View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding Rows to a Table View


  • Subject: Re: Adding Rows to a Table View
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 31 Mar 2010 16:30:04 -0700
  • Thread-topic: Adding Rows to a Table View

On Wed, 31 Mar 2010 15:17:38 -0500, Fritz Anderson <email@hidden>
said:
>Fix this first; I'm surprised it doesn't crash your app almost immediately:
>
>On 31 Mar 2010, at 1:52 PM, Dave wrote:
>
>>  myObjectNameString = [myDictionary objectForKey:[ParserXML
parserObjectFieldName]];
>>  myFactYearString = [myDictionary objectForKey:kField_FactYear];
>>  myFactMonthString = [myDictionary objectForKey:kField_FactMonth];
>>  myFactDayString = [myDictionary objectForKey:kField_FactDay];
>>  myFactSourceDatabaseString = [myDictionary
objectForKey:kField_FactSourceDatabase];
>>  myFactTextString = [myDictionary objectForKey:kField_FactText];
>...
>>  [myObjectNameString release];
>>  [myFactYearString release];
>>  [myFactMonthString release];
>>  [myFactDayString release];
>>  [myFactSourceDatabaseString release];
>>  [myFactTextString release];

And one other thought - you say you're gathering this data in a "secondary
thread", so be sure to jump out to the main thread before calling something
like insertRowsAtIndexPaths:withRowAnimation or reloadData. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

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

  • Prev by Date: Re: Moving from nib to code with custom controller.
  • Next by Date: Re: Creating thumbnail of PDF document first page?
  • Previous by thread: Re: Adding Rows to a Table View
  • Next by thread: CALayer's removeFromSuperlayer processing time
  • Index(es):
    • Date
    • Thread