• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AUGUI, parameters and file selectors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AUGUI, parameters and file selectors


  • Subject: Re: AUGUI, parameters and file selectors
  • From: Marc Poirier <email@hidden>
  • Date: Mon, 13 Mar 2006 16:17:35 -0500

Best option would be to handle the file selector dialog all in the GUI code. I'm not terribly familiar with the workings of AUGUI, but is it possible to connect a custom action of some sort to a button control? If so, it would be best to do it in the GUI code in response to the button being pressed, and then send the file URL as the data to set a custom (private) property on your AU. For an example of doing this, you can look at Turntablist's source code:

http://destroyfx.org/audiounits.html#turntablist

Though note that currently it sends an FSRef as the data rather than a file URL. I intend to change this since an FSRef won't necessarily work if the GUI is running in a different process than the AU component.


If something like that is not possible with AUGUI, then the next best option would be to make the parameter be unpublished/private and otherwise do things as you are. However, it's really best not to do that because, as has been stated many times before, there should be no GUI code in your base AU component, and a file selector is GUI stuff.



Marc



On Mar 13, 2006, at 4:07 PM, Malcolm Haylock wrote:

Hi Everyone,

I have an AU that was built using Urs Heckman's CAUGUI but I am moving it to Airy's AUGUI to support composite windows.

I want to implement a button in the AUView that produces a standard file selector window. Currently I do this by associating this button with a parameter so that, when the button is pushed, the change in parameter prompts the AU to display the file selector dialog (done in SetParameter()). The only problem is that the file selector window occurs when the AU is being validated.

How should I be implementing such an action? If I don't associate the button with a parameter then I assume I can't use AUGUI to create and manage the control.

Thanks,
Malcolm Haylock

_______________________________________________ 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
References: 
 >AUGUI, parameters and file selectors (From: Malcolm Haylock <email@hidden>)

  • Prev by Date: AUGUI, parameters and file selectors
  • Next by Date: Re: AUGUI, parameters and file selectors
  • Previous by thread: AUGUI, parameters and file selectors
  • Next by thread: Re: AUGUI, parameters and file selectors
  • Index(es):
    • Date
    • Thread