Skip to content

Instantly share code, notes, and snippets.

@jlnbuiles
Created April 4, 2017 22:24
Show Gist options
  • Save jlnbuiles/ce0648bb7ef3822f49d6f3d649d47e85 to your computer and use it in GitHub Desktop.
Save jlnbuiles/ce0648bb7ef3822f49d6f3d649d47e85 to your computer and use it in GitHub Desktop.
//
// ZLRealmWrapper.h
// zilly
//
// Created by Julian Builes on 4/3/17.
// Copyright © 2017 Zilly, Inc. All rights reserved.
//
#import <Realm/Realm.h>
#import "Alert.h"
@interface ZLSomeSubclass : Alert
@end
@implementation ZLSomeSubclass
@end
@interface ZLRealmWrapper : RLMObject
@property NSString *name;
@property Alert *genericClassVar;
@end
@implementation ZLRealmWrapper
+ (void)letest {
ZLRealmWrapper *wrapper = [[ZLRealmWrapper alloc] init];
wrapper.genericClassVar = [[ZLSomeSubclass alloc] init];
}
+ (void)load {
ZLog(@"we're here");
[ZLRealmWrapper letest];
ZLog(@"we're down here");
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment