title: How to set a tiled background image for a CALayer?
body: <p>When I set the background for the IKBrowserView the background is resized according to the view size: is there a way to set it as tiled image, repeated but never resized ?</p>
  
  <pre><code>NSImage*    backgroundImage = [NSImage imageNamed:@"wood-bg2.jpg"];
  CALayer*    aLayer = [CALayer layer];
  //aLayer.contents = backgroundImage;
  
  CIColor *ci = [[CIColor alloc] initWithColor:[NSColor colorWithPatternImage:backgroundImage]];
  CGColorSpaceRef cs = [ci colorSpace];
  const CGFloat *comps = [ci components];
  CGColorRef cgColor = CGColorCreate(cs, comps);
  
  aLayer.backgroundColor = cgColor;
  [itemThumbnailImageBrowserView setBackgroundLayer:aLayer];
  </code></pre>
  
  <p>I've tried both the commented out code and the current code, but none work.
  thanks</p>