Skip navigation.
 
mlRe: disabling NSButton?
FROM : Kevin Dixon
DATE : Sat Mar 22 10:44:18 2008

I have a TableView. In order to update the state of the buttons that
operate on the items in the list, I call my function
"updateActionEnabledState" when my controller receives the tableView
message (which is triggered by calling [uiAudioFileTableView reloadData]
when the data source is altered).

Is there anything wrong with this approach, or should I call the
updateActionEnabledState along with calling reloadData?

-Kevin

> On Fri, Mar 21, 2008 at 2:46 PM, Kevin Dixon <<email_removed>> wrote:

>>  I needed to call [uiButton displayIfNeeded] instead of setNeedsDisplay

>
> Where are you doing this?  Essentially what you have done is
> short-circuited the coalesced update of dirty rectangles for drawing,
> which leads me to believe that you're doing something in an inner loop
> or a special run loop mode which you perhaps shouldn't be doing.
>
> --Kyle Sluder
>

Related mailsAuthorDate
mldisabling NSButton? Kevin Dixon Mar 19, 20:32
mlRe: disabling NSButton? Ken Ferry Mar 19, 22:11
mlRe: disabling NSButton? Kevin Dixon Mar 20, 14:31
mlRe: disabling NSButton? Rob Napier Mar 21, 16:50
mlRe: disabling NSButton? Kevin Dixon Mar 21, 19:46
mlRe: disabling NSButton? Kyle Sluder Mar 22, 01:32
mlRe: disabling NSButton? Kevin Dixon Mar 22, 10:44