Skip to content

Commit 0ebc09f

Browse files
committed
Update OS X LKDBHelper Demo
1 parent 3c76d30 commit 0ebc09f

File tree

21 files changed

+112
-245
lines changed

21 files changed

+112
-245
lines changed

.DS_Store

0 Bytes
Binary file not shown.

LKDBHelper/Helper/.DS_Store

-5 KB
Binary file not shown.

LKDBHelper/Helper/LKDBHelper.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ - (NSMutableArray *)searchWithSQL:(NSString *)sqlString toClass:(Class)modelClas
925925
{
926926
sql = [sql stringByAppendingString:@" "];
927927
}
928-
if([sql componentsSeparatedByString:@" from "].count == 2 && [sql.lowercaseString containsString:@" join "] == NO)
928+
if([sql componentsSeparatedByString:@" from "].count == 2 && [sql containsString:@" join "] == NO)
929929
{
930930
sql = [sql stringByReplacingOccurrencesOfString:@" from " withString:[NSString stringWithFormat:@",%@.rowid from ",replaceString]];
931931
}

LKDBHelper/Helper/NSObject+LKModel.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ -(id)modelGetValue:(LKDBProperty *)property
199199
#else
200200
[value lockFocus];
201201
NSBitmapImageRep *srcImageRep = [NSBitmapImageRep imageRepWithData:[value TIFFRepresentation]];
202-
NSData* datas = [srcImageRep representationUsingType:NSJPEGFileType properties:nil];
202+
NSData* datas = [srcImageRep representationUsingType:NSJPEGFileType properties:@{}];
203203
[value unlockFocus];
204204
#endif
205205
[datas writeToFile:[self.class getDBImagePathWithName:filename] atomically:YES];

MAC-Demo/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

MAC-Demo/LKDB-Demo/LKDB-Demo.xcodeproj/project.pbxproj renamed to MAC-Demo/LKDB-Demo.xcodeproj/project.pbxproj

Lines changed: 110 additions & 239 deletions
Large diffs are not rendered by default.

MAC-Demo/LKDB-Demo/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

MAC-Demo/LKDB-Demo/LKDB-Demo.xcodeproj/project.xcworkspace/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

MAC-Demo/LKDB-Demo/LKDB-Demo.xcodeproj/xcuserdata/linyunfeng.xcuserdatad/xcdebugger/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)