Re: How to code a TableView into a CustomView?
Re: How to code a TableView into a CustomView?
- Subject: Re: How to code a TableView into a CustomView?
- From: "Erik M. Buck" <email@hidden>
- Date: Fri, 9 Nov 2001 14:00:05 -0600
>
[(NSControl *)tableView setEnabled: NO]
there is no reason to cast. ALL instances of NSTableView are ALSO instances
of NSControl due to inheritance. A NSTableView "IS A" NSControl.
>
[tableView setEnabled: NO]
This is fine
>
and nothing really happens
What do you expect to happen ?
>
>
I can't seem to find anything about setEnable in NSView,
As I said, -setEnabled: is a method of NSControl. NSTableView is a subclass
of NSControl which is a subclass of NSView which is a subclass of
NSResponder which is a subclass of NSObject. Every class has all of the
methods of all of its super classes. You must look at the super class
documentation. That is probably why a link to NSControl's documentation is
the FIRST link in the NSTableView documentation.
Maybe you would like to disable all or some of the cells in the table ?
Maybe you would like to show no cells in the tables that are disabled ? You
can implement both of those behaviors in your table's data source.
>
>
>
>
>
>
>
>
>
>
>
Peter Mark
>
>
Mark's Recording Studio A/S
>
Faelledvej 19 b DK2200 N
>
Copenhagen Denmark
>
Tel: +45 35366078 Fax: +45 35366038
>
www.marks-studio.dk
>
email@hidden