InDesign Mac CC: "cannot open resource file' popup message when loading a feather in my plugin

We have a pretty simple plugin for InDesign, which we have maintained since the time Pre-cs.  We would wear to CC.  Everything works on Windows and Mac, with one problem.

The plug-in displays a file save dialog box, which is customized with a couple of additional controls for additional information from the user on the exported file.  As far as I know, there is no way to do it with the InDesign SDK directly, so we do it with code specific to the platform and resources.  Under Windows, we have this by calling GetSaveFileName in the Windows API and by setting a custom resource .rc and "hook" function with OFN_ENABLETEMPLATE and OFN_ENABLEHOOK.  On Mac, until CC InDesign, we asked the function of carbon NavCreatePutFileDialog, with a style file old Pier and an event proc handling kNavCBCustomize and al.  This has all worked for a long time great.

However CC InDesign on Mac is 64-bit only, and carbon will not work with it.  So, we took the leap in cocoa and put implement with [NSSavePanel setAccessoryView:], where load us a NSView custom from a pen integrated into our bundle of plug-ins.  And it works very well also.  However, when the plugin code call [NSNib initWithNibNamed:bundle:], InDesign CC appears a warning message saying: "Cannot open resource file."  However, the resource (the pen) is obviously loaded correctly.  Thus, the user must dismiss this apparently false alert box before being able to move forward.  Once the alert is dismissed, the NSSavePanel works very well, with our custom NSView.

I can say that the popup alert just InDesign itself, rather than a subsystem of Mac underlying as cocoa, because he has the title of "Adobe InDesign" and the gray dark background as the rest of the CC of InDesign and the OK button has an orange highlight around it.  It is clearly not a standard thing of Mac as a NSAlert.  And if I do the same calls to [NSSavePanel setAccessoryView:] et al. in a stand-alone application, obviously no this popup appears.

It seems that somehow our call to load the file Nib triggers some kind of hook in InDesign.  My guess is that it's a hook for InDesign load its own resources, which is hanging by mistake in features our plug-in.

I tried two approaches to load the Nib enumerated file here:

http://StackOverflow.com/a/5855561/3207828

And they both work, the pen is responsible and we can get our NSView to it and use it in the NSSavePanel.  But if we call [NSNib initWithNibNamed:bundle:], or [NSViewController initWithNibName:bundle:], CC InDesign displays the message box as soon as the call to load the pen is made.

Why InDesign CC showing the message 'Cannot open resource file', and how can it be prevented?

Thank you

Dan

I thought about it.  The problem was the plugin code to create a ResourceEnabler object, which is needed by older versions (CS *) of the plug-in on Mac to locate resources .rsrc for the call of NavCreatePutFileDialog of carbon with the carbon resource custom.   I #ifdef'd out so that the ResourceEnabler object is not created during the generation of Cocoa 64 bit for the CC and the offending message popup no longer appears.

I do not understand why the ResourceEnabler object is needed for carbon, resources of the plug-in to the top of the stack of the resource, but I do not completely understand why the presence of the ResourceEnabler object would have an effect on a call from cocoa to [NSNib initWithNibNamed:bundle:], which also works fine.

Note that simply create the ResourceEnabler object does not trigger the popup even if the bundle of plug-in contains no carbon resources to move to the top of the stack.  It's only when I go to load the Nib file that the ResourceEnabler seems to want to get involved and complain that it cannot find anything.

So if anyone from Adobe is reading this, I would say that set you the ResourceEnabler feature so that it does not interfere with loading crane of cocoa.  It is perhaps best to just do the ResourceEnabler a no - op in InDesign CC.

Tags: InDesign

