Re: Thunderbolt port audio programmability

2020-03-13 Thread Jens Alfke via Cocoa-dev


> On Mar 12, 2020, at 5:31 PM, Carl Hoefs  
> wrote:
> 
> In iOS, what is the current way to generate precise audio tones? 
> AVFoundation? CoreAudio? AudioUnits?

AudioUnits. It's been a long time since I worked with that API, but I'm pretty 
sure I recall some sample code showing a generator AU that emits a sine wave.

—Jens
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Thunderbolt port audio programmability

2020-03-13 Thread Gerald Henriksen via Cocoa-dev
On Thu, 12 Mar 2020 10:27:25 -0700, you wrote:

>I'm looking at creating an iPhone/iPad app that acts as a dual-channel 
>waveform generator. 
>
>I see two options for the output signal medium: 
> (a) using the audio jack (on suitable devices), or 
> (b) using the Thunderbolt port

As already noted in other messages, there is no Thunderbolt port (at
least not yet).

But you can't assume a lightning connector/port either, as the iPad
Pro's use a USB-C connector/port.

So depending on the use you envision, you might be best going with
whateaver audio is available whether it is an audio device connected
through the lightning/USB-C ports or via Bluetooth.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


How to ask user to grant access ?

2020-03-13 Thread Gabriel Zachmann via Cocoa-dev
PS: 

So far, I am not even getting permissions within the same app invocation.

What I have tried is, when I hit an alias that is also a directory, 
I open an NSOpenPanel with setDirectoryURL: resolved URL of the alias.
The user hits OK, then I try to set up an enumerator with that URL.

However, the enumerator's error handler gives me
  Error Domain=NSCocoaErrorDomain Code=257 "The file “images” couldn’t be 
opened because you don’t have permission to view it."

("images" is the directory name I was trying to enumerate.)

I have checked that the resolved URL of the alias does point to the correct 
directory.


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


How to ask user to grant access ?

2020-03-13 Thread Gabriel Zachmann via Cocoa-dev
I am doing a directory enumeration , collecting a list of files for accessing 
them later.
When I encounter aliases / symlinks, I would like to follow them.

As far as I understand, in a sandboxed app, I need to ask the user to grant my 
app access to the directories the aliases point to.
I guess I have to do that using an NSOpenPanel.
I can point the openPanel to the directory I am asking permission for,
but can I prevent the user from navigating away from that directory?

Thanks a lot in advance.

Best regards, Gabriel

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com