Re: setPatternPhase: woes
Re: setPatternPhase: woes
- Subject: Re: setPatternPhase: woes
- From: Keith Blount <email@hidden>
- Date: Sat, 8 Jul 2006 12:45:23 -0700 (PDT)
Great! Thank you, I. Savant, that was what I was
missing. I updated my code as follows:
float yOffset = NSMaxY([self convertRect:[self frame]
toView:nil]);
[[NSGraphicsContext currentContext]
setPatternPhase:NSMakePoint(0,yOffset)];
Everything works perfectly now.
Thanks again,
Keith
---- ORIGINAL MESSAGE: ----
Keith:
If I recall correctly, the pattern's origin is
relative to the
window coordinates, not the view on which it is being
drawn. I hope
this helps.
--
I.S.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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