Comments (5)
Currently there is no work around, this was a skeleton of my work in getting BGHUDStepperCell to work, but ran into some issues subclassing it, namely detecting up/down clicks in the cell.
from bghudappkit.
Thanks
from bghudappkit.
I think you may need to override these methods:
- (BOOL)trackMouse:(id)fp8 inRect:(struct _NSRect)fp12 ofView:(id)fp28 untilMouseUp:(BOOL)fp32;
- (BOOL)startTrackingAt:(struct _NSPoint)fp8 inView:(id)fp16;
- (BOOL)continueTracking:(struct _NSPoint)fp8 at:(struct _NSPoint)fp16 inView:(id)fp24;
- (void)stopTracking:(struct _NSPoint)fp8 at:(struct _NSPoint)fp16 inView:(id)fp24 mouseIsUp:(BOOL)fp28;
You could use these to track where the mouse started and ended, thus detecting when it is down/out/in/up, etc.
from bghudappkit.
-(BOOL)startTrackingAt:(NSPoint)startPoint inView:(NSView *)controlView
{
NSLog(@"start at: %@",NSStringFromPoint(startPoint));
return [super startTrackingAt:startPoint inView:controlView];
}
-(BOOL)continueTracking:(NSPoint)lastPoint at:(NSPoint)currentPoint inView:(NSView *)controlView
{
NSLog(@"continue at:%@ new: %@",NSStringFromPoint(lastPoint),NSStringFromPoint(currentPoint));
return [super continueTracking:lastPoint at:currentPoint inView:controlView];
}
-(void)stopTracking:(NSPoint)lastPoint at:(NSPoint)stopPoint inView:(NSView *)controlView mouseIsUp:(BOOL)flag
{
NSLog(@"stop with last: %@, stopPoint: %@",NSStringFromPoint(lastPoint),NSStringFromPoint(stopPoint));
[super stopTracking:lastPoint at:stopPoint inView:controlView mouseIsUp:flag];
}
These all work. They track properly. It should be trivial to change the image based on the position of the point inside the view. All you should need to do is the drawing. The superclass should handle all the rest for you just fine.
from bghudappkit.
Thanks to Sastira BGHUDAppKit now has a working StepperCell!
from bghudappkit.
Related Issues (20)
- unable to resolve warnings 'directory not found' HOT 3
- How to work with XCode 4 HOT 25
- Can't load interface builder plugin HOT 2
- BGHUDTokenField - Text colour breaks after token deletion HOT 6
- Insertion Point Color
- xcode 4 compatibility HOT 5
- BGHudButtonCell Round Texture Small & Mini render issues HOT 4
- BGHudButtonCell check box renders invisible HOT 3
- NSButton - Small size stroke missing on bottom HOT 1
- Rejected from Mac App Store HOT 2
- Creating matrix/radio buttons, take 2 HOT 1
- Private API Use? HOT 1
- Vertical slider doesn't draw correctly in disabled state (patch included) HOT 1
- Should button outlines be drawn in the disabledStrokeColor in the disabled state? (patch included)
- Is it possible to draw the tick marks of a disabled BGSliderCell in the disabledStrokeColor? HOT 1
- BGHUDTokenField Visual Issues in OSX Lion HOT 4
- Access BGHUDAppKit programmatically HOT 2
- BGHUDScrollView scroll arrows "DoubleBoth" HOT 2
- Couldn't be initialized! Always is nil.
- Add these developers as collaborators to keep project from code rot. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bghudappkit.