• 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 - Another Update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help with setNeedsDisplay - Another Update


  • Subject: Re: Need help with setNeedsDisplay - Another Update
  • From: Yevgeniy Goldberg <email@hidden>
  • Date: Sat, 10 Mar 2007 14:17:16 -0600

I could try to set up a sample app.
In short, my app has 3 parts: a model class based on CoreData, a controller class that retrieves the data from the model and a view class that has this custom view.
The user changes some data by clicking NSStepper. Each click triggers an "update" function in controller that updates the model's data and suppose to update a simple graph in the view to reflect the changes.
Everything else seem to work except for the custom view update.



On Mar 10, 2007, at 2:09 PM, Mike Abdullah wrote:

Perhaps a simple test application would help us solve the problem? If not, other things to check are that you haven't set up anything weird in the run loop have you? And likewise, -setNeedsDisplay: isn't being called as part of a lengthy loop which locks up the main thread?

Mike.

On 10 Mar 2007, at 19:32, Yevgeniy Goldberg wrote:

I'm using self within my custom view code and I have not overwritten setNeedsDisplay.
I do not have any variables called self.



On Mar 10, 2007, at 1:31 PM, Buddy Kurz wrote:

[self setNeedsDisplay:YES] is being called by a method in your custom view?
and you haven't created your own instance variable called self? or overridden setNeedsDisplay:?



On Mar 10, 2007, at 11:21 AM, Yevgeniy Goldberg wrote:

I was just reading numerous posts regarding this issue.
Some of them mention that upon window resize the drawRect is actually being triggered.
I've just tried that and it is true.
The problem is the same though - I have no need to resize the main window, so the need to have drawRect triggered as it should is still there.



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

Yes, It was just a typo.
I'm using the standard drawRect for all the drawing, but when I call [self setNeedsDisplay:YES] it does not have any visible affect.



On Mar 10, 2007, at 1:10 PM, Andy Lee wrote:

On Mar 10, 2007, at 1:52 PM, Yevgeniy Goldberg wrote:
I've just realized that drawRec is not even being called after I change the variables and call
[self setNeedsDisplay:YES]
Any ideas as to why the drawRec is not being called?

Is that a typo, or is your method really called drawRec? It should be drawRect:, with a "t" and a colon, and should take an NSRect argument. See the documentation for the method.


--Andy


_______________________________________________

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:
40mac.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:
40mac.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:
40mac.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:
40mikeabdullah.net


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

** ACCEPT: CRM114 PASS osb unique microgroom Matcher **CLASSIFY fails; success probability: 0.5000 pR: 0.0000
Best match to file #0 (nonspam.css) prob: 0.5000 pR: 0.0000 Total features in input file: 6640
#0 (nonspam.css): features: 1, hits: 0, prob: 5.00e-01, pR: 0.00#1 (spam.css): features: 1, hits: 0, prob: 5.00e-01, pR: 0.00

_______________________________________________

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


References: 
 >Need help with setNeedsDisplay (From: Yevgeniy Goldberg <email@hidden>)
 >Re: Need help with setNeedsDisplay - Update (From: Yevgeniy Goldberg <email@hidden>)
 >Re: Need help with setNeedsDisplay - Update (From: Andy Lee <email@hidden>)
 >Re: Need help with setNeedsDisplay - Update (From: Yevgeniy Goldberg <email@hidden>)
 >Re: Need help with setNeedsDisplay - Another Update (From: Yevgeniy Goldberg <email@hidden>)
 >Re: Need help with setNeedsDisplay - Another Update (From: Buddy Kurz <email@hidden>)
 >Re: Need help with setNeedsDisplay - Another Update (From: Yevgeniy Goldberg <email@hidden>)
 >Re: Need help with setNeedsDisplay - Another Update (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Need help with setNeedsDisplay - Another Update
  • Next by Date: Re: Allowing cancel and progress but not updating display
  • Previous by thread: Re: Need help with setNeedsDisplay - Another Update
  • Next by thread: Re: Need help with setNeedsDisplay
  • Index(es):
    • Date
    • Thread