Skip navigation.
 
mlRe: How do I pattern an image in a view w/o "scrolling"?
FROM : Alan Smith
DATE : Fri Jul 28 17:45:12 2006

Micheal -
I have indeed used colorWithPatternImage. I set that and then used
NSBezierPath's fillRect and NSRectFill. It has that "scrolling" which
was in my original post. It doesn't quite work.

I think it would work to fill a rect with colorWithPatternImage and
then grab a select piece of that filled rect and use that as the
image. The only problem is that I can't figure out how to get the
contents of the rect without first drawing it on screen. I don't want
to do that.

Shawn -
That probably would work but I want this to work on 10.2. CGLayers
originated in 10.4. Thanks anyways.

Thanks guys, we're real close, Alan

--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"Don't waste your life doing things others have already done."