Similar Questions

  • "Extraction failure: cannot open output file" error message when installing new drivers

    Hello, I am trying to install new drivers for my HP Photosmart C4385 printer.  I downloaded the complete drivers of features for Windows XP 32-bit, and when I start to install (extract), I get the error message:

    Extraction failed

    Cannot open output file

    And the process ends.  He arrived at about 85% extraction every time.

    No idea why?  I called HP, but no longer under warranty they wanted money, which I think as absolutely ridiculous - not even give me basic support?  Poor, poor customer service.

    Hi GIJeff12,

    Temporarily disable any AntiVirus/Antispyware software.

    Cut the installer on your desktop then click on the Start Menu, click computer, double-click on the C: drive and paste the installler here.  Now try a right click on the installer for your printer, choose 7-Zip and choose Extract the files, and then click Ok.  If the installation program extracts now correctly, follow these steps.  If it does not extract, let me know.

    Disconnect your printer from the PC.  Restart your PC.

    Open the newly extracted folder and double-click the setup application to start the installation (the installation application will probably have the same icon as the original installation software that you downloaded).  Connect the printer to your computer when you are asked.

    If it was a success, re - enable your security software.

    Best wishes

    DP - K

  • Cannot open DXF files, incorrect message error etc etc thanks file

    Cannot open DXF files, invalid file error message etc.   Thank you

    start learning says:

    Cannot open DXF files, invalid file error message etc.   Thank you

    You have installed AutoCAD?  It is the application most frequently associated with DXF files.  Other applications that are running are Image PSP, Fh7, and Micrografx Picture Publisher.

    http://FILExt.com/file-extension/DXF
    --
    Bruce Chambers

    Help us help you:
    http://www.CatB.org/~ESR/FAQs/smart-questions.html

    http://support.Microsoft.com/default.aspx/KB/555375

    They who can give up liberty to obtain a little temporary safety deserve neither liberty nor safety. ~ Benjamin Franklin

    A lot of people could die rather that thinking; in fact, most do. ~ Bertrand Russell

    The philosopher never killed the priests, while the priest killed a large number of philosophers.
    ~ Denis Diderot

  • VeriStand exe 'cannot open resource files."

    VeriStand exe gives following error "Cannot open files from resources." and never begins to open.  It worked yesterday, but not today.  I have install DAQmx 9.6 and restarted my PC but that's all.  I tried to remove the VS ini file, no luck.

    Thanks in advance,

    -Steve

    Found the problem, the LabVIEW runtime engine was corrupted.  A colleague suggested trying to run an exe of LabVIEW to see if she would go and he didn't.  I have re-installed LabVIEW 2011 SP1 Run-Time Engine and now my open VeriStand f2.

  • Cannot open the file PDF as computer Mac tells me to accept the end user license agreement and to relaunch the browser... How can I do this? URGENT!

    Cannot open the file PDF as computer Mac tells me to accept the end user license agreement and to relaunch the browser... How can I do this? URGENT!

    With closed drive, open your Applications folder and double click (left) on the drive icon.

  • Q10 blackBerry download full - cannot open the file

    My previous Blackberry Curve 8330 (using version 4.0 of the software), I had an eSecure app that I downloaded from a text message sent to my phone.  With my new Q10, I "ve done to transfer the data from my old phone again, but the apps has not been transferred.  All lists of contacts, emails, etc. worked well.

    I logged on the site where I can go to request a new message text for the app, but the OS Q10 is not an option, the highest available Blackberry version is 7.0.  When I select 7.0 and receive this new text message on my phone, I open it and the link download, but when I click on the downloaded file I get a popup message that says: "Cannot open the file."

    Please notify

    Applications BlackBerry OS7 (and OS4) do not work on OS10. OS7 (and the previous operating system) is based on Java, OS10 is completely different (QNX based). So if the seller does not level its app to OS10, there is nothing you can do.

  • I have download Acrobat 9 Pro, but cannot open the file.

    I have download Acrobat 9 Pro, but cannot open the file. I recently had to change my hard drive and have re - install everything again.

    I was able to download photoshop & illustrator, but can not Acrobat 9 pro

    Help, please

    even if your error seem not related to the issue discussed in this link, try it:

    http://Mac-how-to.WonderHowTo.com/how-to/open-third-party-apps-from-unidentified-Developer s-mac-os-x-0158095.

  • fatal error LNK1181: cannot open input file

    Hello

    When executing plugins to sample for the Indesign CC 2015 version we get the below mentioned error

    LINK: fatal error LNK1181: cannot open input file "... \..." \.. \external\dva\third_party\boost_libraries\bin.v2\libs\boost_system\lib\win\relea se\32\boost_system.lib'

    Please help us correct this error?

    Thank you

    Suganthi.B

    Hi Suganthi.B,

    You can simply fix download the bin.v2 file from the link Dropbox - bin.v2.zip

    and paste it into the folder /external/dva/third_party/boost_libraries

  • Cannot open the file Photoshop cc

    Hello

    After that I open a file or two, when I try to open a third, I get a "cannot complete request because of a program error" and can't open anything else until I have leave the program and open it again.  I tried to reinstall the software, but to no avail.  I have a Mac Pro with OS of Yosemite.  Can't say with certainty, but it started after the upgrade to Yosemite or mighty close to him.  anyone else having these issues?

    Thank you!

    Had to call Adobe support.  It seems that when I upgradd in Yosemite, there no

    update my permissions.  I added reading and writing, uninstalled

    Photoshop re-installed and it works fine now.

  • Click on the link-get "Windows cannot open the file" select a program?

    After clicking on link get "Windows cannot open this file" have to manually "selecta program programs installed" Firefox appears as a choice and I double-click. How can I solve this problem / eliminate these extra steps
    ? Thank you Joe
    I am running Windows XP, MS office Outlook 2007

    Is it a link in an e-mail message in Outlook? This problem arises from time to time.

    While Firefox can usually set himself as the proper application to open the URL, you click in other programs, settings are sometimes blur or do not take. This article has tips to solve this problem: setting Firefox as the default browser does not work - what to do. Anything there help?

    If the problem persists, is there something special about how you start Firefox? For example, you have this launch in a security 'sandbox' or virtual machine? You have all the command-line options set to allow several simultaneous sessions of Firefox, or call the Profile Manager? If none of this sounds familiar to you, the answer is probably not.

  • I just tried to update Firefox to version 9.0.1. Extract of 13%, and then I got an error message cannot open output file. Can you help me please?

    I just tried to update Firefox to version 9.0.1. Extract of 13%, and then I got the error message cannot open output file.

    The file can be uploaded incorrectly. Could you it redownload again from http://getfirefox.com?

  • fatal error C1083: cannot open include file: 'NiVisaComponent.h': no such file or directory

    I found the error of => niincludes.h (18) : fatal error C1083: cannot open include file: 'NiVisaComponent.h': no such file or directory

    I checked a few path, "C:\Program Files (x 86) \National Instruments\MeasurementStudioVS2005\VCNET\Include.
    I found a lot of files, but only does not NiVisaComponent.h, anyone know how to download or is this file has changed the name?

    I already install the driver NI-VISA v15.0 but still does not have this file.

    I have not "C:\Program NIUninstaller Instruments\MeasurementStudioVS2005\VCNET\Include" because my laptop is 64-bit.

    Hello

    If you see the file Readme VISA 15, you'll see that Visual Studio 2005 is not supported. It seems that the most recent version of VISA that supports VS 2005 is Version 5.2 for c# / VB.NET and 5.0.2 for MFC C++ (with Measurement Studio 2009).

  • When I start my computer I get this error message: Windows cannot open this file: GLBD4EA.tmp

    When I start my computer, I get this error message:

    Windows cannot open this file: GLBD4EA.tmp

    To open this file, Windows needs to know what program you want to use to open it. Windows can go online to look for automatically, or you can manually select from a list of programs installed on your computer.

    What do you do?

    -Use the web service to find the appropriate program
    -Select a program from a list of installed programs

    No selection works for me. I don't know what concerns the .tmp file, or why I need to open it.

    Please help :)

    Hello

     
    Perform the following steps to remove the file from the registry.
    a: type regedit into the search box start and click on enter.
    b: Search now to the following key
    HLKM\SOFTWARE\Microsoft\windows\currentversion\run
     
    then delete the following key
    53E412B3-9907-4F9E-A6DC-D0106D1D72C
     
    Important:  This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information
    However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
     
    Hope this information helps.
  • Windows 2k8R2 - receiving error when you connect (MMC cannot open the file: C:\Windows\system32\ServerManager.msc)

    Windows 2008 R2 - I just started getting this when I connect, and also when I try to manage the machine:

    MMC cannot open the file:
    C:\Windows\system32\ServerManager.msc
    It is perhaps because the file does not exist, is not an MMC console, or was created by a later version of MMC. This may also be because you don't have sufficient access to the file.
    It always worked before and work for other users simply not me on this particular area. It is a production company, and I need a quick resolution please. Thanks in advance.
    PM

    Hello

    Your Windows is better suited for the public of Windows Server on TechNet. Please post your question in the TechNet Windows server forum.

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer

  • Cannot open pdf file not able to download adobe, disables security and still unable to download adobe

    Cannot open pdf files not able to download adobe. I disabled the security and still unable to download adobe

    Hi MarciaRicci,

    1. what operating system is installed on the computer?
    2. What is the exact error message you get when you try to download?
    3. what web browser do you use to download adobe?
    4. what happens when you try to open pdf files?
    5. you are trying to open online pdf files or pdf files on the computer?

    I suggest you try the steps from the following link:

    The problems of download
    http://kb2.Adobe.com/CPS/152/tn_15296.html

    Installation problems | Flash Player | Windows
    http://kb2.Adobe.com/CPS/191/tn_19166.html

    Choppy us back with more information.

Maybe you are looking for

  • How can I take pictures in 16:9?

    Hello Normally, when I take pictures, they are 3264 × 2448 pixels = 4:3. How can I take pictures in 16:9? I know that I can crop a 4:3 picture later, but I'd like to see the correct size before taking pictures. Is it possible, or do I need an additio

  • Thunderbird is slow and unresponsive

    Thunderbird is slow and unresponsive. It takes about 2 minutes for the email to be delivered, then another 1 or 2 minutes to open emails once they come in. How solve this problem and get the software working correctly? I use a 64-bit system with a lo

  • WindowsUpdate_800706BA""WindowsUpdate_dt000"

    HELP MY,.

  • HP 794N RECOVERY DISK

    Hello I need to restore everything on my hp 794n ([Personal information deleted] since I fell the drive train and installing a market after a... but this pc gave me with a set of recovery disk 8) My question is... Is this the right disk? Will they wo

  • OneNote 2013

    When I try to open OneNote from Outlook icon, I get the following error: Before you can use this feature, OneNote must start for the first time. You can come back here and try again after you start OneNote. Someone knows the solution to the my proble