{"id":6017,"date":"2012-09-20T15:49:34","date_gmt":"2012-09-20T20:49:34","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=6017"},"modified":"2012-09-20T15:49:37","modified_gmt":"2012-09-20T20:49:37","slug":"scnmaterialproperty-contents","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/09\/20\/scnmaterialproperty-contents\/","title":{"rendered":"SCNMaterialProperty.contents"},"content":{"rendered":"<p><a href=\"http:\/\/www.notesfromandy.com\/2012\/09\/16\/disparate-types-for-the-same-value\/\">Andy Lee<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.notesfromandy.com\/2012\/09\/16\/disparate-types-for-the-same-value\/\"><p>I wonder if this property sets a record for the greatest number of disparate, specific types a value is allowed to have in Cocoa. I'm talking about formal Objective-C types, disregarding semantics.<\/p><\/blockquote>\n<p>It <a href=\"https:\/\/developer.apple.com\/library\/mac\/documentation\/SceneKit\/Reference\/SCNMaterialProperty_Class\/Reference\/SCNMaterialProperty.html#\/\/apple_ref\/occ\/instp\/SCNMaterialProperty\/contents\">can be<\/a> an an <code>NSColor<\/code>, an <code>NSImage<\/code>, a <code>CALayer<\/code>, a <code>CGColorRef<\/code>, <code>CGImageRef<\/code>, or an <code>NSArray<\/code> of six images.\n<\/p>","protected":false},"excerpt":{"rendered":"<p>Andy Lee: I wonder if this property sets a record for the greatest number of disparate, specific types a value is allowed to have in Cocoa. I'm talking about formal Objective-C types, disregarding semantics. It can be an an NSColor, an NSImage, a CALayer, a CGColorRef, CGImageRef, or an NSArray of six images.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[69,71,18],"class_list":["post-6017","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-programming","tag-scenekit"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=6017"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6017\/revisions"}],"predecessor-version":[{"id":6019,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6017\/revisions\/6019"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=6017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=6017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=6017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}