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 16:36:10 +0000
On Sunday, October 26, 2003, at 03:50 pm, Eric Freeman wrote:
Hi Alastair,
I just did with no effect:
NSColor *backgroundColor = [[NSColor
colorWithPatternImage:backgroundImage] retain];
[[NSApp context]
setPatternPhase:NSMakePoint(clipRect.origin.x, clipRect.origin.y)];
Interesting. I hadn't even noticed the -context method on
NSApplication, and the documentation doesn't really say which context
it's supposed to return (it just says "the receiver's display
context"). Try [NSGraphicsContext currentContext] instead of [NSApp
context] and see if that makes any difference.
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.