• 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: NSTableView reloadData problem (needing 2 TableViews)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView reloadData problem (needing 2 TableViews)


  • Subject: Re: NSTableView reloadData problem (needing 2 TableViews)
  • From: "Raymund Beyer" <email@hidden>
  • Date: Tue, 26 Nov 2002 16:51:47 +0100

Roarke Lynch wrote:

>Your controller object/datasource has IBOutlets to the tableViews yes?
>You can use this method by just comparing the tableView to the IBOutlet
>instances your object has. i.e
>
>- (id)tableView:(NSTableView *)tableView
>objectValueForTableColumn:(NSTableColumn *) row:(int)row
>{
> if(tableView == myFirstTable)
> return dataForFirstTable;
> else if(tableView == mySecondTable)
> return dataForSecondTable;
>
> return nil;
>}
>
> You are comparing the pointers of tableView objects, but they are the
>same value as they should be pointing to the same object.

Thanks Roarke and Sarat!
I got it to work the way you both suggested within 15 minutes :-)

Thanks a lot

Ray

---------------------------------
Raymund Beyer
email@hidden
http://www.brainstorm-music.com
http://www.ezee.de
---------------------------------
_______________________________________________
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.

References: 
 >Re: NSTableView reloadData problem (needing 2 TableViews) (From: Roarke Lynch <email@hidden>)

  • Prev by Date: Conditionally formatting cells in an NSTableView
  • Next by Date: proper location for a database file
  • Previous by thread: Re: NSTableView reloadData problem (needing 2 TableViews)
  • Next by thread: Drag and Drop Weirdness?
  • Index(es):
    • Date
    • Thread