{"id":13586342,"url":"https://github.com/macadmins/nibbler","last_synced_at":"2025-04-07T15:31:34.740Z","repository":{"id":68774034,"uuid":"67047319","full_name":"macadmins/nibbler","owner":"macadmins","description":"python pyobjc utility for macOS for displaying dialogs using .nib files","archived":true,"fork":false,"pushed_at":"2023-02-08T15:30:36.000Z","size":49,"stargazers_count":81,"open_issues_count":1,"forks_count":10,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-02-14T21:26:51.441Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/macadmins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-31T14:56:34.000Z","updated_at":"2024-08-01T16:32:19.557Z","dependencies_parsed_at":"2023-02-24T16:45:31.711Z","dependency_job_id":null,"html_url":"https://github.com/macadmins/nibbler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macadmins%2Fnibbler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macadmins%2Fnibbler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macadmins%2Fnibbler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macadmins%2Fnibbler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macadmins","download_url":"https://codeload.github.com/macadmins/nibbler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247679485,"owners_count":20978059,"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-08-01T15:05:29.656Z","updated_at":"2025-04-07T15:31:34.726Z","avatar_url":"https://github.com/macadmins.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# nibbler\nNibbler is officially end of life. Check out the [swiftDialog](https://github.com/bartreardon/swiftDialog) project if you need similar functionality to nibbler.\n\n## Examples\n\nThe best way to play with nibbler is to download this git repo and play with the two example files.\n\n1. Download this repo:\n\n    ```bash\n    git clone https://github.com/macadmins/nibbler.git\n    cd nibbler/examples\n    ```\n\n1. Now you can choose between running the `sweet_example.py` and `sam_example.py` scripts.\n\n## Getting Started\n\nNow that you've seen what nibbler does from the examples you'll likely want to build your own dialog box. To get started you'll need:\n\n* A Mac with Python (fortunately all modern Macs come with this built-in)\n* The PyObjC bridge (again comes built-in)\n* Xcode (available from the [MAS](https://itunes.apple.com/us/app/xcode/id497799835?mt=12) or [Apple Developer Portal](https://developer.apple.com/xcode/download/more/))\n\nOnce the requirements above are meet we're able to create our dialog.\n\n1. Launch Xcode.\n1. From your menu bar select `File \u003e New \u003e File...`.\n1. For the correct template in Xcode 8, select `macOS` and in `User Interface` select `Window`.\n1. Click `Next` and you'll be prompted to save your file. Select a name and location.\n1. Now we need to get this file into a `.nib` file. From your menu bar select `File \u003e Export...`. Make sure and change your File Format to `Interface Builder Cocoa NIB`.\n1. Now you need to write the python code to connect your elements.\n\n## Tips\n\n* Make sure and give all of your UI elements in Xcode a static identifier. Xcode by default sets identifiers to `Automatic` however that does not work with nibbler.\n* Printing your content handles is very helpful: `print n.nib_contents`\n* Printing your views can also help with troubleshooting: `print n.views`\n* Consult Apple's [macOS Human Interface Guidelines](https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/OSXHIGuidelines/index.html#//apple_ref/doc/uid/20000957) for the authoritative source on the correct usage of UI elements.\n* Consult Apple's [Start Developing iOS Apps (Swift):Build a Basic UI](https://developer.apple.com/library/content/referencelibrary/GettingStarted/DevelopiOSAppsSwift/BuildABasicUI.html) for a tutorial on building a UI in Xcode.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacadmins%2Fnibbler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacadmins%2Fnibbler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacadmins%2Fnibbler/lists"}