• 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: Need help with setNeedsDisplay
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help with setNeedsDisplay


  • Subject: Re: Need help with setNeedsDisplay
  • From: "M. N. Jackson" <email@hidden>
  • Date: Sat, 10 Mar 2007 19:31:17 -0600

Hello,

Are you setting the Custom View's custom class (In the IB inspector pallete) to your view class? You don't instantiate the view, you just add the class, and set the custom class to point to it.

M. N. Jackson

On Mar 10, 2007, at 12:39 PM, Yevgeniy Goldberg wrote:

Greetings!
In my custom view I have a few straight lines, who's start and end points being set as instance variables within the view's class.
When the user causes the values for these variables to change I need to update the view.
All of my drawing routines are in the drawRec.
I have a separate method within this custom view class that changes the values for the variables.
After changing the values I call [self setNeedsDisplay:YES]
In my run log I can see that all the relevant methods get triggered as they should.
However, the view does not redraw.
What could be wrong?
_______________________________________________


Cocoa-dev mailing list (email@hidden)

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:
40valera1909.com


This email sent to email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Need help with setNeedsDisplay
      • From: Yevgeniy Goldberg <email@hidden>
References: 
 >Need help with setNeedsDisplay (From: Yevgeniy Goldberg <email@hidden>)

  • Prev by Date: Re: init vs awakefromnib
  • Next by Date: Re: Framework project config & accessing resources in the framework bundle.
  • Previous by thread: Re: Need help with setNeedsDisplay - Another Update
  • Next by thread: Re: Need help with setNeedsDisplay
  • Index(es):
    • Date
    • Thread