• 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: "Alan Smith" <email@hidden>
  • Date: Fri, 28 Jul 2006 12:26:12 -0400

Glenn -
Yes. I tried that:

NSPoint visOrigin = [self visibleRect].origin;
   [[NSGraphicsContext graphicsContextWithWindow: [self window]]
setPatternPhase:NSMakePoint(visOrigin.x, visOrigin.y)];
   [[NSColor colorWithPatternImage: pattern] set];
   [NSBezierPath fillRect: [self bounds]];

It doesn't have any affect. :(

Thanks anyhow, 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: Re: How do I pattern an image in a view w/o "scrolling"?
      • From: "Michael Ash" <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: 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>)
 >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>)
 >Re: How do I pattern an image in a view w/o "scrolling"? (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: Get Machine Type string
  • 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: Re: How do I pattern an image in a view w/o "scrolling"?
  • Index(es):
    • Date
    • Thread