• 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: How do I pattern an image in a view w/o "scrolling"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I pattern an image in a view w/o "scrolling"?


  • Subject: Re: How do I pattern an image in a view w/o "scrolling"?
  • From: Michael Watson <email@hidden>
  • Date: Fri, 28 Jul 2006 10:51:40 -0400

Hmm, yeah. I know I've done this before.

Perhaps I did it with -colorWithPatternImage from NSColor. Have you experimented with that?


-- m

On 28 Jul, 2006, at 10:28, Alan Smith wrote:

Argh!! It's so close, and yet so far.

The only problem with that code (aside from the typos) is that when
drawInRect:fromRect:operation:fraction: is called it actually
stretches the image to fit the drawInRect. This is probably the
documented behavior. So since that doesn't work the whole thing is
garbage.

It could be done with a while loop but that doesn't seem very
efficient. Surly there is a faster way.

Thanks for helping me, 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."

_______________________________________________ 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
  • Follow-Ups:
    • Re: How do I pattern an image in a view w/o "scrolling"?
      • From: "Alan Smith" <email@hidden>
References: 
 >How do I pattern an image in a view w/o "scrolling"? (From: "Alan Smith" <email@hidden>)
 >Re: How do I pattern an image in a view w/o "scrolling"? (From: "I. Savant" <email@hidden>)
 >Re: How do I pattern an image in a view w/o "scrolling"? (From: "Alan Smith" <email@hidden>)
 >Re: How do I pattern an image in a view w/o "scrolling"? (From: "I. Savant" <email@hidden>)
 >Re: How do I pattern an image in a view w/o "scrolling"? (From: "Alan Smith" <email@hidden>)
 >Re: How do I pattern an image in a view w/o "scrolling"? (From: Michael Watson <email@hidden>)
 >Re: How do I pattern an image in a view w/o "scrolling"? (From: Michael Watson <email@hidden>)
 >Re: How do I pattern an image in a view w/o "scrolling"? (From: Michael Watson <email@hidden>)
 >Re: How do I pattern an image in a view w/o "scrolling"? (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Re: How do I pattern an image in a view w/o "scrolling"?
  • Next by Date: Re: Get Machine Type string
  • Previous by thread: Re: How do I pattern an image in a view w/o "scrolling"?
  • Next by thread: Re: How do I pattern an image in a view w/o "scrolling"?
  • Index(es):
    • Date
    • Thread