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

Creating matrix/radio buttons, take 2 #54

Open pixpont opened 13 years ago

pixpont commented 13 years ago

I've read the steps in

https://github.com/binarygod/BGHUDAppKit/issues/7

and tried to follow them to create a radio button matrix, but it doesn't seem to work for me. When I tried it one time, the text was still black, and the radio button circles looked pixelated. When I've tried it since, the entire radio button matrix is completely invisible.

Now, I have some existing xib files that I've inherited for a project, and the puzzling thing is that I see an example of a working radio button matrix in one of those xibs, I just can't replicate making it from scratch.

(Note this working radio button matrix has the display issue described in https://github.com/binarygod/BGHUDAppKit/issues/#issue/21 )

In the working version, the BGHUDButtonCell objects are not NSButtonCell objects with a new custom class name, their innate class type is BGHUDButtonCell, and for their IB attributes inspectors, they have a "Theme" disclosure area set to "gradientTheme". Their radio button circle looks fine.

So do people know how to make a radio button matrix that fits that description?

timthedevguy commented 13 years ago

Currently things are a little wacky. In order to get a radio button matrix to work we had to take advantage of private API's, since the App Store rejects any use of private API's I had to remove the offending code. Radio matrices are now broken until I can find a better solution that doesn't involve private API's.