8 changed files with 120 additions and 10 deletions
-
10hints.md
-
16kplayer.xcodeproj/project.pbxproj
-
16kplayer/core/Cached+CoreDataClass.swift
-
31kplayer/core/Cached+CoreDataProperties.swift
-
10kplayer/core/KTag+CoreDataProperties.swift
-
2kplayer/kplayer.xcdatamodeld/.xccurrentversion
-
42kplayer/kplayer.xcdatamodeld/kplayer 4.xcdatamodel/contents
-
3kplayer/video/SEmbeddedVideo.swift
@ -0,0 +1,10 @@ |
|||
https://www.informit.com/articles/article.aspx?p=2469048 |
|||
|
|||
1. Select kplayer.xcdatamodel |
|||
|
|||
2. Click Editor > Add Model Version.... |
|||
|
|||
3. Click Finish to accept Model 2 as the version name. |
|||
|
|||
|
|||
Codegen ausschalten |
|||
@ -0,0 +1,16 @@ |
|||
// |
|||
// Cached+CoreDataClass.swift |
|||
// kplayer |
|||
// |
|||
// Created by Marco Schmickler on 11.11.22. |
|||
// Copyright © 2022 Marco Schmickler. All rights reserved. |
|||
// |
|||
// |
|||
|
|||
import Foundation |
|||
import CoreData |
|||
|
|||
@objc(Cached) |
|||
public class Cached: NSManagedObject { |
|||
|
|||
} |
|||
@ -0,0 +1,31 @@ |
|||
// |
|||
// Cached+CoreDataProperties.swift |
|||
// kplayer |
|||
// |
|||
// Created by Marco Schmickler on 11.11.22. |
|||
// Copyright © 2022 Marco Schmickler. All rights reserved. |
|||
// |
|||
// |
|||
|
|||
import Foundation |
|||
import CoreData |
|||
|
|||
|
|||
extension Cached { |
|||
|
|||
@nonobjc public class func fetchRequest() -> NSFetchRequest<Cached> { |
|||
return NSFetchRequest<Cached>(entityName: "Cached") |
|||
} |
|||
|
|||
@NSManaged public var url: String? |
|||
@NSManaged public var cached: String? |
|||
@NSManaged public var used: Date? |
|||
@NSManaged public var times: Int16 |
|||
@NSManaged public var preferred: Int16 |
|||
@NSManaged public var options: String? |
|||
|
|||
} |
|||
|
|||
extension Cached : Identifiable { |
|||
|
|||
} |
|||
@ -0,0 +1,42 @@ |
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
|||
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="21512" systemVersion="21G217" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier=""> |
|||
<entity name="Cached" representedClassName=".Cached" syncable="YES"> |
|||
<attribute name="cached" optional="YES" attributeType="String"/> |
|||
<attribute name="options" optional="YES" attributeType="String"/> |
|||
<attribute name="preferred" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/> |
|||
<attribute name="times" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/> |
|||
<attribute name="url" optional="YES" attributeType="String"/> |
|||
<attribute name="used" optional="YES" attributeType="Date" usesScalarValueType="NO"/> |
|||
</entity> |
|||
<entity name="KItem" representedClassName=".KItem" syncable="YES"> |
|||
<attribute name="favorite" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/> |
|||
<attribute name="local" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/> |
|||
<attribute name="name" optional="YES" attributeType="String"/> |
|||
<attribute name="path" optional="YES" attributeType="String"/> |
|||
<attribute name="root" optional="YES" attributeType="String"/> |
|||
<attribute name="type" optional="YES" attributeType="String"/> |
|||
<relationship name="snapshots" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="KSnapshot" inverseName="item" inverseEntity="KSnapshot"/> |
|||
</entity> |
|||
<entity name="KSnapshot" representedClassName=".KSnapshot" syncable="YES"> |
|||
<attribute name="index" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/> |
|||
<attribute name="length" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/> |
|||
<attribute name="loop" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/> |
|||
<attribute name="offx" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/> |
|||
<attribute name="offy" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/> |
|||
<attribute name="options" optional="YES" attributeType="String"/> |
|||
<attribute name="rating" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/> |
|||
<attribute name="scale" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/> |
|||
<attribute name="sizex" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/> |
|||
<attribute name="sizey" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/> |
|||
<attribute name="thumb" optional="YES" attributeType="String"/> |
|||
<attribute name="time" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/> |
|||
<attribute name="timeStamp" optional="YES" attributeType="Date"/> |
|||
<relationship name="item" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="KItem" inverseName="snapshots" inverseEntity="KItem"/> |
|||
<relationship name="tags" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="KTag" inverseName="tagged" inverseEntity="KTag"/> |
|||
</entity> |
|||
<entity name="KTag" representedClassName=".KTag" syncable="YES"> |
|||
<attribute name="name" optional="YES" attributeType="String"/> |
|||
<attribute name="path" optional="YES" attributeType="String"/> |
|||
<relationship name="tagged" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="KSnapshot" inverseName="tags" inverseEntity="KSnapshot"/> |
|||
</entity> |
|||
</model> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue