• 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: setPatternPhase: woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: [newbie]How to pop a window?
  • Next by Date: Re: NSMatrix disappears
  • Previous by thread: Re: setPatternPhase: woes
  • Next by thread: NSMatrix disappears
  • Index(es):
    • Date
    • Thread