TheAcharya / MarkerData

The avant-garde Marker extraction application crafted for Final Cut Pro
https://markerdata.theacharya.co
MIT License
27 stars 1 forks source link

Set Minimum Width & Height for Workflow Extension #89

Closed IAmVigneswaran closed 4 months ago

IAmVigneswaran commented 4 months ago

@milanvarady

workflow-extension-width-height

Can we set the minimum width & height for workflow extension to 700px by 550px?

https://developer.apple.com/documentation/professional_video_applications/workflow_extensions/building_a_workflow_extension?language=objc

Thank you.

IAmVigneswaran commented 4 months ago

We apparently have ContentViewMinimumHeight and ContentViewMinimumWidth placed in the wrong section. It should be nested within <dict>.

    <dict>
        <key>NSAppleEventsUsageDescription</key>
        <string>Extensions can interact with Final Cut Pro.</string>
        <key>NSExtensionPointIdentifier</key>
        <string>com.apple.FinalCut.WorkflowExtension</string>
        <key>ProExtensionPrincipalViewControllerClass</key>
        <string>Workflow_Extension.WorkflowExtensionViewController</string>
    </dict>
    <key>ProExtensionAttributes</key>
    <dict>
        <key>ContentViewMinimumHeight</key>
        <integer>400</integer>
        <key>ContentViewMinimumWidth</key>
        <integer>600</integer>
    </dict>

I believe it would be nested? Example from Marker Toolbox App.

    <key>NSExtension</key>
    <dict>
        <key>NSExtensionPointIdentifier</key>
        <string>com.apple.FinalCut.WorkflowExtension</string>
        <key>ProExtensionAttributes</key>
        <dict>
            <key>ContentViewMinimumHeight</key>
            <integer>550</integer>
            <key>ContentViewMinimumWidth</key>
            <integer>700</integer>
        </dict>
        <key>ProExtensionPrincipalViewControllerClass</key>
        <string>MarkerToolboxViewController</string>
    </dict>
    <key>NSHumanReadableCopyright</key>
milanvarady commented 4 months ago

I believe it would be nested.

Yes, that was the problem. It is now working.