{"id":567,"date":"2013-10-22T11:10:47","date_gmt":"2013-10-22T02:10:47","guid":{"rendered":"http:\/\/yshobby.asia\/jp\/?p=567"},"modified":"2013-10-22T11:10:47","modified_gmt":"2013-10-22T02:10:47","slug":"ios%e3%81%a7sqlite3%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95%e3%80%80tssqlite","status":"publish","type":"post","link":"https:\/\/enjoyahobby.com\/jp\/archives\/567","title":{"rendered":"iOS\u3067SQLite3\u3092\u4f7f\u3046\u65b9\u6cd5\u3000TSSqlite"},"content":{"rendered":"<p>\u3053\u306e\u65b9\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u500b\u4eba\u7684\u306b\u306f\u4f7f\u3044\u3084\u3059\u304b\u3063\u305f\u306e\u3067\u7d39\u4ecb\u3002<br \/>\n\u30e9\u30a4\u30bb\u30f3\u30b9\u306fMIT\u3002<br \/>\n\u30bd\u30fc\u30b9\u516c\u958b\u306a\u306e\u3067\u4f55\u304b\u3042\u3063\u3066\u3082\u81ea\u5206\u3067\u306a\u3093\u3068\u304b\u3067\u304d\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3002<br \/>\n\u7d20\u6575\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/wiki.9wick.com\/tssqlite\/start\" target=\"_blank\">TSSqlite[9wick Documents]<\/a><\/p>\n<p>\u4ee5\u524d\u306f\u3053\u3053\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u30b5\u30f3\u30d7\u30eb\u901a\u308a\u3067\u52d5\u3044\u305f\u306e\u3067\u3059\u304c\u73fe\u5728\u306f\u52d5\u304d\u307e\u305b\u3093\u3002<br \/>\n\u539f\u56e0\u306fKey-Value Coding (KVC)\u304c\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u305f\u3081\u3002<br \/>\n\u63a2\u3057\u65b9\u304c\u60aa\u3044\u3089\u3057\u304f\u89e3\u6c7a\u7b56\u3092\u898b\u3064\u3051\u3089\u308c\u306a\u304b\u3063\u305f\u306e\u3067\u5c11\u3057\u7279\u6b8a\u306a\u65b9\u6cd5\u3067\u89e3\u6c7a\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3082\u3063\u3068\u3044\u3044\u65b9\u6cd5\u304c\u3042\u308b\u3088\u3063\u3066\u65b9\u306f\u304a\u6559\u3048\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u554f\u984c\u306f\u30e2\u30c7\u30eb\u30af\u30e9\u30b9\u306e\u4f5c\u308a\u65b9\u3067\u3059\u3002<br \/>\n\u30b5\u30f3\u30d7\u30eb\u3067\u306f<br \/>\n#import \uff1cFoundation\/Foundation.h\uff1e<br \/>\n#import &#8220;TSSqlite.h&#8221;<br \/>\n@interface AppBook : TSModel<br \/>\n@property (retain,nonatomic) NSNumber *indexNo;<br \/>\n@property (retain,nonatomic) NSString *name;<br \/>\n@property (retain,nonatomic) NSString *author;<br \/>\n@property (retain,nonatomic) NSNumber *year;<br \/>\n@end<\/p>\n<p>#import &#8220;AppBook.h&#8221;<br \/>\n@implementation AppBook<br \/>\n@dynamic indexNo;<br \/>\n@dynamic name;<br \/>\n@dynamic author;<br \/>\n@dynamic year;<br \/>\n@end<\/p>\n<p>\u3053\u306e\u69d8\u306b\u5b9a\u7fa9\u3059\u308b\u306e\u3067\u3059\u304c\u3053\u306e\u307e\u307e\u3060\u3068<br \/>\nAppBook *appBook;<br \/>\nNSLog(@&#8221;index=%i&#8221;, appBook.indexNo);<br \/>\n\u306e\u3088\u3046\u306b\u53c2\u7167\u3059\u308b\u3068KVC\u304c\u50cd\u304b\u305a\u3001@dynamic indexNo;\u3067\u4f5c\u3089\u308c\u305f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8868\u793a\u3057\u3066\u3057\u307e\u3044\u3044\u3064\u3082\uff10\u3084null\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u6b21\u306e\u69d8\u306b\u7d99\u627f\u5b9a\u7fa9\u3059\u308b\u3068\u4e00\u5fdc\u4f7f\u3048\u308b\u69d8\u306b\u306a\u308b\u306e\u3067\u3053\u308c\u3067\u3054\u307e\u304b\u3057\u3066\u3044\u307e\u3059w<\/p>\n<p>#import \uff1cFoundation\/Foundation.h\uff1e<br \/>\n#import &#8220;TSSqlite.h&#8221;<br \/>\n@interface OrgAppBook : TSModel<br \/>\n@property (retain,nonatomic) NSNumber *indexNo;<br \/>\n@property (retain,nonatomic) NSString *name;<br \/>\n@property (retain,nonatomic) NSString *author;<br \/>\n@property (retain,nonatomic) NSNumber *year;<br \/>\n@end<\/p>\n<p>#import &#8220;OrgAppBook.h&#8221;<br \/>\n@implementation OrgAppBook<br \/>\n@dynamic indexNo;<br \/>\n@dynamic name;<br \/>\n@dynamic author;<br \/>\n@dynamic year;<br \/>\n@end<\/p>\n<p>#import &#8220;OrgAppBook.h&#8221;<br \/>\n@interface AppBook : OrgAppBook<br \/>\n@end<\/p>\n<p>#import &#8220;AppBook.h&#8221;<br \/>\n@implementation AppBook<br \/>\n@end<\/p>\n<p>\u96e3\u3057\u3044\u5b9a\u7fa9\u306b\u306f\u5411\u304b\u306a\u3044\u3051\u3069CoreData\u3092\u4f7f\u3046\u307b\u3069\u3067\u306f\u306a\u3044\u5834\u5408\u306b\u6709\u52b9\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u65b9\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u500b\u4eba\u7684\u306b\u306f\u4f7f\u3044\u3084\u3059\u304b\u3063\u305f\u306e\u3067\u7d39\u4ecb\u3002 \u30e9\u30a4\u30bb\u30f3\u30b9\u306fMIT\u3002 \u30bd\u30fc\u30b9\u516c\u958b\u306a\u306e\u3067\u4f55\u304b\u3042\u3063\u3066\u3082\u81ea\u5206\u3067\u306a\u3093\u3068\u304b\u3067\u304d\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3002 \u7d20\u6575\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002 TSSqlite[9wick Doc [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-567","post","type-post","status-publish","format-standard","hentry","category-iphone-dev"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/enjoyahobby.com\/jp\/wp-json\/wp\/v2\/posts\/567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enjoyahobby.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enjoyahobby.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enjoyahobby.com\/jp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/enjoyahobby.com\/jp\/wp-json\/wp\/v2\/comments?post=567"}],"version-history":[{"count":2,"href":"https:\/\/enjoyahobby.com\/jp\/wp-json\/wp\/v2\/posts\/567\/revisions"}],"predecessor-version":[{"id":569,"href":"https:\/\/enjoyahobby.com\/jp\/wp-json\/wp\/v2\/posts\/567\/revisions\/569"}],"wp:attachment":[{"href":"https:\/\/enjoyahobby.com\/jp\/wp-json\/wp\/v2\/media?parent=567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enjoyahobby.com\/jp\/wp-json\/wp\/v2\/categories?post=567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enjoyahobby.com\/jp\/wp-json\/wp\/v2\/tags?post=567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}