Re: Simple TableView App (problem)
Re: Simple TableView App (problem)
- Subject: Re: Simple TableView App (problem)
- From: Thilo Ettelt <email@hidden>
- Date: Mon, 4 Feb 2002 00:02:58 +0100
Say, do I have to make a "wire" called "datasource" from the tableView
to my class?
If true, then I have to tell that the following message occurs:
2002-02-03 23:47:06.210 TableView App[598] *** Illegal NSTableView data
source (<MyController: 0x14e000>). Must implement
numberOfRowsInTableView: and tableView:objectValueForTableColumn:row:
I have posted the code (still not working) on a webserver now:
<
http://public.itoast.de/opensource/TableView App.sit>
Cheers, Thilo - and again: Thank you!
Am Sonntag den, 3. Februar 2002, um 23:35, schrieb Ondra Cada:
Thilo,
Thilo Ettelt (TE) wrote at Sun, 3 Feb 2002 23:23:15 +0100:
TE> IBOutlet id addButton;
TE> IBOutlet id myTableView;
TE> IBOutlet id valueText;
Incidentally, I've noticed: this is *NO ERROR*, all would work
perfectly,
but the reason of having the "IBOutlet" is so as you can declare those
real
classes -- to aid compiler to point out possible errors and overlooks:
IBOutlet NSButton *addButton;
IBOutlet NSTableView *myTableView;
IBOutlet NSTextField *valueText;
would be better: the application would be exactly the same, but the
compiler
might be able to warn you if you, for example, by a mistake wrote
return [myTableView intValue];
;)))
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc