• 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: Redrawing a superview from another view's -drawRect: method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Redrawing a superview from another view's -drawRect: method


  • Subject: Re: Redrawing a superview from another view's -drawRect: method
  • From: j o a r <email@hidden>
  • Date: Mon, 2 May 2005 16:34:25 +0200


On 2005-05-02, at 16.28, Nick Zitzmann wrote:

Why are you doing this inside drawRect? That seems a bit weird to me.

The view must be able to draw something outside of its own frame without actually expanding that frame, _and_ must be drawn over the top of several neighboring views, and so it uses NSImageView to accomplish this.

Find some other way to solve this problem. Are you always drawing "outside" of your view frame? If so, make the frame of the view larger from the start. If not, resize the view when you receive the event that triggered the change. Don't use the drawing methods as the event to trigger these changes.


j o a r

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Redrawing a superview from another view's -drawRect: method
      • From: Shawn Erickson <email@hidden>
References: 
 >Redrawing a superview from another view's -drawRect: method (From: Nick Zitzmann <email@hidden>)
 >Re: Redrawing a superview from another view's -drawRect: method (From: Ricky Sharp <email@hidden>)
 >Re: Redrawing a superview from another view's -drawRect: method (From: Nick Zitzmann <email@hidden>)
 >Re: Redrawing a superview from another view's -drawRect: method (From: j o a r <email@hidden>)
 >Re: Redrawing a superview from another view's -drawRect: method (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: NSBezierPath and line intersection
  • Next by Date: Re: Quick Time Update Broke My Project :(
  • Previous by thread: Re: Redrawing a superview from another view's -drawRect: method
  • Next by thread: Re: Redrawing a superview from another view's -drawRect: method
  • Index(es):
    • Date
    • Thread