1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-27 01:31:42 +00:00

Switched to nicer nullable/nonnull syntax.

This commit is contained in:
Thomas Harte 2016-01-02 17:59:21 -05:00
parent feeedbe33b
commit 96503a3ac5
3 changed files with 9 additions and 9 deletions

View File

@ -15,7 +15,7 @@
@property (nonatomic, weak) CSCathodeRayView *view; @property (nonatomic, weak) CSCathodeRayView *view;
- (void)runForNumberOfCycles:(int)cycles; - (void)runForNumberOfCycles:(int)cycles;
- (void)setROM:(NSData * __nonnull)rom; - (void)setROM:(nonnull NSData *)rom;
- (void)setState:(BOOL)state forDigitalInput:(Atari2600DigitalInput)digitalInput; - (void)setState:(BOOL)state forDigitalInput:(Atari2600DigitalInput)digitalInput;
- (void)setResetLineEnabled:(BOOL)enabled; - (void)setResetLineEnabled:(BOOL)enabled;

View File

@ -13,13 +13,13 @@
@class CSCathodeRayView; @class CSCathodeRayView;
@protocol CSCathodeRayViewDelegate @protocol CSCathodeRayViewDelegate
- (void)openGLView:(CSCathodeRayView * __nonnull)view didUpdateToTime:(CVTimeStamp)time; - (void)openGLView:(nonnull CSCathodeRayView *)view didUpdateToTime:(CVTimeStamp)time;
@end @end
@protocol CSCathodeRayViewResponderDelegate <NSObject> @protocol CSCathodeRayViewResponderDelegate <NSObject>
- (void)keyDown:(NSEvent * __nonnull)event; - (void)keyDown:(nonnull NSEvent *)event;
- (void)keyUp:(NSEvent * __nonnull)event; - (void)keyUp:(nonnull NSEvent *)event;
- (void)flagsChanged:(NSEvent * __nonnull)newModifiers; - (void)flagsChanged:(nonnull NSEvent *)newModifiers;
@end @end
@interface CSCathodeRayView : NSOpenGLView @interface CSCathodeRayView : NSOpenGLView
@ -29,7 +29,7 @@
- (void)invalidate; - (void)invalidate;
- (BOOL)pushFrame:(CRTFrame * __nonnull)crtFrame; - (BOOL)pushFrame:(nonnull CRTFrame *)crtFrame;
- (void)setSignalDecoder:(NSString * __nonnull)signalDecoder; - (void)setSignalDecoder:(nonnull NSString *)signalDecoder;
@end @end

View File

@ -172,7 +172,7 @@ static CVReturn DisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeSt
} }
} }
- (BOOL)pushFrame:(CRTFrame * __nonnull)crtFrame - (BOOL)pushFrame:(nonnull CRTFrame *)crtFrame
{ {
[[self openGLContext] makeCurrentContext]; [[self openGLContext] makeCurrentContext];
CGLLockContext([[self openGLContext] CGLContextObj]); CGLLockContext([[self openGLContext] CGLContextObj]);
@ -302,7 +302,7 @@ static NSString *const fragmentShader =
return shader; return shader;
} }
- (void)setSignalDecoder:(NSString * __nonnull)signalDecoder - (void)setSignalDecoder:(nonnull NSString *)signalDecoder
{ {
_signalDecoder = [signalDecoder copy]; _signalDecoder = [signalDecoder copy];
OSAtomicIncrement32(&_signalDecoderGeneration); OSAtomicIncrement32(&_signalDecoderGeneration);