• 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: PlotIconRefInContext doesn't work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PlotIconRefInContext doesn't work


  • Subject: Re: PlotIconRefInContext doesn't work
  • From: Michael Vannorsdel <email@hidden>
  • Date: Sat, 17 May 2008 09:06:56 -0600

I'm thinking the window might be redrawing itself right after your own drawing and erasing it. You could try disabling the window's auto displaying and flush the window buffer after your draw to determine if this is the case.

I don't know where you're doing the drawing to know if it's safe from being erased or not.


On May 17, 2008, at 12:37 AM, Mike wrote:

It's a local NSRect which I assume is interchangeable with CGRect as they are the same.

I fill in the rect at the top of the method with the Rect of the item in the window from IB and then I hide the item before drawing to prevent my stuff from being drawn over.

CGContextFillRect doesn't do anything either. Just a blank space as with PlotIconRefInContext.

_______________________________________________

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


  • Follow-Ups:
    • Re: PlotIconRefInContext doesn't work
      • From: Uli Kusterer <email@hidden>
    • Re: PlotIconRefInContext doesn't work
      • From: Michael Babin <email@hidden>
  • Prev by Date: QTKitPlayer and IB 3.0
  • Next by Date: Re: Learning Curve/Documentation Challenge/Recommendation
  • Previous by thread: Re: QTKitPlayer and IB 3.0
  • Next by thread: Re: PlotIconRefInContext doesn't work
  • Index(es):
    • Date
    • Thread