• 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
AddObect to NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AddObect to NSTableView


  • Subject: AddObect to NSTableView
  • From: Roberto Sobachi <email@hidden>
  • Date: Thu, 5 Feb 2004 18:18:19 +0100

I've got a NSTableView that works, but I don't understand beacuse I can
pass any argument to increment columns of NSTableView like:


In listDataSource.m

- (id) tableView: (NSTableView *) tableView objectValueForTableColumn:
(NSTableColumn *) column row: (int) row
{
NSString * identifier = [column identifier];

if ([identifier isEqualToString:@"protagonist"])
return @"fdsf";

else if ([identifier isEqualToString:@"title"])
return @"fdsf";

else return @"Unknown Identifier!";
}


- (void) addComic: (NSObject *) comico //WHAT comico needs?
{
[comicsArray addObject:comico];
}


In comicsController.m

NSArray *comic;
comic = [[NSArray alloc] init];

listDataSource *comico = [comicsList dataSource];
[comico clean];

[comico addComic:comic]; //WHAT comic needs?

[comicsList reloadData];




Roberto Sobachi
developer
http://www.xidiar.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: Re: Converting Japanese C- string to NSString
  • Next by Date: Re: Unwanted retain
  • Previous by thread: Re: Prevent ComboBox from dragging
  • Next by thread: Background app, NSStatusItem, tight loop, event handling
  • Index(es):
    • Date
    • Thread