• 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: Warnings and tips for using AUGenericView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warnings and tips for using AUGenericView


  • Subject: Re: Warnings and tips for using AUGenericView
  • From: William Stewart <email@hidden>
  • Date: Thu, 7 Aug 2008 19:25:09 -0700

Well, I can appreciate your concerns and certainly appreciate your comments and diagnosis. So, thank you for sharing your hard-won insights and investigations.

However, I think your conclusion is over-stated. We've been using this view in AULab now for 2 OS releases and it seems to me to both usable and stable enough within that context. It could certainly be the case that we are using it in a very "friendly" manner - like only creating it when we are going to display it, and not attempting to manipulate it directly, managing its appearance (and disappearance carefully, and primarily letting the user control its sizing (which we do restore when we re-open a document).

From many of the issues that you raised, there does seem to be workable solutions. I didn't get the impression there was an absolute deal breaker until I read your conclusion. So, perhaps you can tell us which particular issue you are most concerned about and why and we can see if you can sort that out

Thanks

Bill

On Aug 7, 2008, at 2:04 PM, Christopher Ashworth wrote:

On Aug 7, 2008, at 3:38 PM, Christopher Ashworth wrote:

4) The viewWillMoveToWindow bug that leads to a crash, originally described here:


http://lists.apple.com/archives/coreaudio-api/2007/Nov/msg00019.html

still exists, so be careful how you manipulate your views.

Additionally:

This crash occurs when a call to AUGenericView's viewWillMoveToWindow: is given nil for the new window. Attempting to avoid this crash by subclassing AUGenericView does not appear to be possible, because the retain count of the view is modified by AUGenericView's implementation of viewWillMoveToWindow. Basically, the permutations are as follows:

- by default, if you try to remove an AUGenericView from its superview, viewWillMoveToWindow will be called with a nil newWindow and you'll crash

- if you subclass AUGenericView and override viewWillMoveToWindow: to avoid passing it along only when newWindow is nil, the view will work (including updating controls while the AU runs), but the view will never be released.

- if you subclass AUGenericView and override viewWillMoveToWindow: to avoid *ever* passing it along to AUGenericView, the view will basically work and not get leaked, except that the controls in the view will not be updated while the AU runs.

If anyone knows some clever way to make AUGenericView usable I'd love to hear it. Otherwise it appears I'll need to re-implement my own version of it.

Thanks,
Chris

_______________________________________________
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
  • Follow-Ups:
    • Re: Warnings and tips for using AUGenericView
      • From: Christopher Ashworth <email@hidden>
References: 
 >Warnings and tips for using AUGenericView (From: Christopher Ashworth <email@hidden>)
 >Re: Warnings and tips for using AUGenericView (From: Christopher Ashworth <email@hidden>)

  • Prev by Date: Re: Network MIDI protocol spec?
  • Next by Date: Re: [RANT] *Really* getting frustrated now (AU Cocoa UI template STILL not working)
  • Previous by thread: Re: Warnings and tips for using AUGenericView
  • Next by thread: Re: Warnings and tips for using AUGenericView
  • Index(es):
    • Date
    • Thread