Re: Adding Rows to a Table View
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