Originally posted by kman42:
<STRONG>I keep getting a signal 10 or a signal 11 when i try to load a table entry with an NSCalendarDate.
Here are the accessor methods for the NSCalendarDate:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre>& amp;lt;font size=1 face=courier>
-(void) setArticleDateWithYear

NSString *) aYear withMonth

NSString *) aMonth withDay

NSString *) aDay {
[aYear retain];
[aMonth retain];
[aDay retain];
[articleDate release];
articleDate=[NSCalendarDate dateWithYear:[aYear intValue] month:[aMonth intValue] day: [aDay intValue] hour:<font color = blue>0</font> minute:<font color = blue>0</font> second:<font color = blue>0</font> timeZone:[NSTimeZone timeZoneWithName:<font color = orange>@"PST"</font>]];
}
-(NSString *)articleDateString {
NSLog(<font color = orange>@"returning date"</font> );
return [articleDate descriptionWithCalendarFormat:<font color = orange>@"%m/%d/%y"</font>];
}
-(NSCalendarDate *)articleDate {
return articleDate;
}
</font></pre><HR></BLOCKQUOTE>
The table column identifier is articleDateString. The table loads fine if I change the articleDateString method to:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre>& amp;lt;font size=1 face=courier>
return <font color = orange>@"date"</font>;
</font></pre><HR></BLOCKQUOTE>
So there is clearly something about returning the description of articleDate that is screwing it up. The funny thing is that I can use the articleDateString to print to the log right after setting articleDate.
Any ideas?
kman</STRONG>