Tracking down CALayer problem in iTunes plug-in
Tracking down CALayer problem in iTunes plug-in
- Subject: Tracking down CALayer problem in iTunes plug-in
- From: Graham Cox <email@hidden>
- Date: Thu, 28 Jul 2011 13:07:06 +1000
I'm developing an iTunes visualizer plug-in using the new SDK, which supports Cocoa views and by extension, layers.
But debugging these things is awkward because it's a plug-in and you can't run iTunes in a debugger. But you can log stuff to the console, which is something.
When I clean-up my visualizer view, I see this in the console:
28/07/11 12:43:40 AM iTunes[22132] attempting to modify layer that is being finalized - 0x1ec78650
This occurs just after my view (which has layers) is deallocated. My visualizer then becomes unusable - the graphics are shot to hell and cease to work, even though it goes through the motions of creating a new view and layers apparently successfully.
If I don't remove my view from the iTunes host view when told to, I don't get this error, and my visualizer works OK subsequently. But it doesn't play nice with other visualizers if I don't clean up my view, so I need to do this.
Where does this error come from and what does it mean? I think I'm being careful not to attempt to modify or access or invoke any methods on any layers after I perform the clean-up, so this appears to be something internal either to iTunes or to the layers subsystem.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden