Table View problem
Table View problem
- Subject: Table View problem
- From: John Draper <email@hidden>
- Date: Tue, 28 Dec 2004 01:59:07 -0800
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