1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Couple of introjucer fixes.

This commit is contained in:
jules 2011-10-11 14:22:18 +01:00
parent 7a91c10a81
commit 75bbd8e2b2
5 changed files with 35 additions and 1 deletions

View file

@ -107,8 +107,8 @@ void MainWindow::createProjectContentCompIfNeeded()
void MainWindow::makeVisible()
{
setVisible (true);
addToDesktop(); // (must add before restoring size so that fullscreen will work)
restoreWindowPosition();
addToDesktop();
getContentComponent()->grabKeyboardFocus();
}

View file

@ -389,6 +389,9 @@ private:
if (getSetting ("UIStatusBarHidden").getValue())
addPlistDictionaryKeyBool (dict, "UIStatusBarHidden", true);
for (int i = 0; i < xcodeExtraPListEntries.size(); ++i)
dict->addChildElement (new XmlElement (xcodeExtraPListEntries.getReference(i)));
MemoryOutputStream mo;
plist.writeToStream (mo, "<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">");

View file

@ -131,6 +131,7 @@ public:
bool xcodeIsBundle, xcodeCreatePList, xcodeCanUseDwarf;
StringArray xcodeFrameworks;
Array<RelativePath> xcodeExtraLibrariesDebug, xcodeExtraLibrariesRelease;
Array<XmlElement> xcodeExtraPListEntries;
//==============================================================================
String makefileTargetSuffix;

View file

@ -292,6 +292,24 @@ public:
exporter.xcodeProductType = "com.apple.product-type.bundle";
exporter.xcodeProductInstallPath = "$(HOME)/Library/Internet Plug-Ins//";
{
XmlElement mimeTypesKey ("key");
mimeTypesKey.setText ("WebPluginMIMETypes");
XmlElement mimeTypesEntry ("dict");
const String exeName (exporter.getProject().getProjectFilenameRoot().toLowerCase());
mimeTypesEntry.createNewChildElement ("key")->setText ("application/" + exeName + "-plugin");
XmlElement* d = mimeTypesEntry.createNewChildElement ("dict");
d->createNewChildElement ("key")->setText ("WebPluginExtensions");
d->createNewChildElement ("array")
->createNewChildElement ("string")->setText (exeName);
d->createNewChildElement ("key")->setText ("WebPluginTypeDescription");
d->createNewChildElement ("string")->setText (exporter.getProject().getProjectName().toString());
exporter.xcodeExtraPListEntries.add (mimeTypesKey);
exporter.xcodeExtraPListEntries.add (mimeTypesEntry);
}
exporter.msvcTargetSuffix = ".dll";
exporter.msvcIsDLL = true;

View file

@ -28,5 +28,17 @@
<string>JuceBrowserPlugin_Version</string>
<key>WebPluginName</key>
<string>JuceBrowserPlugin_Name</string>
<key>WebPluginMIMETypes</key>
<dict>
<key>application/npjucedemo-plugin</key>
<dict>
<key>WebPluginExtensions</key>
<array>
<string>jucedemo</string>
</array>
<key>WebPluginTypeDescription</key>
<string>Juce Demo</string>
</dict>
</dict>
</dict>
</plist>