• 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
QuickLiteRow and NSTableView problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: QuickLiteRow and NSTableView problems
      • From: Tito Ciuro <email@hidden>
  • Prev by Date: Re: Predicates and lex/yacc?
  • Next by Date: [ANN] AMRollOverButton patched class
  • Previous by thread: Re: Predicates and lex/yacc?
  • Next by thread: Re: QuickLiteRow and NSTableView problems
  • Index(es):
    • Date
    • Thread