// // PSButton.m // Perforce // // Created by Adam Czubernat on 13.06.2013. // Copyright (c) 2013 Perforce Software, Inc. All rights reserved. // #import "PSButton.h" @implementation PSButton - (void)awakeFromNib { NSTrackingAreaOptions trackingOptions = (NSTrackingActiveInKeyWindow | NSTrackingMouseEnteredAndExited | NSTrackingAssumeInside | NSTrackingInVisibleRect); NSTrackingArea *trackingArea = [[NSTrackingArea alloc] initWithRect:NSZeroRect options:trackingOptions owner:self userInfo:nil]; [self addTrackingArea:trackingArea]; } - (void)mouseEntered:(NSEvent *)theEvent { if ([self isEnabled]) [self setAlphaValue:0.8f]; } - (void)mouseExited:(NSEvent *)theEvent { [self setAlphaValue:1.0f]; } @end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 16817 | christoph_leithner | "Forking branch Main of perforce-software-piper to christoph_leithner-piper." | ||
//guest/perforce_software/piper/main/mac/R2.0/Perforce/Classes/Views/PSButton.m | |||||
#1 | 16507 | perforce_software | Move to main branch. | ||
//guest/perforce_software/piper/mac/R2.0/Perforce/Classes/Views/PSButton.m | |||||
#1 | 12962 | alan_petersen |
Populate -o //guest/perforce_software/piper/mac/main/... //guest/perforce_software/piper/mac/R2.0/.... |
||
//guest/perforce_software/piper/mac/main/Perforce/Classes/Views/PSButton.m | |||||
#1 | 11252 | alan_petersen | Rename/move file(s) | ||
//guest/perforce_software/piper/mac/Perforce/Classes/Views/PSButton.m | |||||
#1 | 10744 | alan_petersen | Rename/move file(s) | ||
//guest/perforce_software/piper/Perforce/Classes/Views/PSButton.m | |||||
#1 | 8919 | Matt Attaway | Initial add of Piper, a lightweight Perforce client for artists and designers. |