• 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
Re: ???&amp ??? in ICARegisterForEventNotification Apple Code Sample
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ???&amp ??? in ICARegisterForEventNotification Apple Code Sample


  • Subject: Re: ???&amp ??? 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**)&amp;notificationsOfInterest, 12, &amp;kCFTypeArrayCallBacks );

--- The semicolon gives it away: somewhere there's a hyperactive HTML escaper program which couldn't leave this alone.


"&amp;" 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


References: 
 >???&amp ??? in ICARegisterForEventNotification Apple Code Sample (From: M Pulis <email@hidden>)

  • Prev by Date: Re: Help on Sparkle
  • Next by Date: very different width for space character when not using screen fonts
  • Previous by thread: Re: ???&amp ??? in ICARegisterForEventNotification Apple Code Sample
  • Next by thread: Time measurement
  • Index(es):
    • Date
    • Thread