|
|
@@ -82,19 +82,19 @@ void AUCarbonViewControl::Bind() |
|
|
|
WantEventTypes(GetControlEventTarget(mControl), GetEventTypeCount(events), events);
|
|
|
|
|
|
|
|
if (mType == kTypeContinuous || mType == kTypeText || mType == kTypeDiscrete) {
|
|
|
|
EventTypeSpec events[] = {
|
|
|
|
EventTypeSpec controlEvents[] = {
|
|
|
|
{ kEventClassControl, kEventControlHit },
|
|
|
|
{ kEventClassControl, kEventControlClick },
|
|
|
|
{ kEventClassControl, kEventControlTrack }
|
|
|
|
};
|
|
|
|
WantEventTypes(GetControlEventTarget(mControl), GetEventTypeCount(events), events);
|
|
|
|
WantEventTypes(GetControlEventTarget(mControl), GetEventTypeCount(controlEvents), controlEvents);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (mType == kTypeText) {
|
|
|
|
EventTypeSpec events[] = {
|
|
|
|
EventTypeSpec controlFocusEvents[] = {
|
|
|
|
{ kEventClassControl, kEventControlSetFocusPart }
|
|
|
|
};
|
|
|
|
WantEventTypes(GetControlEventTarget(mControl), GetEventTypeCount(events), events);
|
|
|
|
WantEventTypes(GetControlEventTarget(mControl), GetEventTypeCount(controlFocusEvents), controlFocusEvents);
|
|
|
|
ControlKeyFilterUPP proc = mParam.ValuesHaveStrings() ? StdKeyFilterCallback : NumericKeyFilterCallback;
|
|
|
|
// this will fail for a static text field
|
|
|
|
SetControlData(mControl, 0, kControlEditTextKeyFilterTag, sizeof(proc), &proc);
|
|
|
@@ -591,7 +591,7 @@ AUVPresets::AUVPresets (AUCarbonViewBase* inParentView, |
|
|
|
#endif
|
|
|
|
#ifndef __LP64__
|
|
|
|
if (result != noErr) { // if the PresentPreset property is not implemented, fall back to the CurrentPreset property
|
|
|
|
OSStatus result = AudioUnitGetProperty (mView->GetEditAudioUnit(),
|
|
|
|
result = AudioUnitGetProperty (mView->GetEditAudioUnit(),
|
|
|
|
kAudioUnitProperty_CurrentPreset,
|
|
|
|
kAudioUnitScope_Global,
|
|
|
|
0,
|
|
|
|