From 25f4268b73d93af0eb30a38214ced39d034250ff Mon Sep 17 00:00:00 2001 From: mltownsend Date: Wed, 10 Feb 2010 05:54:30 +0000 Subject: Made it so that the host can't be null. Goes to '%' by default. --- Source/SPUserMO.m | 14 +++++++++++++- Source/SPUserManager.xcdatamodel/elements | Bin 127762 -> 127952 bytes Source/SPUserManager.xcdatamodel/layout | Bin 9663 -> 9663 bytes 3 files changed, 13 insertions(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/SPUserMO.m b/Source/SPUserMO.m index 061f4658..5c5bd40e 100644 --- a/Source/SPUserMO.m +++ b/Source/SPUserMO.m @@ -41,7 +41,19 @@ if ([self valueForKey:@"parent"] == nil) [self setValue:value forKey:@"user"]; else - [self setValue:value forKey:@"host"]; + { + if (value == nil) + { + [self setValue:@"%" forKey:@"host"]; + } + else + { + [self setValue:value forKey:@"host"]; + } + + + } + } - (void)addChildrenObject:(NSManagedObject *)value diff --git a/Source/SPUserManager.xcdatamodel/elements b/Source/SPUserManager.xcdatamodel/elements index 66ebccfc..06b2000e 100644 Binary files a/Source/SPUserManager.xcdatamodel/elements and b/Source/SPUserManager.xcdatamodel/elements differ diff --git a/Source/SPUserManager.xcdatamodel/layout b/Source/SPUserManager.xcdatamodel/layout index 44b16b93..4bc143ed 100644 Binary files a/Source/SPUserManager.xcdatamodel/layout and b/Source/SPUserManager.xcdatamodel/layout differ -- cgit v1.2.3