• 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: Status item using custom view not responding to clicks (Follow up)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Status item using custom view not responding to clicks (Follow up)


  • Subject: Re: Status item using custom view not responding to clicks (Follow up)
  • From: Lorenzo Thurman <email@hidden>
  • Date: Wed, 2 Jan 2008 16:36:21 -0600


On Jan 2, 2008, at 3:36 p, Peter Ammon wrote:


On Dec 28, 2007, at 8:53 AM, Lorenzo Thurman wrote:

I did not receive any replies to my original message which can be found here:
http://www.cocoabuilder.com/archive/message/cocoa/2007/12/27/195494
But, I kept working through the problem and found that the flicker only occurs on the portion of the frame that is added if the frame needs to be made larger. Although the added width may vary for me, there is a maximum width. So I tried just setting my frame to that maximum width when its initially created and not call my resizeFrame method. I see no flicker, but since the maximum width is an exceptional case, I'm left with a lot of empty space than in the more typical cases. Not a good idea, since a status item should use as little space as necessary.
So again, does anyone have any idea how I can fix this?

The flicker is a known bug. You can work around it by disabling screen updates via NSDisableScreenUpdates(), resizing your view, sending it the display message, and then reenabling screen updates.


- Peter

That did the trick! Thanks for the reply.
_______________________________________________

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: 
 >Re: Status item using custom view not responding to clicks (Follow up) (From: Peter Ammon <email@hidden>)

  • Prev by Date: Re: Scripting Bridge && filteredArrayUsingPredicate
  • Next by Date: Multiple windows per document and NSUndoManager
  • Previous by thread: Re: Status item using custom view not responding to clicks (Follow up)
  • Next by thread: Re: Localization Issue
  • Index(es):
    • Date
    • Thread