Re: NSAffineTransform
Re: NSAffineTransform
- Subject: Re: NSAffineTransform
- From: Jim Beard <email@hidden>
- Date: Wed, 6 Feb 2002 20:58:04 -0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ah yes, I should have mentioned that the reason I was calling [self
display] and -drawRect: was because [self setNeedsDisplay:YES] does
nothing for me. Right now I have a button on my gui tied into the
following function:
- - (void)decreaseAngle:(id)sender
{
angle = angle - 1.0;
NSLog(@"Decreasing angle: %f", angle);
[self setNeedsDisplay:YES];
[self display];
}
And yet my CustomView does not repaint itself like I had hoped it
would...
Jim
On Wednesday, February 6, 2002, at 06:36 PM, Brad Miller wrote:
Try calling [viewName(self if the view class) setNeedsDisplay:Yes]; at
the end of the method that does your transforms. That should do the
trick for you.
BTW, we now have a tutorial on using affine transforms at
cocoadevcentral.com if you're looking for info on them.
Brad
email@hidden
_________________________________________________________________
The trouble with the world is that
the stupid are cocksure and the
intelligent are full of doubt.
- Bertrand Russell
___________________________________
Jim Beard
Masters Student in CS @ U of Oregon
~
PGP Public Key:
http://www.cs.uoregon.edu/~jim/pgp.html
1F87 0604 E10A 20BA 99FD E57D 7AAF 6B4E 3669 5B29
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see
http://www.gnupg.org
iD8DBQE8Yglgeq9rTjZpWykRAmX0AJ0TJO9P03oIK+BblTwctwbzIPrA1wCeKXJu
RgBCEXhc0w4nhZHGmzoXwRQ=
=AlmV
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.