• 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
/ more on NSTableView /
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

/ more on NSTableView /


  • Subject: / more on NSTableView /
  • From: Luis E! <email@hidden>
  • Date: Wed, 23 Jun 2004 20:37:06 +0100 (BST)

So I have my class CharacterList which has the
NSTableView methods. This class has two
NSMutableArrays: theCharactersArray ((the one that I
want to display in the table view)) and
theDialogsPerCharacterArray ((whatever)).

The implementations are like this:
- (int) numberOfRowsInTableView:(NSTableView*)table {
return [theCharactersArray count];
}

- (NSString *) tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn
*)aTableColumn row:(int)rowIndex {
return [theCharactersArray objectAtIndex: rowIndex];
}

When I run the app, the Table shows the info but when
I click in a name or in the scroll bar, it dies.
Debugging it I get an error in the return of the
objectValueForTableColumn: it's a EXC_BAD_ACCESS
signal.

I thought it was the way I initialized
theCharacterList = [CharacterList new];
so I changed it to
theCharacterList = [[CharacterList alloc] init];

Didn't work either.





___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Change the Icon File
  • Next by Date: modify screen saver preference file
  • Previous by thread: Re: Change the Icon File
  • Next by thread: modify screen saver preference file
  • Index(es):
    • Date
    • Thread