{"id":17068948,"url":"https://github.com/kgn/linenclipview","last_synced_at":"2025-04-12T18:23:31.245Z","repository":{"id":2078512,"uuid":"3017789","full_name":"kgn/LinenClipView","owner":"kgn","description":"Adds a linen pattern behind scrollviews like in Apple's Lion apps.","archived":false,"fork":false,"pushed_at":"2012-12-01T03:20:54.000Z","size":1203,"stargazers_count":58,"open_issues_count":1,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-26T12:46:24.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/kgn.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}},"created_at":"2011-12-20T06:41:50.000Z","updated_at":"2024-01-19T22:23:31.000Z","dependencies_parsed_at":"2022-08-02T19:45:14.475Z","dependency_job_id":null,"html_url":"https://github.com/kgn/LinenClipView","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/kgn%2FLinenClipView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FLinenClipView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FLinenClipView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FLinenClipView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kgn","download_url":"https://codeload.github.com/kgn/LinenClipView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248610948,"owners_count":21133024,"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-14T11:15:41.817Z","updated_at":"2025-04-12T18:23:31.224Z","avatar_url":"https://github.com/kgn.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"**LinenClipView** provides a subclass of `NSScrollView` and `WebView` \nthat displays a linen pattern in the clip view like many of Apple's Lion apps. This library can of course be used to display any background image.\n\n---\n\nIn **Interface Builder** change the *Class* of an `NSScrollView` to `LNScrollView` or similarly change the *Class* of a `WebView` to `LNWebView`.\n\nThese classes can also be created via code with `initWithFrame`.\n\nTo set the pattern image simply call `setPattern` on either subclass:\n\n``` obj-c\n[self.tableScrollView setPattern:[NSImage imageNamed:@\"pattern11\"]];\n[self.webView setPattern:[NSImage imageNamed:@\"pattern3\"]];\n```\n\nThe sample project that ships with this project demonstrates this.\n\n![](https://github.com/kgn/LinenClipView/raw/master/Screenshot.png)\n\n---\n\nSpecial thanks to [@Dimillian](https://twitter.com/#!/dimillian) for figuring out how to keep the \npattern stationary(`[NSGraphicsContext setPatternPhase:]`) and [@caffeinatedapp](https://twitter.com/#!/caffeinatedapp) for figuring out a fix to the scrollbars on Lion(the complicated `hitTest` code).\n\nThe background patterns included with this project are from [@minimalpatterns](http://www.minimal-patterns.com).\n\n**LinenClipView** is available under the MIT license. See the LICENSE file for more info.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgn%2Flinenclipview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkgn%2Flinenclipview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgn%2Flinenclipview/lists"}