Re: Renaissance_NSTable
Nicola Pero <[email protected]> Thu, 12 Aug 2010 22:52:04 +0100
| Newsgroups | gmane.comp.lib.gnustep.user |
|---|---|
| Message-ID | <[email protected]> |
On 12 Aug 2010, at 22:14, =E9=D7=C1=CE =F4 wrote:
> Greetings.
> A have a question about using "Renaissance". I try to find answer =20
> over internet or documentation, but stuck with answer. If You give =20
> me a link, piece of code or some other help that solve my problem - =20=
> I will be much grateful.
>
> Question: [...]
>
> So I need to link table on the form and NSTableView* from source.
Check
Renaissance/Examples/Classes/TableView/
it contains a full example of creating an NSTableView and linking it =20
to the NSOwner. :-)
Fundamentally, the idea is that you create the NSTableView using
<tableView ...>
and tell it that the data source is NSOwner (which can be any object =20
you want; you can specify when you load the markup file) --
<tableView dataSource=3D"#NSOwner" ...>
then, you can implement the data source methods (see NSTableView =20
documentation) to supply data to the table. :-)
Thanks
PS: For more information on NSOwner, and linking objects in your =20
program to objects created by the gsmarkup files, check the =20
Renaissance documentation
(Renaissance/Documentation/Pregenerated/)=