• 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: Does each NSTableView requires its own controller?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does each NSTableView requires its own controller?


  • Subject: Re: Does each NSTableView requires its own controller?
  • From: Theodore Petrosky <email@hidden>
  • Date: Wed, 28 Jan 2004 07:09:56 -0800 (PST)

John,

No... if you notice the methods that fill the
tableview

-(int)numberOfRowsInTableView:(NSTableView
*)aTableView {
when the tableview asks for data, it sends the request
here. so the calling tableview is sent in. you can
say...

if (tableview1) {
return [tableview1array count];
}else if [tableview2] {
return [tableview2array count];
}
}

obviously this is psuedo code you need to test the
tableview object...

Ted


-__--__--
>
> Message: 1
> Date: Tue, 27 Jan 2004 22:42:09 -0800
> Subject: Doe each NSTableView requires its own
> controller?
> From: email@hidden
> To: email@hidden
>
> Hi:
>
> Hope this isn't too stupid....
>
> In my application I'm about to add an additional
> NSTableView instance.
> Do I now need to create a new controller to
> implement its delegate
> methods? I would think so. If this is the case, how
> do I reference
> objects in the other table view's controller?
>
> Any help greatly appreciated.
>
> John
>
> --__--__--
>


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
_______________________________________________
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: Name instance variables, methods and parameters.
  • Next by Date: Notification redundancy
  • Previous by thread: Re: Adding a people to the system AddressBook
  • Next by thread: Notification redundancy
  • Index(es):
    • Date
    • Thread