timthedevguy / BGHUDAppKit

* BGHUDAPPKIT is no longer under development by me, I hope that the community will keep it alive and going as I no longer have time to dedicate to the project** The missing HUD controls. Please scroll down to read the readme file for an important notice concerning the future of BGHUDAppKit. Note that there are multiple versions available, 10.5+, 10.6.7, and now 10.7. As soon as I learn how I'll make these all one code base if possible.
http://www.binarymethod.com/
312 stars 57 forks source link

Access BGHUDAppKit programmatically #60

Closed loretoparisi closed 13 years ago

loretoparisi commented 13 years ago

Hello, I would know how to access the BGHUD programmatically.

I did something like

// add scrollview BGHUDScrollView *scrollview = [[NSScrollView alloc] initWithFrame:NSMakeRect(0.0, 0.0, windowSize.width, windowSize.height-30)];

but a standard NSScrollView comes out.

What's wrong?

Thanks

timthedevguy commented 13 years ago

Thats because your using NSScroller initializer and not BGHUDScroller initializer

loretoparisi commented 13 years ago

Poor me! You're right! Everything is ok!