Skip to content

Instantly share code, notes, and snippets.

@cdl
Created August 20, 2015 02:16
Show Gist options
  • Save cdl/59825c29bb5eddf32395 to your computer and use it in GitHub Desktop.
Save cdl/59825c29bb5eddf32395 to your computer and use it in GitHub Desktop.
//
// Account.h
// Recurring
//
// Created by Colby Ludwig on 2015-08-19.
// Copyright (c) 2015 Colby Ludwig. All rights reserved.
//
#import <Realm/Realm.h>
@class Bill;
@interface Account : RLMObject
@property NSString *name;
@property RLMArray<Bill *><Bill> *bills;
@end
// This protocol enables typed collections. i.e.:
// RLMArray<Account>
RLM_ARRAY_TYPE(Account)
//
// Bill.h
// Recurring
//
// Created by Colby Ludwig on 2015-08-19.
// Copyright (c) 2015 Colby Ludwig. All rights reserved.
//
#import <Realm/Realm.h>
@class Account;
@interface Bill : RLMObject
@property NSString *name;
@property NSDecimalNumber *cost;
@property NSDate *startDate;
@property NSCalendarUnit repeatUnit;
@property NSInteger repeatInterval;
@property Account *fromAccount;
@property NSDate *notificationDate;
@end
// This protocol enables typed collections. i.e.:
// RLMArray<Bill>
RLM_ARRAY_TYPE(Bill)
@cdl
Copy link
Author

cdl commented Aug 20, 2015

The build fails on L15 of Account.h.

Screenshot of build errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment