• 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: Problem moving subview within superview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem moving subview within superview


  • Subject: Re: Problem moving subview within superview
  • From: Scott Anguish <email@hidden>
  • Date: Sat, 11 Feb 2006 18:12:02 -0500


On Feb 10, 2006, at 1:50 PM, Camillo Lugaresi wrote:

Also, is that the right way to do what I was trying to? I couldn't think of anything more elegant but I'd love to hear if there is a better approach.

NSRect oldFrame = [button frame]; [button setFrame:NSMakeRect(0,0,35,35)]; [[button superview] setNeedsDisplayInRect:oldFrame]; [button setNeedsDisplay];

camillo shoes the correct way (although with a small syntax error.. setNeedsDisplay requires a boolean value)


	incidentally, this is in the doc

http://developer.apple.com/documentation/Cocoa/Conceptual/DrawViews/ Tasks/MovingResizingViews.html#//apple_ref/doc/uid/20000910-102009
_______________________________________________
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: Problem moving subview within superview
      • From: Camillo Lugaresi <email@hidden>
References: 
 >Problem moving subview within superview (From: Ivan Kourtev <email@hidden>)
 >Re: Problem moving subview within superview (From: Camillo Lugaresi <email@hidden>)

  • Prev by Date: Re: Debugging problems - [resolved]
  • Next by Date: Re: objc_msgSend problems on x86
  • Previous by thread: Re: Problem moving subview within superview
  • Next by thread: Re: Problem moving subview within superview
  • Index(es):
    • Date
    • Thread