• 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
Debugging cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debugging cocoa


  • Subject: Debugging cocoa
  • From: john smith <email@hidden>
  • Date: Fri, 20 Feb 2009 11:34:39 +0100
  • Importance: Normal



Hi,

I build an AU with a cocoa view using the XCode template. I'm trying to debug it, using AULab, but unfortunately breakpoints are only triggered in the carbon (i.e. the "effect") part of the code.

In the cocoa code the breakpoints have the colour that indicates that the code is not loaded.

My best guess is that it seems there's 2 copies of the bundle.. One in my debug folder, and one inside the AU.

How does the code know where to find the bundle anyway? I mean, I understand that GetProperty is called with kAudioUnitProperty_CocoaUI, but in the template generated code there's no path or anything, there's just this code:

CFBundleRef bundle = CFBundleGetBundleWithIdentifier( CFSTR("com.yourcompany.cocoatest") );

if (bundle == NULL) return fnfErr;

                

CFURLRef bundleURL = CFBundleCopyResourceURL( bundle, 

               CFSTR("KeyToSoundcocoatest_CocoaViewFactory"), 

                CFSTR("bundle"), 

                NULL);

  

So, I guess there's a search path, and the AU is (recursively) included in the search path? Or?

Anyway, I'm not sure this is the cause of the my problem, just a wild guess.


Thanks,

Michael Olsen




Get news, entertainment and everything you care about at Live.com. Check it out!
 _______________________________________________
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: Debugging cocoa
      • From: tahome izwah <email@hidden>
    • Re: Debugging cocoa
      • From: Marcelo Cicconet <email@hidden>
References: 
 >Audio unit hosting (From: James Membrez <email@hidden>)
 >Re: Audio unit hosting (From: William Stewart <email@hidden>)

  • Prev by Date: Cocoa and future
  • Next by Date: Re: Cocoa and future
  • Previous by thread: Re: Cocoa and future
  • Next by thread: Re: Debugging cocoa
  • Index(es):
    • Date
    • Thread