• 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 NSButton?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >disabling NSButton? (From: "Kevin Dixon" <email@hidden>)
 >Re: disabling NSButton? (From: "Rob Napier" <email@hidden>)
 >Re: disabling NSButton? (From: "Kevin Dixon" <email@hidden>)
 >Re: disabling NSButton? (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: NSTreeController, "canRemove" binding
  • Next by Date: Changing properties inside a relationship entity
  • Previous by thread: Re: disabling NSButton?
  • Next by thread: Menu Item is not disabling
  • Index(es):
    • Date
    • Thread