{"id":184394,"date":"2013-06-30T15:33:03","date_gmt":"2013-06-30T11:33:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=184394"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=184394","title":{"rendered":"<span class=\"post_title\">\u0418\u0437\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043e\u0442 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 \u0432 Objective-C<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0432 \u043a\u043e\u0434\u0435 \u2014 \u0437\u043b\u043e. \u0421\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0432 \u043a\u043e\u0434\u0435 \u2014 \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0437\u043b\u043e.<br \/>  \u0418 \u0432\u0440\u043e\u0434\u0435 \u0431\u044b \u043e\u0442 \u043d\u0438\u0445 \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0434\u0435\u043d\u0435\u0448\u044c\u0441\u044f, \u043e\u043d\u0438 \u043f\u043e\u0432\u0441\u044e\u0434\u0443:<\/p>\n<p>  1) \u041f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438\u0437 xib-\u043e\u0432:  <\/p>\n<pre><code class=\"objectivec\">MyView* view = [[[NSBundle mainBundle] loadNibNamed:@&quot;MyView&quot; owner:self options:nil] lastObject];<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"objectivec\">MyViewController* controller = [MyViewController initWithNibName:@&quot;MyViewController&quot; bundle:nil];<\/code><\/pre>\n<p>  2) \u041f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 CoreData:  <\/p>\n<pre><code class=\"objectivec\">NSFetchRequest *request = [[NSFetchRequest alloc] init]; [request setEntity:[NSEntityDescription entityForName:@&quot;MyCoreDataClass&quot; inManagedObjectContext:moc]]; [request setSortDescriptors:@[ [[NSSortDescriptor alloc] initWithKey:@&quot;someProperty&quot; ascending:NO] ]];<\/code><\/pre>\n<p>  3) \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 KVO, \u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0438 \u0442\u0443\u0442:  <\/p>\n<pre><code class=\"objectivec\">[self addObserver:someObservedObject         forKeyPath:@&quot;someProperty&quot;           options:(NSKeyValueObservingOptionNew |  NSKeyValueObservingOptionOld)            context:nil];<\/code><\/pre>\n<p>  4) \u041d\u0443 \u0438 KVC:  <\/p>\n<pre><code class=\"objectivec\">NSInteger maxValue = [[arrayOfMyClassObjects valueForKeyPath:@&quot;@max.someProperty&quot;] intValue];<\/code><\/pre>\n<p>  5) \u041d\u043e \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 CoreData \u0432\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 SQLite \u043d\u0430\u043f\u0440\u0430\u044f\u043c\u0443\u044e, xib-\u0430\u043c\u0438 \u0432\u044b \u0431\u0440\u0435\u0437\u0433\u0443\u0435\u0442\u0435, \u0442\u043e \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u0432\u0430\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0437\u043d\u0430\u043a\u043e\u043c:  <\/p>\n<pre><code class=\"objectivec\">[self.tableView dequeueReusableCellWithIdentifier:@&quot;MyTableViewCell&quot;];<\/code><\/pre>\n<p>  6) \u041d\u0443 \u0438 \u043a\u043e\u0433\u0434\u0430 Apple \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b\u0430 \u043c\u0438\u0440\u0443 Storyboard \u2014 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0435\u0441\u043b\u0438-\u0431\u044b \u043d\u0435 \u043e\u0434\u043d\u043e \u043d\u043e:  <\/p>\n<pre><code class=\"objectivec\">[self performSegueWithIdentifier:@&quot;MySegue&quot; sender:nil]<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"objectivec\">-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:( id )sender {    if ( [segue.identifier isEqual:@&quot;MySegue&quot;] ); }<\/code><\/pre>\n<p>  \u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443? \u041e\u043d\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u0442\u0440\u043e\u043a, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 (\u0434\u0430 \u0438 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0437\u043d\u0430\u0442\u044c), \u0447\u0442\u043e \u0432 \u043d\u0438\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f. \u0418 \u0435\u0441\u043b\u0438 \u0432\u044b \u043e\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043f\u043e\u043b\u0435\u0439 \u0432 xcdatamodel \/ xib \/ storyboard \/ \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u0442\u0435 property, \u0442\u043e \u043e\u0448\u0438\u0431\u043a\u0430 \u0432\u044b\u043b\u0435\u0437\u0435\u0442 \u043d\u0435 \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438, \u0430 \u0432 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0435, \u0438 \u043e\u0442\u043b\u043e\u0432\u0438\u0442\u044c \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0435\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u043b\u044c\u0448\u0435 \u0438 \u0434\u043e\u0440\u043e\u0436\u0435.<br \/>  \u0422\u0430\u043a \u0447\u0442\u043e-\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c?<a name=\"habracut\"><\/a><br \/>  \u0421 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u043c\u0438 \u043c\u0435\u0440\u0430\u043c\u0438, \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u2014 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f.<\/p>\n<h5>\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438\u0437 xib-\u043e\u0432<\/h5>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u0447\u0442\u043e \u0438\u043c\u044f xib-\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442, \u0442\u043e \u043a\u043e\u0434 \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"objectivec\">MyView* view = [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([MyView class]) owner:self options:nil] lastObject];<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"objectivec\">MyViewController* controller = [MyViewController initWithNibName:NSStringFromClass([MyViewController class] bundle:nil];<\/code><\/pre>\n<p>  \u041f\u043b\u044e\u0441\u043e\u043c \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u043d\u0430\u0434\u0443\u043c\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448 \u043a\u043b\u0430\u0441\u0441 ( Xcode -&gt; Edit -&gt; Refactor -&gt; Rename \u043e\u0441\u0442\u0430\u0432\u0438\u0432 \u0433\u0430\u043b\u043e\u0447\u043a\u0443 \u00abRename related files\u00bb \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 ), \u0442\u043e \u0435\u0433\u043e \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0432\u0430\u043d\u0438\u0438 xib \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a-\u0436\u0435 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d, \u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0432\u044c\u044e\/\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043f\u043e\u0441\u0442\u0440\u0430\u0434\u0430\u0435\u0442.<\/p>\n<h5>CoreData<\/h5>\n<p>  \u0421 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c 2 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0447\u0443\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0438 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u0435\u0435.<br \/>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f <a href=\"https:\/\/github.com\/magicalpanda\/MagicalRecord\">MagicalRecord <\/a> \u0438 <a href=\"http:\/\/rentzsch.github.io\/mogenerator\/\">mogenerator<\/a><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 CoreData \u0438 \u0432\u0441\u0435 \u0435\u0449\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u044d\u0442\u0438 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u043c\u0435\u043d\u0442\u044b, \u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0447\u0430\u0442\u044c.<br \/>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c MagicalRecord \u0432 \u043d\u0430\u0448 podfile (\u043d\u0443 \u0438\u043b\u0438 \u043f\u043e \u0441\u0442\u0430\u0440\u0438\u043d\u043a\u0435 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0432 \u0444\u0430\u0439\u043b\u044b \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u2014 \u0437\u0430 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u0432 \u0433\u0438\u0445\u0430\u0431)  <\/p>\n<pre><code class=\"bash\">pod MagicalRecord<\/code><\/pre>\n<p>  \u0418 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c mogenerator:  <\/p>\n<pre><code class=\"bash\">brew install mogenerator<\/code><\/pre>\n<p>  \u0418\u043b\u0438 \u0441\u043a\u0430\u0447\u0430\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a \u0441 \u0441\u0430\u0439\u0442\u0430 \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0435\u0433\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e.<\/p>\n<p>  mogenerator \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0444\u0430\u0439\u043b\u0430 \u043c\u043e\u0434\u0435\u043b\u0438 CoreData \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043d\u0430\u0447\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0443\u043a\u0430\u043c\u0438.<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435.<br \/>  Project -&gt; Targets -&gt; Add Build Phase -&gt; Add Run Script:<br \/>  \u0418\u0434\u0435\u043c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0442\u0430\u0440\u0433\u0435\u0442\u0430, \u0432 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0443 Build Phases \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0444\u0430\u0437\u0443 \u0432 \u0432\u0438\u0434\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430:<br \/>  <img decoding=\"async\" src=\"http:\/\/leprastuff.ru\/data\/img\/20130624\/a26e0383d2914c077931bd65a930dd02.png\" alt=\"image\"\/><br \/>  \u041d\u0443 \u0438 \u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442:<br \/>  <img decoding=\"async\" src=\"http:\/\/leprastuff.ru\/data\/img\/20130624\/956b59962fe1aef1f69ef4d98382f558.png\" alt=\"image\"\/><br \/>  \u041d\u0430 \u043e\u0434\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u0441 \u043d\u0430\u0448\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u044c\u044e \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u0432\u0435 \u043f\u0430\u043f\u043a\u0438 Human \u0438 Machine. \u0416\u043c\u0435\u043c CMD+B \u2014 \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u044d\u0442\u0438 \u0434\u0432\u0435 \u043f\u0430\u043f\u043a\u0438 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442. \u041e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u0441\u0435\u0431\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043c\u043e\u0434\u0435\u043b\u0438 \u0438\u0437 CoreData. <\/p>\n<h5>KVO \u0438 KVC<\/h5>\n<p>  \u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u0432\u0435\u0449\u044c \u0432 Objective-C, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u2014 KeyPath \u0434\u043b\u044f KVO \u0438 KVC. \u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044b\u0439 \u0432\u044b\u0448\u0435 mogenerator. \u0415\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 \u0432 \u043c\u043e\u0434\u0435\u043b\u0438 \u0435\u0441\u0442\u044c \u043a\u043b\u0430\u0441\u0441 MyCoreDataClass, \u0442\u043e mogenerator \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b MyCoreDataClassAttributes, MyCoreDataClassRelationships \u0438 MyCoreDataClassFetchedProperties. \u0422\u0430\u043a \u0447\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440 \u2116 2 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"objectivec\">NSArray* arr = [MyCoreDataClass MR_findAllSortedBy:MyCoreDataClassAttributes.someProperty ascending:NO inContext:moc];<\/code><\/pre>\n<p>  \u0410 \u043f\u0440\u0438\u043c\u0435\u0440 \u2116 3 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"objectivec\">[self addObserver:myCoreDataClass        forKeyPath:MyCoreDataClassAttributes.someProperty           options:(NSKeyValueObservingOptionNew |  NSKeyValueObservingOptionOld)            context:nil];<\/code><\/pre>\n<p>  \u041d\u043e \u0442\u0430\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f CoreData. \u041d\u0430\u043c \u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u043e\u0431\u0449\u0435\u0435. <\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <a href=\"https:\/\/github.com\/iMartinKiss\/Valid-KeyPath\">Valid-KeyPath<\/a>:  <\/p>\n<pre><code class=\"objectivec\">#import &quot;EXTKeyPathCoding.h&quot;  [self addObserver:myClass        forKeyPath:KEY.__(MyClass, someProperty)           options:(NSKeyValueObservingOptionNew |  NSKeyValueObservingOptionOld)            context:nil];<\/code><\/pre>\n<p>  \u041b\u0438\u0431\u043e <a href=\"https:\/\/github.com\/jspahrsummers\/libextobjc\/blob\/master\/extobjc\/EXTKeyPathCoding.h\">EXTKeyPathCoding<\/a> \u0431\u0438\u0431\u043b\u043e\u0442\u0435\u043a\u0438 <a href=\"https:\/\/github.com\/jspahrsummers\/libextobjc\">libextobjc<\/a>:  <\/p>\n<pre><code class=\"bash\">pod libextobjc<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"objectivec\">#import &quot;MTKValidKeyPath.h&quot;  [self addObserver:myClass        forKeyPath:@keypath(MyClass.new, someProperty)           options:(NSKeyValueObservingOptionNew |  NSKeyValueObservingOptionOld)            context:nil];<\/code><\/pre>\n<p>  \u041f\u043b\u044e\u0441\u0430\u043c\u0438 \u043e\u0431\u043e\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 autocompletion \u0438\u0437 IDE \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0430\u043c\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441\u0430\u043c\u043e\u0433\u043e KeyPath \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 KVC, \u043a\u0430\u043a \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 4, \u0442\u043e \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 KeyPath \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043b\u044e\u0431\u043e\u0439 \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0432\u044b\u0448\u0435, \u0430 \u043c\u043e\u0436\u0435\u0442\u0435 \u2014 \u043b\u044e\u0431\u043e\u0439 \u0438\u0437 LINQ-like \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0434\u043b\u044f Objective-C, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <a href=\"https:\/\/github.com\/ColinEberhardt\/LinqToObjectiveC\">LinqToObjectiveC<\/a>  <\/p>\n<pre><code class=\"bash\">pod LinqToObjectiveC<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"objectivec\">NSInteger maxValue = [arrayOfMyClassObjects aggregate:^(MyClass* myClass, NSInteger aggregate){    return MAX( [myClass.someProperty intValue],  aggregate); }];<\/code><\/pre>\n<h5>Storyboard<\/h5>\n<p>  \u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f UI \u0447\u0430\u0441\u0442\u0438, \u0442\u043e \u0442\u0443\u0442 \u043d\u0430\u043c \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0443\u0442\u0438\u043b\u0438\u0442\u0430 <a href=\"https:\/\/bitbucket.org\/nut_code_monkey\/ssgenerator\">ssgenerator<\/a> <a href=\"https:\/\/bitbucket.org\/nut_code_monkey\/ssgenerator\/downloads\/ssgenerator.pkg\">\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0435\u0435 \u043e\u0442\u0441\u044e\u0434\u0430<\/a><br \/>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0435 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/44a\/f5b\/c6a\/44af5bc6a8b39ae4e4682ffff91fb3dc.png\" alt=\"image\"\/><br \/>  \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b StoryboardSegue.h \u0438 StoryboardSegue.m. \u0412 \u044d\u0442\u0438\u0445 \u0444\u0430\u0439\u043b\u0430\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u0441\u044f \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0434\u043b\u044f \u0442\u0435\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0432 \u0441\u0442\u043e\u0440\u0438\u0431\u043e\u0440\u0434\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0432 \u0441\u0435\u0431\u0435 UIStoryboardSegue \u0438\u043b\u0438 UITableViewCell, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c:  <\/p>\n<pre><code class=\"objectivec\">[self.tableView dequeueReusableCellWithIdentifier:self.cells.MyTableViewCell];<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"objectivec\">[self performSegueWithIdentifier:self.segue.MySegue sender:nil]<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"objectivec\">-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:( id )sender {    if ( [segue.identifier isEqual:self.segue.MySegue] ); }<\/code><\/pre>\n<h4>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0418\u0437\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0442 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 \u0432 \u043a\u043e\u0434\u0435 \u2014 \u043d\u0435 \u0441\u0430\u043c\u043e\u0446\u0435\u043b\u044c, \u0430 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043d\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 \u043a\u043e\u0434\u0430 \u0437\u0430 \u0441\u0447\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \u0427\u0430\u0441\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0443\u0442\u0438\u043b\u0438\u0442, \u0447\u0430\u0441\u0442\u044c \u2014 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u0414\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u0438\u043a\u0438 \u043f\u043e\u043a\u0430\u0436\u0443\u0442\u0441\u044f \u00ab\u0441\u043b\u043e\u0436\u043d\u044b\u043c\u0438\u00bb \u0438 \u00ab\u043f\u043b\u043e\u0445\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c\u0438\u00bb, \u043d\u043e \u0432\u0441\u0435 \u043e\u043d\u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u043d\u043d\u0435\u0435 \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u043a\u043e\u0434\u0435. \u0422\u0430\u043a \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u043a\u043e\u0434, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0435\u0442 \u043e\u0448\u0438\u0431\u043e\u043a \u2014 \u044d\u0442\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u043d\u0435 \u0434\u043b\u044f \u0432\u0430\u0441.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0442\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u043b\u0438\u0447\u043d\u043e \u0432\u0430\u043c \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 \u0432 \u043a\u043e\u0434\u0435 \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043a\u0438\u043c \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u043c \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u044f \u0441 \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u0438\u0445 \u0432 \u044d\u0442\u043e\u0442 \u043e\u0431\u0437\u043e\u0440.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/184394\/\"> http:\/\/habrahabr.ru\/post\/184394\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0432 \u043a\u043e\u0434\u0435 \u2014 \u0437\u043b\u043e. \u0421\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0432 \u043a\u043e\u0434\u0435 \u2014 \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0437\u043b\u043e.<br \/>  \u0418 \u0432\u0440\u043e\u0434\u0435 \u0431\u044b \u043e\u0442 \u043d\u0438\u0445 \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0434\u0435\u043d\u0435\u0448\u044c\u0441\u044f, \u043e\u043d\u0438 \u043f\u043e\u0432\u0441\u044e\u0434\u0443:<\/p>\n<p>  1) \u041f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438\u0437 xib-\u043e\u0432:  <\/p>\n<pre><code class=\"objectivec\">MyView* view = [[[NSBundle mainBundle] loadNibNamed:@&quot;MyView&quot; owner:self options:nil] lastObject];<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"objectivec\">MyViewController* controller = [MyViewController initWithNibName:@&quot;MyViewController&quot; bundle:nil];<\/code><\/pre>\n<p>  2) \u041f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 CoreData:  <\/p>\n<pre><code class=\"objectivec\">NSFetchRequest *request = [[NSFetchRequest alloc] init]; [request setEntity:[NSEntityDescription entityForName:@&quot;MyCoreDataClass&quot; inManagedObjectContext:moc]]; [request setSortDescriptors:@[ [[NSSortDescriptor alloc] initWithKey:@&quot;someProperty&quot; ascending:NO] ]];<\/code><\/pre>\n<p>  3) \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 KVO, \u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0438 \u0442\u0443\u0442:  <\/p>\n<pre><code class=\"objectivec\">[self addObserver:someObservedObject         forKeyPath:@&quot;someProperty&quot;           options:(NSKeyValueObservingOptionNew |  NSKeyValueObservingOptionOld)            context:nil];<\/code><\/pre>\n<p>  4) \u041d\u0443 \u0438 KVC:  <\/p>\n<pre><code class=\"objectivec\">NSInteger maxValue = [[arrayOfMyClassObjects valueForKeyPath:@&quot;@max.someProperty&quot;] intValue];<\/code><\/pre>\n<p>  5) \u041d\u043e \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 CoreData \u0432\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 SQLite \u043d\u0430\u043f\u0440\u0430\u044f\u043c\u0443\u044e, xib-\u0430\u043c\u0438 \u0432\u044b \u0431\u0440\u0435\u0437\u0433\u0443\u0435\u0442\u0435, \u0442\u043e \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u0432\u0430\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0437\u043d\u0430\u043a\u043e\u043c:  <\/p>\n<pre><code class=\"objectivec\">[self.tableView dequeueReusableCellWithIdentifier:@&quot;MyTableViewCell&quot;];<\/code><\/pre>\n<p>  6) \u041d\u0443 \u0438 \u043a\u043e\u0433\u0434\u0430 Apple \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b\u0430 \u043c\u0438\u0440\u0443 Storyboard \u2014 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0435\u0441\u043b\u0438-\u0431\u044b \u043d\u0435 \u043e\u0434\u043d\u043e \u043d\u043e:  <\/p>\n<pre><code class=\"objectivec\">[self performSegueWithIdentifier:@&quot;MySegue&quot; sender:nil]<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"objectivec\">-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:( id )sender {    if ( [segue.identifier isEqual:@&quot;MySegue&quot;] ); }<\/code><\/pre>\n<p>  \u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443? \u041e\u043d\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u0442\u0440\u043e\u043a, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 (\u0434\u0430 \u0438 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0437\u043d\u0430\u0442\u044c), \u0447\u0442\u043e \u0432 \u043d\u0438\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f. \u0418 \u0435\u0441\u043b\u0438 \u0432\u044b \u043e\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043f\u043e\u043b\u0435\u0439 \u0432 xcdatamodel \/ xib \/ storyboard \/ \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u0442\u0435 property, \u0442\u043e \u043e\u0448\u0438\u0431\u043a\u0430 \u0432\u044b\u043b\u0435\u0437\u0435\u0442 \u043d\u0435 \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438, \u0430 \u0432 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0435, \u0438 \u043e\u0442\u043b\u043e\u0432\u0438\u0442\u044c \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0435\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u043b\u044c\u0448\u0435 \u0438 \u0434\u043e\u0440\u043e\u0436\u0435.<br \/>  \u0422\u0430\u043a \u0447\u0442\u043e-\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-184394","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/184394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=184394"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/184394\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=184394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=184394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=184394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}