1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-01 03:10:06 +00:00
Commit graph

73 commits

Author SHA1 Message Date
ed
05b49da0fe macOS: Silence some deprecation warnings 2021-10-04 17:23:29 +01:00
ed
a435026b24 macOS: Use available keyword instead of preprocessor version checks where possible 2021-09-29 16:13:48 +01:00
ed
c5bcfd5c3f macOS: Use the NSOpenPanel message property to display the FileChooser title correctly 2021-07-27 14:34:30 +01:00
reuk
a70488e38e MacOS: Fix API deprecations in macOS 12.0 and iOS 15.0 2021-06-10 15:20:39 +01:00
reuk
fd2f866dd1 FileChooser: Avoid throwing bad_weak_ptr
It seems like shared_from_this may not be enabled when a unique_ptr is
assigned to a shared_ptr (although it *should* be enabled when
constructing a new shared_ptr from a unique_ptr). Functions that return
objects that may need to use shared_from_this now return shared_ptr,
just to be safe.

Additionally, in some cases, shared_from_this was being called from
Thread::run after the last reference to the shared object had been
released. We now call shared_from_this during 'open', which will always
run on the message thread while at least once reference to the shared
object is alive.
2021-03-03 19:21:43 +00:00
reuk
45409bb4e6
FileChooser: Hide chooser when it leaves scope on Windows 2021-03-02 10:49:39 +00:00
ed
e18284978f FileChooser: Check JUCE_MODAL_LOOPS_PERMITTED in Native::runModally() 2021-02-22 09:08:09 +00:00
reuk
b78114cfb3 FileChooser: Add assertion for improved safety when using modal FileChoosers 2020-10-21 16:18:31 +01:00
reuk
2a638b86e7 FileChooser: Use custom save/open panel implementations to ensure that apps cannot terminate while the panel is open 2020-10-21 16:18:31 +01:00
reuk
1d29665e56 FileChooser: Fix issue where preview component may not receive full filename
Some hosts (such as Reaper) weren't creating an instance of exactly
NSOpenPanel or NSSavePanel, which meant that the call to
`getSelectedPaths` was always returning an empty array.

Now, rather than trying to cast the sender to an appropriate type, we
assume that the sender is always the same panel that we opened earlier,
so that we can just query the panel directly for its selection.
2020-10-21 16:18:31 +01:00
reuk
fdf09a6dde FileChooser: Ensure that macOS preview component always receives user events
Previously, when a file dialog was launched synchronously, the 'dummy' modal
component was preventing user input events from reaching the preview component.

