1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-10-03 10:54:46 +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;
- (void)runForNumberOfCycles:(int)cycles;
- (void)setROM:(NSData * __nonnull)rom;
- (void)setROM:(nonnull NSData *)rom;
- (void)setState:(BOOL)state forDigitalInput:(Atari2600DigitalInput)digitalInput;
- (void)setResetLineEnabled:(BOOL)enabled;

View File

@ -13,13 +13,13 @@
@class CSCathodeRayView;
@protocol CSCathodeRayViewDelegate
- (void)openGLView:(CSCathodeRayView * __nonnull)view didUpdateToTime:(CVTimeStamp)time;
- (void)openGLView:(nonnull CSCathodeRayView *)view didUpdateToTime:(CVTimeStamp)time;
@end
@protocol CSCathodeRayViewResponderDelegate <NSObject>
- (void)keyDown:(NSEvent * __nonnull)event;
- (void)keyUp:(NSEvent * __nonnull)event;
- (void)flagsChanged:(NSEvent * __nonnull)newModifiers;
- (void)keyDown:(nonnull NSEvent *)event;
- (void)keyUp:(nonnull NSEvent *)event;
- (void)flagsChanged:(nonnull NSEvent *)newModifiers;
@end
@interface CSCathodeRayView : NSOpenGLView
@ -29,7 +29,7 @@
- (void)invalidate;
- (BOOL)pushFrame:(CRTFrame * __nonnull)crtFrame;
- (void)setSignalDecoder:(NSString * __nonnull)signalDecoder;
- (BOOL)pushFrame:(nonnull CRTFrame *)crtFrame;
- (void)setSignalDecoder:(nonnull NSString *)signalDecoder;
@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];
CGLLockContext([[self openGLContext] CGLContextObj]);
@ -302,7 +302,7 @@ static NSString *const fragmentShader =
return shader;
}
- (void)setSignalDecoder:(NSString * __nonnull)signalDecoder
- (void)setSignalDecoder:(nonnull NSString *)signalDecoder
{
_signalDecoder = [signalDecoder copy];
OSAtomicIncrement32(&_signalDecoderGeneration);