2011-10-06 31 views
12

Parece que no puedo crear un NSScrollView con un fondo transparente. ¿Alguien sabe por qué? aquí está mi código:OSX/Cocoa - NSScrollView con fondo transparente

NSScrollView *textScroll = [[NSScrollView alloc] initWithFrame:CGRectMake(212, 203, 381, 55)]; 
[textScroll setBackgroundColor:[NSColor clearColor]]; 
[view addSubview:textScroll]; 

Respuesta

36

Creo que en su caso esto debería funcionar:

[textScroll setDrawsBackground:NO];