{"id":45,"date":"2005-06-15T08:33:29","date_gmt":"2005-06-15T15:33:29","guid":{"rendered":"http:\/\/www.corbinstreehouse.com\/blog\/?p=45"},"modified":"2005-10-04T08:34:11","modified_gmt":"2005-10-04T15:34:11","slug":"changing-the-disclosure-triangle-in-an-nsoutlineview","status":"publish","type":"post","link":"https:\/\/www.corbinstreehouse.com\/blog\/2005\/06\/changing-the-disclosure-triangle-in-an-nsoutlineview\/","title":{"rendered":"Changing the disclosure triangle in an NSOutlineView"},"content":{"rendered":"<p id=\"top\" \/>\n<p>At WWDC I was asked how to remove the disclosure triangle in an NSOutlineView. Well, first things first. You can change it with this bit of code in your delegate:<\/p>\n<pre><tt>- (void)outlineView:(NSOutlineView *)ov\n  willDisplayOutlineCell:(NSButtonCell *)cell\n  forTableColumn:(NSTableColumn *)tableColumn\n  item:(id)item\n{\n  [cell setImage:[NSImage imageNamed:@\u00e2\u20ac\u0153collapsedglyph.tiff\u00e2\u20ac\u009d]];\n  [cell setAlternateImage:[NSImage imageNamed:@\u00e2\u20ac\u0153expandedglyph.tiff\u00e2\u20ac\u009d]];\n}<\/tt><\/pre>\n<p>If you want to set it to nil, you will have to create an image that is empty.<\/p>\n<p><span style=\"font-family:monospace;font-size:10pt;\">&#8211;corbin<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>At WWDC I was asked how to remove the disclosure triangle in an NSOutlineView. Well, first things first. You can change it with this bit of code in your delegate: &#8211; (void)outlineView:(NSOutlineView *)ov willDisplayOutlineCell:(NSButtonCell *)cell&#8230; <a class=\"read-more\" href=\"https:\/\/www.corbinstreehouse.com\/blog\/2005\/06\/changing-the-disclosure-triangle-in-an-nsoutlineview\/\">[read more]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4,6,1],"tags":[],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry","category-apple","category-cocoa","category-general"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":0,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}