Re: static void declaration in apple example code
Re: static void declaration in apple example code
- Subject: Re: static void declaration in apple example code
- From: William Sumner <email@hidden>
- Date: Fri, 12 Oct 2012 09:32:34 -0600
On Sep 22, 2012, at 5:46 PM, Boris Dobroslav <email@hidden> wrote:
> I'm perplexed by one line that appears in the file AVSPDocument.h from the apple example code project AVSimplePlayer:
>
> staticvoid *AVSPPlayerItemStatusContext = &AVSPPlayerItemStatusContext;
This is my preferred method of generating unique KVO contexts. I first heard it from Mike Ash and have used it since.
Preston
_______________________________________________
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