mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-28 04:11:18 +01:00
added ObjectSnapshot as foundation for datasources API
This commit is contained in:
@@ -27,15 +27,6 @@ import Foundation
|
||||
|
||||
// MARK: Associated Objects
|
||||
|
||||
@inline(__always)
|
||||
/// type(of:) doesn't return the dynamic type anymore, use this to guarantee correct dispatch of class methods
|
||||
internal func cs_dynamicType<T: AnyObject>(of instance: T) -> T.Type {
|
||||
|
||||
return object_getClass(instance) as! T.Type
|
||||
}
|
||||
|
||||
// MARK: Associated Objects
|
||||
|
||||
@inline(__always)
|
||||
internal func cs_getAssociatedObjectForKey<T: AnyObject>(_ key: UnsafeRawPointer, inObject object: Any) -> T? {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user