• 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: How to code a TableView into a CustomView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to code a TableView into a CustomView?
      • From: "Mark's Studio" <email@hidden>
References: 
 >Re: How to code a TableView into a CustomView? (From: "Mark's Studio" <email@hidden>)

  • Prev by Date: Re: How to code a TableView into a CustomView?
  • Next by Date: Re: Drag-n-Drop in NSOutlineView
  • Previous by thread: Re: How to code a TableView into a CustomView?
  • Next by thread: Re: How to code a TableView into a CustomView?
  • Index(es):
    • Date
    • Thread