Re: Need help with setNeedsDisplay - Another Update
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 13:21:23 -0600
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:
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