{"id":108,"date":"2005-12-29T15:26:40","date_gmt":"2005-12-29T19:26:40","guid":{"rendered":"http:\/\/www.dr-chuck.com\/wordpress\/?p=108"},"modified":"2011-12-17T12:18:26","modified_gmt":"2011-12-17T16:18:26","slug":"how-does-one-set-the-delegate-value-for-an-nsoutlineview-in-interface-builder-in-xcode-2","status":"publish","type":"post","link":"https:\/\/www.dr-chuck.com\/csev-blog\/2005\/12\/how-does-one-set-the-delegate-value-for-an-nsoutlineview-in-interface-builder-in-xcode-2\/","title":{"rendered":"How does one Set the delegate value for an NSOutlineView in Interface Builder in Xcode 2"},"content":{"rendered":"<p>Sometimes these implicit interfaces are just too obtuse.  I wasted a DAY figuring this out.<br \/>\nI needed to mark my class (SakaiDesktop) as a delegate for a NSOutlineView control on my window.  I knew that it had something to do with dragging.  The last step is what is missing.<br \/>\nPlace Mouse over the Outline Control on the Window<br \/>\nControl-Drag from the Window to the instance of SakaiDesktop and release<br \/>\nThe Inspector will switch to Outlets (this is what kept confusing me)<br \/>\nSwitch *back* to Actions in the Inspector &#8211; delegate and datasource will be there &#8211; click on the row for delegate and the instance willbe the designated delegate.<br \/>\nFunny how this did not work:<br \/>\n[myOutline setDelegate:self];<br \/>\nWhen I did it in init.<br \/>\nThe problem I had was without being set to the delegate, the<br \/>\n&#8211; (void)outlineViewSelectionDidChange:(NSNotification *)notification<br \/>\nNotifications were not being delivered.<br \/>\nIf the people who built NIB builder just made it so that picking a delegate used a drop down list instead of this multi-click gymnastics, I would be much happier.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes these implicit interfaces are just too obtuse. I wasted a DAY figuring this out. I needed to mark my class (SakaiDesktop) as a delegate for a NSOutlineView control on my window. I knew that it had something to do with dragging. The last step is what is missing. Place Mouse over the Outline Control [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":1,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"predecessor-version":[{"id":2180,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/108\/revisions\/2180"}],"wp:attachment":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}