Re: NSColor colorWithPatternImage: texture origin?
Re: NSColor colorWithPatternImage: texture origin?
- Subject: Re: NSColor colorWithPatternImage: texture origin?
- From: "Alastair J.Houghton" <email@hidden>
- Date: Sun, 26 Oct 2003 11:21:09 +0000
On Sunday, October 26, 2003, at 01:39 am, Eric Freeman wrote:
Bumping up a very old question here (see below): I've seen a few post
asking how to control the origin of a color created with [NSColor
colorWithPatternImage:]. In my case I'm using this as a cell highlight
color in an attempt to replicate the blue gradients that iTunes' uses
for selections. As everyone else has found, the origin of the pattern
is always relative to the window, not the cell.
After a couple years since this original question was posted, has
anyone solved this in Cocoa?
Have you tried the -setPatternPhase: method on NSGraphicsContext, which
will let you specify the origin of your pattern?
Kind regards,
Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.