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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to