Re: Table View problem
Re: Table View problem
- Subject: Re: Table View problem
- From: Robert Cerny <email@hidden>
- Date: Tue, 28 Dec 2004 11:03:57 +0100
John,
I mean you need to provide us more details. Maybe you can add an
conditional breakpoint -[NSException raise] to your breakpoint list,
which should break into debugger just in time the problem occurs.
HTH
Robert
On 28.12.2004, at 10:59, John Draper wrote:
HI,
I put this following code in my "awakeFromNib" method.
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(tableViewSelectionDidChange:)
name:NSTableViewSelectionDidChangeNotification
object:nil];
//
======================================================================
// returns the number of rows in the users table view. It has 3 columns
//
======================================================================
- (int)numberOfRowsInTableView:(NSTableView *)aTableView
{
if (myUserDict == nil)
return 0;
return([myUserDict count]);
}
//
======================================================================
// returns the nth item in table view
//
======================================================================
- (id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex
{
// I put my code in here, but even if I leave this blank, I get the
same result...
}
Result: Executable “my_test” has exited due to signal 10 (SIGBUS).
I've tried every possible thing to get this to work, I've run out of
things to try.
Can anyone out there see what the heck I'm doing wrong?
Why would I be trying to access a bad pointer?
John
_______________________________________________
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
_______________________________________________
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