ccdc | CCDC : A collaboration between schools to share CCDC | Wiki library
kandi X-RAY | ccdc Summary
kandi X-RAY | ccdc Summary
A classmate and I were trying to figure out how to collaborate and share documents related to CCDC among other teams for a variety of reasons:. We decided to create a public github repository that will house scripts, "battle plans", report templates and other documents that have helped teams in the past. We aren't asking for your "secret weapons" but I do believe that sharing this information will help all of the teams. Initially, we were looking at just Minnesota teams, however, I would love to see teams from across the country contribute. Initially, there won't be too much up here, especially as we try to figure out how to organize the repo. The plan is that teams should fork this repo and issue pull requests once they make some changes. If you have any comments or advice on this, send me an email at admin(a)jordanpotti.com. If you issue a Pull request, it won't be accepted unless you make an entry in your corresponding README defining your tool or document uploaded. If you modified an existing script/tool/document make sure you document why you made the changes.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Monitor all the files in the system
- Log a message
- Start monitoring the system
ccdc Key Features
ccdc Examples and Code Snippets
Community Discussions
Trending Discussions on ccdc
QUESTION
I suspect this is a finicky configuration issue that I'm getting wrong with Document Type / UTI declarations in my Info.plist, but have tried several things and haven't found the solution.
I have an NSDocument-based Mac application, written in Swift, Xcode 11. It reads and writes a custom document type with suffix "mpxml".
During most early development I did not have a custom UTI identifier for the type (the identifier field was left blank, the project default), and the app was able to read and write these files.
Recently I changed to have a fully qualified document type identifier and editor, which seemed to be necessary to get my document icon to show up in the Finder. I changed all the places in my code referencing document type to use this fully qualified UTI. Everything now works except that the open panel (run by the default NSDocumentController openDocument) no longer recognizes my file type - all files with "mpxml" suffix are now grayed out in the open panel, including any files freshly created (the save panel works fine to write the documents).
Some things I've tried:
- adding some additional overrides to my NSDocument subclass: fileNameExtension(), writableTypes, etc.
- setting / omitting mime-type
- setting / omitting a 4-char OSType
- setting / omitting a reference URL
- removing mpxml extension from document type (so it's only defined in the UTI) - didn't work
- declaring the type as an Imported UTI as well (should not be needed, didn't fix the issue)
- reviewing docs: Developing a Document-Based App, Declaring New Uniform Type Identifiers
Worth noting: the documentation on CFBundleTypeExtensions (the relevant document-type plist key) says that it's ignored if LSItemContentTypes is set - which is the case, since LSItemContentTypes is the key for the UTI identifier. But if setting this breaks the document-type suffix affiliation, I'd expect the UTI export affiliation to re-connnect it.
Also: Open Recent is also broken, and on attempting to open a recently-saved document the error reported is that the app "cannot open files of this type".
I'm not sure a workaround bypassing NSDocumentController will work here, because I don't want to mess with the document instance / window / file associations it sets up behind the scenes.
What is missing to make the custom UTI and extension work correctly in this app?
UPDATE based on request here is additional Info.plist data relevant to this bug (which essentially agrees with the XCode document type information in the screenshot above). I've now created a minimal sample application which reproduces the bug that I'll be using for an Apple bug report.
In the original form of the project, which no custom UTI declared, the Info.plist document type declaration is:
...ANSWER
Answered 2020-Jun-17 at 10:32Your UTExportedTypeDeclarations
entry is missing UTTypeConformsTo
. This key is required. See Uniform Type Identifier Concepts - Conformance and Declaring New Uniform Type Identifiers.
Although a custom UTI can conform to any UTI, public.data or com.apple.package must be at the root of the conformance hierarchy for all custom UTIs that are file formats (such as documents);
Also:
You need to declare conformance only with your type’s immediate “superclass,” because the conformance hierarchy allows for inheritance between identifiers. That is, if you declare your identifier as conforming to the public.tiff identifier, it automatically conforms to identifiers higher up in the hierarchy, such as public.image and public.data.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ccdc
You can use ccdc like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page