mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-26 09:29:45 +00:00
Switched to nicer nullable/nonnull syntax.
This commit is contained in:
parent
feeedbe33b
commit
96503a3ac5
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user