Re: ???& ??? in ICARegisterForEventNotification Apple Code Sample
Re: ???& ??? in ICARegisterForEventNotification Apple Code Sample
- Subject: Re: ???& ??? in ICARegisterForEventNotification Apple Code Sample
- From: Steve Bird <email@hidden>
- Date: Tue, 2 Dec 2008 07:32:40 -0500
On Dec 2, 2008, at 12:34 AM, M Pulis wrote:
Folks,
In the code below, from
http://developer.apple.com/documentation/Carbon/Conceptual/ImageCaptureServicesProgrammingGuide/03HowtoWriteanImageCaptureApplication/chapter_3_section_1.html#/
/apple_ref/doc/uid/TP40005196-CH4-SW1
In the calls CFArrayCreate and ICARegisterForEventNotification, the
code uses a variable called "amp". What is "amp"? As it sits, the
snippet does not compile, stumbling as I have, on "amp".
[ snip ]
(const void**)&notificationsOfInterest, 12,
&kCFTypeArrayCallBacks );
--- The semicolon gives it away: somewhere there's a hyperactive HTML
escaper program which couldn't leave this alone.
"&" is HTML code for ampersand, and is escaped in URLs:
http://htmlhelp.com/tools/validator/problems.html#amp
----------------------------------------------------------------
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
www.Culverson.com (toll free) 1-877-676-8175
_______________________________________________
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