{"id":78,"date":"2004-10-18T18:37:26","date_gmt":"2004-10-18T17:37:26","guid":{"rendered":"\/?p=78"},"modified":"2025-02-01T03:04:17","modified_gmt":"2025-02-01T03:04:17","slug":"sqleditor-cocoa-b11a","status":"publish","type":"post","link":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/2004\/10\/18\/sqleditor-cocoa-b11a\/","title":{"rendered":"SQLEditor Cocoa B11a"},"content":{"rendered":"<p>Unfortunately there was a crashing bug in SQLEditor beta 11 and I had to release b11a.<\/p>\n<p>It was one of these things were format strings caused the crash. I&#8217;d transposed two of the entries<\/p>\n<p>[NSString stringWithFormat:@&#8221; %@ %d&#8221;,aDecimal,aString]<\/p>\n<p>instead of <\/p>\n<p>[NSString stringWithFormat:@&#8221; %@ %d&#8221;, aString, aDecimal]<\/p>\n<p>and of course cocoa crashed, probably because it tried to send a message to the aDecimal variable.<\/p>\n<p>It&#8217;s unfortunate that this can&#8217;t be detected at compile time, because it&#8217;s really annoying and very easy to do.<\/p>\n<p>Possibly this could be caught in an exception handler of some kind though. I&#8217;ll have to do some more work on it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unfortunately there was a crashing bug in SQLEditor beta 11 and I had to release b11a. It was one of these things were format strings caused the crash. I&#8217;d transposed two of the entries [NSString stringWithFormat:@&#8221; %@ %d&#8221;,aDecimal,aString] instead of [NSString stringWithFormat:@&#8221; %@ %d&#8221;, aString, aDecimal] and of course cocoa crashed, probably because it tried [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,12],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-general","category-sqleditor"],"_links":{"self":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":1,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":1602,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts\/78\/revisions\/1602"}],"wp:attachment":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}