Re: Digital Performer Cocoa support - wraps Carbon?
Re: Digital Performer Cocoa support - wraps Carbon?
- Subject: Re: Digital Performer Cocoa support - wraps Carbon?
- From: Stephen Blinkhorn <email@hidden>
- Date: Thu, 11 Feb 2010 09:19:55 -0600
Hi,
Sounds familiar. I had some problems with sheets in DP6 so I switched
to using [NSOpenPanel runModalForDirectory:file:types:] which returns
an NSInteger when the user clicks on Open or Cancel. I much preferred
sheets to be honest but it wasn't to be although they worked fine in
DP7 apparently.
I also have problems with my Cocoa AU stealing keyboard events from DP
(save session, spacebar etc) which presents a suboptimal user
experience in my view.
Stephen
On 11 Feb 2010, at 04:13, Os wrote:
Hi,
I'm experiencing some odd behaviour with my AUs in Digital Performer
and I wondered if anyone could share any relevant wisdom.
I recently added Cocoa UIs to my plug-ins. These work perfectly in
Logic and Live. However in DP I'm getting crashes. Looking at the
stack traces, it looks like DP is actually a Carbon app still and is
wrapping Cocoa UIs somehow. I'm puzzled as to why it does this when
the plug-in has a perfectly good Carbon UI available.
What I'd like to do is detect if the application is actually Carbon
and not expose the Cocoa UI. If it comes to it I'll just check the
process names and detect if it's DP, but I'd really rather not have
to.
The specific problem I'm having is that my Cocoa UI is putting up a
dialog with NSApp runModalForWindow, and stopping it with NSApp
stopModal. In DP runModalForWindow looks like it's calling down to a
Carbon modal loop which is not terminated by stopModal, so the app
hangs and gets very confused about window states.
Any help appreciated.
cheers,
os.
--
email@hidden
http://twitter.com/expertsleepers
http://www.darkroomtheband.net/
http://www.expert-sleepers.co.uk/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden