- (id)tableView:(NSTableView *)tableView objectValueForTableColumn:
(NSTableColumn *)Column row:(int)Row
{
int i=0;
struct keithley_struct *k2700_str;
//Copying to new structure, because [k2700 k2700_data[Row].acqDate
doesn't work
k2700_str = [k2700 k2700_data];
// Display date and time
if ( [identifier isEqualToString:@"time"])
{
return [k2700_str[Row].acqDate description]; <= this crashes the
app !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
}
else // display values
{
for (i=0 ; i <= NBR_OF_CHANNELS; i++)
if ( [identifier isEqualToString:[[NSNumber numberWithInt:(i+1)]
stringValue]])
{
return [NSNumber numberWithDouble:k2700_str[Row].channel[i]]; //
this works fine !!!!!!!!!!!!!
}
}
}
Its' mainly crashing when accessing the structure member NSDate....
Why ?
Thanks in advance,
Gilles Celli
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden