• 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
Re: Table View problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Table View problem (From: John Draper <email@hidden>)

  • Prev by Date: Table View problem
  • Next by Date: Re: NSApplicationSupportFolder
  • Previous by thread: Table View problem
  • Next by thread: layout manager muffs glyph to character mapping ?
  • Index(es):
    • Date
    • Thread