08 June 2008
BGHUDSecureTextFieldCell...
June 14 2008 12:35 AM Filed in: BGHUDAppKit
BGHUDSecureTextFieldCell is ready for use. Go grab the latest revision from the repo. The only difference with this class is that you must use it on a standard NSTextField. Don’t worry, it will mimic the NSSecureTextField excatly. For some reason I cannot get NSSecureTextField to use my custom class draw code, it automaticly overrides all my code with its own. I’m assuming this is some kind of security feature built in by Apple. So instead, just drag a standard NSTextField to your window and change it’s cell class to BGHUDSecureTextFieldCell. Enjoy!!!
|
BGHUDTokenFieldCell...
June 12 2008 12:27 AM Filed in: BGHUDAppKit
After some long and very very hard research I finally figured out how to get a subclassed NSTokenField to work and draw the tokens correctly. Thanks to the guys over at CocoaDev Forums it now works. I’ve sent an email to those that have expressed intrest in this control so they can test it. I have NO clue how to use this or what I would use it for. I see it all over the place for blog tags and such but I’ve never needed it. So test away and send me your opinions!!

BGHUDProgressIndicator...
June 10 2008 12:23 PM Filed in: BGHUDAppKit
BGHUDAppKit has a new addition! I commited the source yesterday morning for BGHUDProgressIndicator. The progress bar supports only the Bar style for now, but it will draw correctly in either determinate or indeterminate modes. This control was pure living HELL!! The ONLY examples I could find on subclassing a progressbar for indeterminte mode where the ones that used images. So after about 3 different trys using a variety of methods from creating a large NSGradient, drawing sections at a time, I finally came up with one using NSBezierPath and subpaths. I had no clue that a single NSBezierPath instance could hold more than one path. So here’s how I solved it...
I created a NSBezierPath to hold the path information for the stripes, I created enough paths that would fill the bounds of the control, but made it slightly larger. The path contains points for one stripe, skips a stripe and then contains the points for the next. On animation I fill the entire rect with one color, and then fill the path with another, this results in the paths being drawn a different color and giving the stripped appearence. Then I just offset the x coordinate of the rect used to define my drawing based on the animation index. Looks like it moves now. Check out the code and it will make more sense...
I created a NSBezierPath to hold the path information for the stripes, I created enough paths that would fill the bounds of the control, but made it slightly larger. The path contains points for one stripe, skips a stripe and then contains the points for the next. On animation I fill the entire rect with one color, and then fill the path with another, this results in the paths being drawn a different color and giving the stripped appearence. Then I just offset the x coordinate of the rect used to define my drawing based on the animation index. Looks like it moves now. Check out the code and it will make more sense...
RapidWeaver...
June 08 2008 12:10 AM Filed in: Site | RapidWeaver
If you can’t tell I have switched my site over to RapidWeaver. I purchased RapidWeaver about 6 months ago, but I didn’t have the patience to learn it. Well after being contacted by one of thier developers letting me know that a part of BGHUDAppKit was being used, I had to give it another go. So I downloaded the newest version (4.0 is a free update to those of you that have 3.6), and wow, I am impressed. I don’t know why I wasn’t using this in the 3.x version. It’s really nice. When I first started it up I was like oh crap, there’s no way for me to do HTML or PHP or the like. Well, I was wrong. I redid my TypeRefleX page and it looks great. I’m using the Elements theme by Elixir Graphics.