This file contains hidden or 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 | |
final class Reader { | |
let fileUrl: URL | |
var data: Data? | |
init(filePath: String) { | |
fileUrl = URL(fileURLWithPath: filePath) | |
} |
This file contains hidden or 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 | |
/// ファイルを指定されたバイト数分ずつ読み込む | |
final class StreamReader: NSObject, StreamDelegate { | |
let maxLength: Int | |
let inputStream: InputStream? | |
var readedAction: (Versions) -> Void = { _ in } | |
var createVersion = "" | |
var saveVersion = "" |
This file contains hidden or 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 UIKit | |
final class SampleOperation: Operation { | |
let message: String | |
init(message: String) { | |
self.message = message | |
} | |
override func main() { |
This file contains hidden or 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
//@targetEngine "fooo" | |
(function () { | |
main(); | |
})(); | |
function main() { | |
var controls = {}; | |
var dialog = new Window("dialog"); |
This file contains hidden or 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
# 任意のProduct Nameに置き換える(Targetも同様) | |
name: FooProduct | |
options: | |
bundleIdPrefix: com.example | |
deploymentTarget: | |
iOS: 15.0 | |
xcodeVersion: "13.1" | |
settings: |
This file contains hidden or 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
// Cursor版 | |
// | |
// 「メソッド「add」のパラメーター「documentPreset」の値が無効です。予想される値は DocumentPreset ですが、値 PORTRAIT を受け取りました。」 | |
// というエラーで動かない。 | |
// エラーメッセージを渡して修正を依頼しても見当違いな修正を行い、何回か試したが結局動かないまま | |
// 以下、生成されたコード | |
// InDesign用 カスタム新規ドキュメント作成スクリプト | |
// 詳細な設定で新規ドキュメントを作成するスクリプト |
OlderNewer