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

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


  • Follow-Ups:
    • Re: Table View problem
      • From: Robert Cerny <email@hidden>
  • Prev by Date: Re: coordinate transformation
  • Next by Date: Re: Table View problem
  • Previous by thread: Preview.app-style thumbnail NSTableView
  • Next by thread: Re: Table View problem
  • Index(es):
    • Date
    • Thread