• 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: Disabling an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling an NSTableView


  • Subject: Re: Disabling an NSTableView
  • From: Moray Taylor <email@hidden>
  • Date: Wed, 18 Feb 2004 19:49:48 +0000

The shouldSelectRow: did it, thanks Ryan. Curiously, setEnabled: doesn't appear to do anything.

Thanks again

Moray

You can disable selection by always returning NO for the "tableView:shouldSelectRow:" and "tableView:shouldSelectTableColumn:" delegate methods. What else do you need disabled? If you want to completely block mouse down events you could subclass the table and not pass the "mouseDown:" method to the superclass. I don't know if this is the best way to go about it though.

Ryan


On Feb 17, 2004, at 2:17 PM, Moray Taylor wrote:

Hi,

I've got two scroll-synchronized NSTableViews (many thanks to Ryan Bates for his assistance in doing this). Since one of the NSTableViews is just for cosmetic purposes, I want to make it 'disabled', i.e. so the user can't click, drag, or anything else. I can turnoff a lot of functionality in IB, but I want to turn off everything, like Row selection etc.., is there anyway to do this?

Thanks v much

Moray
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Disabling an NSTableView
      • From: Ryan Bates <email@hidden>
References: 
 >Disabling an NSTableView (From: Moray Taylor <email@hidden>)
 >Re: Disabling an NSTableView (From: Ryan Bates <email@hidden>)

  • Prev by Date: Re: mmalc's Controller examples
  • Next by Date: generate HTML from a NSAttributedString
  • Previous by thread: Re: Disabling an NSTableView
  • Next by thread: Re: Disabling an NSTableView
  • Index(es):
    • Date
    • Thread