warning: ‘NSWindow’ may not respond to ‘-inLiveResize’
(Messages without a matching method signature will be assumed to return ‘id’ and accept ‘…’ as arguments.)
I also have the same error with the Demo project, but not with the basic juce->Builds->MacOSX->Juce.xcodeproj… ? I tried updating my xCode to 3.1.4, using both GCC 4.0 and 4.2, being specific about compiling for 10.5, i386, Debug/Release. Additionally, I downloaded 1.51 and that seems to compile and build just fine.
Keeps pointing me to -inLiveResize inside this function in juce_mac_NSViewComponentPeer.mm
I downloaded the new tip, and although the Jucer(experimental) builds without any warnings, it still crashes when trying to start up. Looks like the same error.
just want to confirm Owen’s error-- I too just updated from the latest git and am getting the same error. My program seems to work alright in Debug mode, occasionally crashing with this error, but no longer working at all in Release.
As well, did something change with ReduceOpacityEffect? That seems to have stopped working as well…
Took a few minutes looking into ReduceOpacityEffect, and It seems that ReduceOpacityEffect is nowhere to be found in juce_amalgamated… I grabbed it from a slightly older version I pulled not too long ago. Is there a reason it was no longer included?
If you want to pop it back in, here’s what I did:
juce_amalgamated.h - from line 61097
#ifndef __JUCE_REDUCEOPACITYEFFECT_JUCEHEADER__
/*** Start of inlined file: juce_ReduceOpacityEffect.h ***/
#ifndef __JUCE_REDUCEOPACITYEFFECT_JUCEHEADER__
#define __JUCE_REDUCEOPACITYEFFECT_JUCEHEADER__
/**
An effect filter that reduces the image's opacity.
This can be used to make a component (and its child components) more
transparent.
@see Component::setComponentEffect
*/
class JUCE_API ReduceOpacityEffect : public ImageEffectFilter
{
public:
/** Creates the effect object.
The opacity of the component to which the effect is applied will be
scaled by the given factor (in the range 0 to 1.0f).
*/
ReduceOpacityEffect (float opacity = 1.0f);
/** Destructor. */
~ReduceOpacityEffect();
/** Sets how much to scale the component's opacity.
@param newOpacity should be between 0 and 1.0f
*/
void setOpacity (float newOpacity);
/** @internal */
void applyEffect (Image& sourceImage, Graphics& destContext);
juce_UseDebuggingNewOperator
private:
float opacity;
};
#endif // __JUCE_REDUCEOPACITYEFFECT_JUCEHEADER__
/*** End of inlined file: juce_ReduceOpacityEffect.h ***/
Ah yes! Thanks Jules-- seems to be working great so far. Sorry I hadn’t caught the removal of ReduceOpacityEffect, as I was pulling/updating using the JUCER and didn’t see commit notes. But alas, checking the git repo I see that change in a commit from two days ago. The new method is very handy