WWDC 2007 2008 2009 2010 2011 2012 2013 2014 2015
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
import MetalKit | |
// Self-contained MetalViewController based on https://metalbyexample.com/modern-metal-1/ | |
class MetalViewController: NSViewController { | |
var mtkView: MTKView! | |
var device: MTLDevice! | |
var commandQueue: MTLCommandQueue! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Logger.swift | |
// | |
// Created by Daniel Owsiański on 10/07/2022. | |
// | |
import Foundation | |
import os.log | |
/// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSApp+AppIconOverlay.swift | |
// | |
// Created by Daniel on 12/01/2023. | |
// | |
import AppKit | |
extension NSApplication { | |
/// Checks if the app is launched from Xcode with attached debugger. |
OlderNewer