{"id":17721820,"url":"https://github.com/sinbad/ssselectabletoolbar","last_synced_at":"2025-03-14T05:31:48.394Z","repository":{"id":26137203,"uuid":"29582185","full_name":"sinbad/SSSelectableToolbar","owner":"sinbad","description":"A preference-pane style selectable toolbar which switches views easily, allowing different sizes per pane, and not requiring a lot of manual code.","archived":false,"fork":false,"pushed_at":"2015-01-21T09:44:58.000Z","size":164,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-03-11T15:38:38.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sinbad.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-21T09:31:05.000Z","updated_at":"2016-11-30T04:26:41.000Z","dependencies_parsed_at":"2022-07-25T11:02:02.866Z","dependency_job_id":null,"html_url":"https://github.com/sinbad/SSSelectableToolbar","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinbad%2FSSSelectableToolbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinbad%2FSSSelectableToolbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinbad%2FSSSelectableToolbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinbad%2FSSSelectableToolbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinbad","download_url":"https://codeload.github.com/sinbad/SSSelectableToolbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243532517,"owners_count":20306151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-25T15:36:22.205Z","updated_at":"2025-03-14T05:31:48.114Z","avatar_url":"https://github.com/sinbad.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"SSSelectable Toolbar\n--------------------\n\nCopyright (c) 2011 Steve Streeting\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of \nthis software and associated documentation files (the \"Software\"), to deal in \nthe Software without restriction, including without limitation the rights to \nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all \ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR \nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR \nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER \nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN \nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nWhy?\n----\n\nI needed a preference-pane style selectable toolbar which switched views easily,\nallowing different sizes per pane, and not requiring a lot of manual code. I\nwanted to do most of the work in Interface Builder still.\n\nI liked the selectable toolbar in BWToolkit, but it had a few issues such as\ncrashing Interface Builder, getting the vertical position wrong at times, and\nalso that in XCode 4, Interface Builder plugins are no longer supported. So I\nneeded a selectable toolbar that worked in IB without any plugins.\n\nHow to use\n----------\n\n1) Add all the source files in the 'toolbar' subfolder to your XCode project\n2) In Interface Builder, drag \u0026 drop an NSToolbar on to your window\n3) Change the type to 'SSSelectableToolbar'\n4) Connect the 'window' outlet of the toolbar to the parent window\n5) Drag \u0026 drop NSToolbarItem instances on to the toolbar and check the \n   'Selectable' option\n6) Change the type of each one to 'SSSelectableToolbarItem'\n7) Create a Custom View instance at the root of the document (not in the window)\n   for each pane and populate them how you like\n8) Connect the 'linkedView' outlet of each toolbar item to the corresponding \n   pane view\n9) Connect the 'nextKeyView' outlet of each custom view to the control that\n   should become the first responder when switching to that tab (Optional)\n\nAnd you're ready to go. Each toolbar item will switch to its corresponding pane, \nresizing the window as necessary. You can make the window resizable if you like, \nand the user size will be remembered when switching back and forth.\n   \n    \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinbad%2Fssselectabletoolbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinbad%2Fssselectabletoolbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinbad%2Fssselectabletoolbar/lists"}