Now, we explicitly allow input events to reach the file preview component, if
it exists.
2020-10-20 10:16:13 +01:00
reuk
dd62aec528 FileChooser: Ensure preview mouse interactions work when showing dialog on macOS 2020-10-20 10:16:13 +01:00
reuk
6fd0baa759 FileChooser: Ensure macOS FileChooserComponent shows when FileChooser is reopened
If the preview is not removed from the desktop, the FileChooser will try to reuse
the same ComponentPeer the next time the preview component is used.
2020-10-20 10:16:13 +01:00
reuk
36664cc487 FileChooser: Fix behaviour of macOS FilePreviewComponent
Previously, when the FileChooser::Native instance entered the
modal state, it was preventing the inner FilePreviewComponent from
receiving events.
2020-10-20 10:16:13 +01:00
reuk
f09b2aa4f5 FileChooser: Ensure macOS accessory panel is initially opened if custom preview component is passed 2020-10-20 10:16:13 +01:00
ed
54f65256e2 Cleaned up some whitespace 2020-07-20 17:17:53 +01:00
ed
009d685179 Updated all license headers 2020-06-29 08:30:22 +01:00
Tom Poole
894e7d2bd2 Updated all license headers 2020-04-23 17:30:39 +01:00
reuk
327f817b9b Copyrights: Update commercial/gpl headers to be gpl-only 2020-04-09 15:22:56 +01:00
Tom Poole
3c0ccda6a5 macOS: Cleaned up old 10.6 support ifdefs 2019-04-05 10:05:21 +01:00
jules
cadac817c6 Enabled some more warning flags in Xcode, and fixed the problems they caused 2019-01-11 09:52:10 +00:00
ed
e5d1e0008e Allow mouse events to pass to FilePreviewComponent in native file choosers 2018-11-30 14:28:06 +00:00
ed
acd3c0b8ee Fixed some Objective-C id -> auto* conversion warnings 2018-10-24 16:20:45 +01:00
jules
d9c0f9f082 Updated a deprecated OSX symbol 2018-10-19 11:28:46 +01:00
Tom Poole
81e206f963 MacOS: Fixed a bug parsing local file URLs containing URL escape characters 2018-10-04 11:28:59 +01:00
Tom Poole
ab863a6dc2 Replaced all usage of ScopedPointer with std::unique_ptr 2018-04-19 20:27:47 +01:00
jules
1a60fa9765 More ScopedPointer/unique_ptr compatibility work 2018-01-10 17:35:08 +00:00
jules
48a5fbd333 Another batch of ScopedPointer cleanups 2018-01-10 14:49:57 +00:00
Tom Poole
3c370259a9 Fixed an issue with the FileChooser prepending "/localhost" to paths 2017-12-21 12:17:15 +00:00
Tom Poole
3519de9a22 A more careful assertion about allowed file type filters in MacOS FileChoosers 2017-12-21 10:58:44 +00:00
Tom Poole
43cff0ce48 Updated the documentation to include a MacOS caveat to the FileChooser 2017-12-19 19:18:40 +00:00
jules
6a49d6efdc Minor tidying up 2017-11-29 17:33:00 +00:00
Lukasz Kozakiewicz
5358756d58 FileChooser: misc fixes and improvements to iOS and Android file choosers. 2017-11-29 16:46:38 +01:00
hogliux
df8fc9b910 FileChoosers: Added a file-chooser save mode where the caller already supplies a temporary file which should be saved. JUCE will automatically move the temporary file to the location selected by the user 2017-11-22 14:03:42 +00:00
hogliux
7e23bf28ae Added iOS/Android native file chooser support and support for asynchronous invocation of file choosers 2017-11-20 10:56:08 +00:00
jules
eda613c6db Moved all "namespace juce" declarations from module headers to the individual .h and .cpp source files. This makes life a lot easier for Intellisense and other IDE autocompletion tools 2017-09-08 08:59:55 +01:00
jules
74c96208fe Removed Quicktime from the OSX build, and replaced the video player and camera implementations with AVFoundation 2017-06-30 16:08:51 +01:00
hogliux
b5afccc37c Updated file headers and the README with the JUCE 5 license 2017-04-27 14:43:04 +01:00
jules
9fa0d49be7 Added an option JUCE_ALLOW_STATIC_NULL_VARIABLES that can be used to turn off dangerous statics like String::empty, var::null, etc. 2016-09-16 12:03:02 +01:00
hogliux
9629de32bb Add treatFilePackagesAsDirectories flag to native FileChooser 2016-02-09 09:44:31 +00:00
hogliux
c7b8e77031 Update copyright notice 2015-07-22 15:59:34 +01:00
jules
8b3935f121 Added support for extra info panels in OSX native file choosers. 2015-01-29 14:18:55 +00:00
jules
7e8cc2734d Some workarounds for people still using the 10.5 SDK 2014-11-02 20:40:48 +00:00
jules
506ed2663f Workaround for old versions of Xcode. 2014-10-29 14:47:31 +00:00
jules
61bf9392d0 Cleaned up a few OSX 10.10 deprecated functions. 2014-10-28 10:29:01 +00:00
jules
e0491d4574 Added support a flag JUCE_DISABLE_NATIVE_FILECHOOSERS which is pretty self-explanatory. 2014-03-25 17:30:26 +00:00
jules
c62da6c983 Cleaned up some pedantic warnings in the iOS build. 2013-10-01 12:55:44 +01:00
jules
42aa27900b Moved most of the functionality from JUCEApplication into JUCEApplicationBase, so that it can be used without needing juce_gui_basics to be present. 2013-09-07 09:43:45 +01:00
jules
03c2801f3f Copyright header update in all module files. juce_core modules are now ISC licensed. All other modules are GPLv2/3/AGPLv3 2013-06-13 13:17:12 +01:00
jules
ba2dc52b34 Made use of @autoreleasepool for clang builds. 2013-03-21 18:33:01 +00:00