- (void)dealloc {
if (self.field.pickList.isPopupButton) {
[self.currentCellView.popupButton unbind:@"selectedValue"];
[self.currentCellView.popupButton unbind:@"content"];
[self.currentCellView.popupButton unbind:@"contentValues"];
}
}
#0 0x00000001003c7496 in -[TFPickList awakeFromInitializer] at TFPickList.m:38
#1 0x0000000100c93861 in -[CBLModel initWithDocument:orDatabase:] at CBLModel.m:52
#2 0x0000000100c93d4b in +[CBLModel modelForDocument:] at CBLModel.m:86
#3 0x0000000100c96836 in -[CBLModel modelWithDocID:forProperty:ofClass:] at CBLModel.m:540
#4 0x0000000100ca0853 in -[CBLModel(Properties) getModelProperty:] at CBLModel+Properties.m:120
#5 0x00000001004074c9 in -[TextCellController dealloc] at TextCellController.m:329
TFPickList[pik-..f47a] deallocated with unsaved changes.
2016-03-27 12:44:01.499 Tap Forms[52964:1215713] properties to save: {
"_id" = "pik-439f938ddaf845568ee2b853493cf47a";
displayAs = single;
name = "New Pick List";
}
+ (Class)fieldsItemClass { return [TFField class]; }
+ (NSString *)fieldsInverseRelation { return @"pickList"; }
- (void)awakeFromInitializer {
[super awakeFromInitializer];
if (self.isNew) {
self.name = NSLocalizedString(@"New Pick List", @"");
self.displayAs = kTFSingleSelect;
}
}
On Mar 28, 2016, at 1:53 PM, Brendan Duddridge <bren...@gmail.com> wrote:
There should be no target object ID in this instance though and awakeFromInitializer is getting called only at the moment I'm checking the isPopupButton property.