Skip to content

Commit a627e14

Browse files
committed
Replaced deprecated NSCompositeSourceOver with NSCompositingOperationSourceOver.
1 parent 64045b9 commit a627e14

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

SSYAlert.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ - (void)stealObjectsFromAppleAlerts {
859859
[image size].width - 2 * borderWength,
860860
[image size].height - 2 * borderWength)
861861
fromRect:NSZeroRect
862-
operation:NSCompositeSourceOver
862+
operation:NSCompositingOperationSourceOver
863863
fraction:1.0] ;
864864
[image unlockFocus] ;
865865

@@ -888,7 +888,7 @@ - (void)stealObjectsFromAppleAlerts {
888888
[image size].width / 2,
889889
[image size].height / 2)
890890
fromRect:NSZeroRect
891-
operation:NSCompositeSourceOver
891+
operation:NSCompositingOperationSourceOver
892892
fraction:0.75] ;
893893
[image unlockFocus] ;
894894
iconView = [[NSImageView alloc] initWithFrame:frame] ;
@@ -915,7 +915,7 @@ - (void)stealObjectsFromAppleAlerts {
915915
[image size].width / 2,
916916
[image size].height / 2)
917917
fromRect:NSZeroRect
918-
operation:NSCompositeSourceOver
918+
operation:NSCompositingOperationSourceOver
919919
fraction:0.75] ;
920920
[image unlockFocus] ;
921921
iconView = [[NSImageView alloc] initWithFrame:frame] ;

SSYStarRatingView.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ - (void)drawRect:(NSRect)dirtyRect
167167
CGFloat removeXTweak = -1.0 ;
168168
[[self removeXImage] drawAtPoint:NSMakePoint([self horizontalMargin], (self.bounds.size.height - removeXSize.height)/2.0 + removeXTweak)
169169
fromRect:NSMakeRect(0.0, 0.0, removeXSize.width, removeXSize.height)
170-
operation:NSCompositeSourceOver
170+
operation:NSCompositingOperationSourceOver
171171
fraction:1.0] ;
172172

173173
// Draw stars
@@ -178,7 +178,7 @@ - (void)drawRect:(NSRect)dirtyRect
178178
[[self starImage] drawAtPoint:[self pointOfStarAtPosition:i
179179
highlighted:YES]
180180
fromRect:NSMakeRect(0.0, 0.0, starSize.width, starSize.height)
181-
operation:NSCompositeSourceOver
181+
operation:NSCompositingOperationSourceOver
182182
fraction:1.0] ;
183183
if( i < [[self rating] floatValue])
184184
{
@@ -207,7 +207,7 @@ - (void)drawRect:(NSRect)dirtyRect
207207
[pathClip addClip];
208208

209209
}
210-
[[self starHighlightedImage] drawAtPoint:starPoint fromRect:NSMakeRect(0.0, 0.0, starHighlightedSize.width, starHighlightedSize.height) operation:NSCompositeSourceOver fraction:1.0];
210+
[[self starHighlightedImage] drawAtPoint:starPoint fromRect:NSMakeRect(0.0, 0.0, starHighlightedSize.width, starHighlightedSize.height) operation:NSCompositingOperationSourceOver fraction:1.0];
211211

212212
[NSGraphicsContext restoreGraphicsState];
213213
}

SSYToolbarButton.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ - (void)drawRect:(NSRect)dirtyRect {
204204
[image size].width,
205205
[image size].height)
206206
fromRect:NSZeroRect
207-
operation:NSCompositeSourceOver
207+
operation:NSCompositingOperationSourceOver
208208
fraction:1.0];
209209

210210
[self.toolbarItem.backgroundImage drawInRect:NSMakeRect(
@@ -213,7 +213,7 @@ - (void)drawRect:(NSRect)dirtyRect {
213213
self.toolbarItem.backgroundImage.size.width,
214214
self.toolbarItem.backgroundImage.size.height)
215215
fromRect:NSZeroRect
216-
operation:NSCompositeSourceOver
216+
operation:NSCompositingOperationSourceOver
217217
fraction:1.0];
218218

219219
if (toolTip) {

0 commit comments

Comments
 (0)