• 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
NSOutlineView & NSTableView setEnabled:NO not working?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView & NSTableView setEnabled:NO not working?


  • Subject: NSOutlineView & NSTableView setEnabled:NO not working?
  • From: Robb Olsen-Albright <email@hidden>
  • Date: Wed, 1 Nov 2006 11:29:21 -0800

I'm trying to disable outline views & table views in dialogs, but sending setEnabled:NO to either (via an outlet in a controller) seems to have no effect (besides setting the internal state, so that sending isEnabled returns NO). Mouse clicks in the column headers or cell are are still acted upon.

From NSControl docs:
Sets whether the receiver (and its cell) reacts to mouse events.

- (void)setEnabled:(BOOL)flag

Parameters
flag
YES if you want the receiver to react to mouse events; otherwise, NO.



and NSOutlineView & NSTableView both inherit from NSControl, and I don't see any reference in their docs to why this wouldn't work.


I did search the archives and Google, but didn't turn up anything useful. there are some references to disabling custom cells in a data view but nothing about why you can't disable the whole control.


I did just deal with NSTextView not disabling, and there is a tech Q & A for that, but nothing about outline/table.

Anybody have an answer or ideas?


thanks,

robb olsen-albright
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSOutlineView & NSTableView setEnabled:NO not working?
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: NSOpenGLView and resizable NSWindow problem
  • Next by Date: Re: Uploading file to auth http server, when login url is different to upload url??
  • Previous by thread: Re: NSOpenGLView and resizable NSWindow problem
  • Next by thread: Re: NSOutlineView & NSTableView setEnabled:NO not working?
  • Index(es):
    • Date
    • Thread