• 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: Ryan Bates <email@hidden>
  • Date: Tue, 17 Feb 2004 17:03:40 -0800

I should have suggested this to begin with: have you tried setting [tableView setEnabled:NO]?

You could also call [tableView setRefusesFirstResponder:YES] to disable key down events. One other thing, if you override the mouseDown method, you should probably override the other mouse methods as well.

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.

References: 
 >Disabling an NSTableView (From: Moray Taylor <email@hidden>)

  • Prev by Date: Re: Insert two objects under the same column
  • Next by Date: Re: MORE: Setting hierarchy of NIB items
  • Previous by thread: Re: Disabling an NSTableView
  • Next by thread: OmniAppKit Inspector Example?
  • Index(es):
    • Date
    • Thread