diff --git a/native/MacTouchBar/src/Button.m b/native/MacTouchBar/src/Button.m index 9560bcb70f55..96c438f417f9 100644 --- a/native/MacTouchBar/src/Button.m +++ b/native/MacTouchBar/src/Button.m @@ -377,8 +377,8 @@ void updateButton( const char *raster4ByteRGBA, int w, int h, execute jaction ) { - NSCustomTouchBarItem *container = buttObj; // TODO: check types - NSButtonJAction *button = (container).view; // TODO: check types + NSCustomTouchBarItem *container = buttObj; + NSButtonJAction *button = (container).view; NSAutoreleasePool *edtPool = [NSAutoreleasePool new]; NSImage *img = createImgFrom4ByteRGBA((const unsigned char *) raster4ByteRGBA, w, h); @@ -401,8 +401,8 @@ void updateButton( // NOTE: now is called from AppKit-thread (creation when TB becomes visible), but can be called from EDT (when update UI) void setArrowImage(id buttObj, const char *raster4ByteRGBA, int w, int h) { - NSCustomTouchBarItem *container = buttObj; // TODO: check types - NSButtonJAction *button = (container).view; // TODO: check types + NSCustomTouchBarItem *container = buttObj; + NSButtonJAction *button = (container).view; NSAutoreleasePool *edtPool = [NSAutoreleasePool new]; NSImage *img = nil; diff --git a/native/MacTouchBar/src/Popover.m b/native/MacTouchBar/src/Popover.m index 977e6e39a440..4d8aac0b5868 100644 --- a/native/MacTouchBar/src/Popover.m +++ b/native/MacTouchBar/src/Popover.m @@ -27,7 +27,7 @@ id createPopover(const char * uid, int itemWidth, const char * text, const char // NOTE: called from EDT (when update UI) void updatePopover(id popoverObj, int itemWidth, const char * text, const char * raster4ByteRGBA, int w, int h, id tbObjExpand, id tbObjTapAndHold) { - NSPopoverTouchBarItem * popoverItem = popoverObj; // TODO: check types + NSPopoverTouchBarItem * popoverItem = popoverObj; nstrace(@"async update popover [%@] (thread: %@)", popoverItem.identifier, [NSThread currentThread]); NSAutoreleasePool * edtPool = [[NSAutoreleasePool alloc] init]; NSImage * img = createImgFrom4ByteRGBA((const unsigned char *)raster4ByteRGBA, w, h); diff --git a/native/MacTouchBar/src/TouchBar.m b/native/MacTouchBar/src/TouchBar.m index a49998b502c4..dc03cb2316f8 100644 --- a/native/MacTouchBar/src/TouchBar.m +++ b/native/MacTouchBar/src/TouchBar.m @@ -59,7 +59,7 @@ void selectItemsToShow(id touchBar, const char** ppIds, int count) { [all addObject:nsId]; } - TouchBar * tb = (TouchBar *)touchBar; // TODO: check types + TouchBar * tb = (TouchBar *)touchBar; dispatch_async(dispatch_get_main_queue(), ^{ [tb.touchBar setDefaultItemIdentifiers:all]; }); @@ -76,7 +76,7 @@ id createTouchBar(const char * name, createItem jcreator, const char * escId) { void setPrincipal(id tbobj, const char * uid) { NSAutoreleasePool * edtPool = [[NSAutoreleasePool alloc] init]; - TouchBar * tb = (TouchBar *)tbobj; // TODO: check types + TouchBar * tb = (TouchBar *)tbobj; [tb.touchBar setPrincipalItemIdentifier:createStringFromUTF8(uid)]; [edtPool release]; }