QuickLiteRow and NSTableView problems
QuickLiteRow and NSTableView problems
- Subject: QuickLiteRow and NSTableView problems
- From: Michael Hanna <email@hidden>
- Date: Thu, 24 Nov 2005 17:53:39 -0800
in my data source method, I get a crash at
QuickLiteRow * qrow = [cursor rowAtIndex: rowIndex];
The NSTableView actually draws the 23 rows into the UI, but when
rowIndex is 0, I get a crash, with no useful error message. Any
thoughts on why? I -alloc -init cursor in the -init method, and
release in -dealloc
any ideas would be appreciated.
Xcode 2.2, OS 10.4.3
Michael
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:
(NSTableColumn *)aTableColumn row:(int)rowIndex
{
if(cursor != nil)
{
NSString* columnName = [aTableColumn identifier];
id value;
QuickLiteRow * qrow = [cursor rowAtIndex: rowIndex];
if ([columnName isEqualToString:@"tasks.datetime"])
{
value = [NSDate dateWithString:[qrow stringForColumn:columnName]];
}
else
{
value = [(NSString *)qrow stringForColumn:columnName];
}
if (value == nil)
value = @"";
return value;
}
else
return nil;
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden