14

I can't seem to create a NSScrollView with a transparent background. Does anyone know why? here is my code:

NSScrollView *textScroll = [[NSScrollView alloc] initWithFrame:CGRectMake(212, 203, 381, 55)];
[textScroll setBackgroundColor:[NSColor clearColor]];
[view addSubview:textScroll];
Zigglzworth
  • 6,645
  • 9
  • 68
  • 107

1 Answers1

41

I think in your case this should work:

[textScroll setDrawsBackground:NO];
Devarshi
  • 16,440
  • 13
  • 72
  • 125