NSScrollView - pattern background - how to start from top-left corner?

Posted by dzolanta on Stack Overflow See other posts from Stack Overflow or by dzolanta
Published on 2010-03-20T13:15:50Z Indexed on 2010/03/20 13:21 UTC
Read the original article Hit count: 420

Filed under:
|

To fill NSScrollview with pattern image I use - (void)setBackgroundColor:(NSColor *)aColor method where aColor is created with + (NSColor *)colorWithPatternImage:(NSImage *)image method. Despite of what isFlipped returns for NSScrollView and its content view, pattern start repeat from bottom-left corner while I want it to start from top-left corner. How can I achieve that?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about nsscrollview