Re: disabling NSButton?
Re: disabling NSButton?
- Subject: Re: disabling NSButton?
- From: "Kevin Dixon" <email@hidden>
- Date: Sat, 22 Mar 2008 05:44:18 -0400 (EDT)
- Importance: Normal
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@hidden> 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
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden