{"action":"created","issue":{"url":"https://api.github.com/repos/hbang/libcephei/issues/24","repository_url":"https://api.github.com/repos/hbang/libcephei","labels_url":"https://api.github.com/repos/hbang/libcephei/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/hbang/libcephei/issues/24/comments","events_url":"https://api.github.com/repos/hbang/libcephei/issues/24/events","html_url":"https://github.com/hbang/libcephei/issues/24","id":221935997,"number":24,"title":"Using `condensed` in HBPackageNameHeaderCell crashes Preferences.app","user":{"login":"Nosskirneh","id":16581727,"avatar_url":"https://avatars0.githubusercontent.com/u/16581727?v=3","gravatar_id":"","url":"https://api.github.com/users/Nosskirneh","html_url":"https://github.com/Nosskirneh","followers_url":"https://api.github.com/users/Nosskirneh/followers","following_url":"https://api.github.com/users/Nosskirneh/following{/other_user}","gists_url":"https://api.github.com/users/Nosskirneh/gists{/gist_id}","starred_url":"https://api.github.com/users/Nosskirneh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nosskirneh/subscriptions","organizations_url":"https://api.github.com/users/Nosskirneh/orgs","repos_url":"https://api.github.com/users/Nosskirneh/repos","events_url":"https://api.github.com/users/Nosskirneh/events{/privacy}","received_events_url":"https://api.github.com/users/Nosskirneh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-04-15T08:41:41Z","updated_at":"2017-04-18T03:26:30Z","closed_at":null,"body":"Just copied this directly from TypeStatus github to try it out:\r\n```\r\n        <dict>\r\n            <key>cell</key>\r\n            <string>PSGroupCell</string>\r\n            <key>condensed</key>\r\n            <true/>\r\n            <key>headerCellClass</key>\r\n            <string>HBPackageNameHeaderCell</string>\r\n            <key>icon</key>\r\n            <string>icon.png</string>\r\n            <key>packageIdentifier</key>\r\n            <string>ws.hbang.typestatus2</string>\r\n            <key>packageNameOverride</key>\r\n            <string>TypeStatus</string>\r\n        </dict>\r\n```\r\nand it crashes when trying to load my bundle.\r\n\r\nRemoving\r\n```\r\n            <key>condensed</key>\r\n            <true/>\r\n```\r\nresolves the issue, but why?\r\n\r\nI have imported `<CepheiPrefs/HBPackageNameHeaderCell.h>` in my main settings .m file. Using newest version of cephei (1.10).\r\n\r\nAlso, when this is removed and the Preferences.app does not crash anymore, the opening of my settings bundle lags tremendously the first time visiting it after a restart of Preferences.app because of the header cell. Any ideas?"},"comment":{"url":"https://api.github.com/repos/hbang/libcephei/issues/comments/294664479","html_url":"https://github.com/hbang/libcephei/issues/24#issuecomment-294664479","issue_url":"https://api.github.com/repos/hbang/libcephei/issues/24","id":294664479,"user":{"login":"kirb","id":773309,"avatar_url":"https://avatars3.githubusercontent.com/u/773309?v=3","gravatar_id":"","url":"https://api.github.com/users/kirb","html_url":"https://github.com/kirb","followers_url":"https://api.github.com/users/kirb/followers","following_url":"https://api.github.com/users/kirb/following{/other_user}","gists_url":"https://api.github.com/users/kirb/gists{/gist_id}","starred_url":"https://api.github.com/users/kirb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirb/subscriptions","organizations_url":"https://api.github.com/users/kirb/orgs","repos_url":"https://api.github.com/users/kirb/repos","events_url":"https://api.github.com/users/kirb/events{/privacy}","received_events_url":"https://api.github.com/users/kirb/received_events","type":"User","site_admin":false},"created_at":"2017-04-18T03:26:30Z","updated_at":"2017-04-18T03:26:30Z","body":"Implemented the workaround in 69f9915; explanation in the comments. Unfortunately it seems it’d be too complex to “wait” for it like I was considering above, so if your prefs bundle is the first to load CepheiPrefs and you have the cell on the initial list controller, it’ll still have the same issue. I’m considering moving back to how we worked before, manually parsing output of `dpkg-query`, but for the moment it mostly solves the problem. I’ll also bring it up with ashikase at some point if I remember.\r\n\r\nAs for your other issue, I’m almost assuming it might be because you don’t have an icon? It does throw an assertion if you’re using condensed but don’t have an icon. I decided I’d reverse that decision in c62cd55."}}
{"actor":{"display_login":"kirb"}}