reuk
28f2157912
Convert ignoreUnused to [[maybe_unused]]
2 years ago
Tom Poole
2ec861d99e
Update licensing banners to JUCE 7
3 years ago
Tom Poole
db3c6e6216
macOS/iOS: Fix unguarded availability warnings
3 years ago
Tom Poole
eda5c696e5
macOS/iOS: Fix unguarded availability warnings
3 years ago
Tom Poole
dea3fe60e4
Update copyright banners
3 years ago
reuk
9f7409fd3e
FileChooser: Fix function signature for Obj-C interop
3 years ago
reuk
cc8a9ca896
FileChooser: Avoid deprecated delegate method signature
3 years ago
reuk
da46ee6c7a
FileChooser: Launch chooser asynchronously
When FileChooser instances were created, launched, and hidden all inside
the same event callback on macOS 12.0.1, the chooser dialog sometimes
remained open. This could cause problems including crashes, as closing
the dialog would attempt to call a completion handler block referencing
an already-deleted FileChooser::Native instance.
Opening the chooser panel later on the message thread seems to resolve
the issue.
3 years ago
reuk
81fa777ff7
ObjC Helpers: Automatically derive appropriate signature for function
3 years ago
ed
05b49da0fe
macOS: Silence some deprecation warnings
3 years ago
ed
a435026b24
macOS: Use available keyword instead of preprocessor version checks where possible
3 years ago
ed
c5bcfd5c3f
macOS: Use the NSOpenPanel message property to display the FileChooser title correctly
3 years ago
reuk
a70488e38e
MacOS: Fix API deprecations in macOS 12.0 and iOS 15.0
3 years ago
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.
4 years ago
reuk
45409bb4e6
FileChooser: Hide chooser when it leaves scope on Windows
4 years ago
ed
e18284978f
FileChooser: Check JUCE_MODAL_LOOPS_PERMITTED in Native::runModally()
4 years ago
reuk
b78114cfb3
FileChooser: Add assertion for improved safety when using modal FileChoosers
4 years ago
reuk
2a638b86e7
FileChooser: Use custom save/open panel implementations to ensure that apps cannot terminate while the panel is open
4 years ago
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.
4 years ago
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.
4 years ago
reuk
dd62aec528
FileChooser: Ensure preview mouse interactions work when showing dialog on macOS
4 years ago
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.
4 years ago
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.
4 years ago
reuk
f09b2aa4f5
FileChooser: Ensure macOS accessory panel is initially opened if custom preview component is passed
4 years ago
ed
54f65256e2
Cleaned up some whitespace
4 years ago
ed
009d685179
Updated all license headers
4 years ago
Tom Poole
894e7d2bd2
Updated all license headers
5 years ago
Tom Poole
2d16374b14
Updated all license headers
5 years ago
reuk
327f817b9b
Copyrights: Update commercial/gpl headers to be gpl-only
5 years ago
Tom Poole
3c0ccda6a5
macOS: Cleaned up old 10.6 support ifdefs
6 years ago
jules
cadac817c6
Enabled some more warning flags in Xcode, and fixed the problems they caused
6 years ago
ed
e5d1e0008e
Allow mouse events to pass to FilePreviewComponent in native file choosers
6 years ago
ed
acd3c0b8ee
Fixed some Objective-C id -> auto* conversion warnings
6 years ago
jules
d9c0f9f082
Updated a deprecated OSX symbol
6 years ago
Tom Poole
81e206f963
MacOS: Fixed a bug parsing local file URLs containing URL escape characters
6 years ago
Tom Poole
ab863a6dc2
Replaced all usage of ScopedPointer with std::unique_ptr
7 years ago
jules
1a60fa9765
More ScopedPointer/unique_ptr compatibility work
7 years ago
jules
48a5fbd333
Another batch of ScopedPointer cleanups
7 years ago
Tom Poole
3c370259a9
Fixed an issue with the FileChooser prepending "/localhost" to paths
7 years ago
Tom Poole
3519de9a22
A more careful assertion about allowed file type filters in MacOS FileChoosers
7 years ago
Tom Poole
43cff0ce48
Updated the documentation to include a MacOS caveat to the FileChooser
7 years ago
jules
6a49d6efdc
Minor tidying up
7 years ago
Lukasz Kozakiewicz
5358756d58
FileChooser: misc fixes and improvements to iOS and Android file choosers.
7 years ago
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
7 years ago
hogliux
7e23bf28ae
Added iOS/Android native file chooser support and support for asynchronous invocation of file choosers
7 years ago
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
7 years ago
jules
74c96208fe
Removed Quicktime from the OSX build, and replaced the video player and camera implementations with AVFoundation
7 years ago
hogliux
b5afccc37c
Updated file headers and the README with the JUCE 5 license
8 years ago
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.
8 years ago
hogliux
9629de32bb
Add treatFilePackagesAsDirectories flag to native FileChooser
9 years ago