• 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: Ron Fleckner <email@hidden>
  • Date: Tue, 2 Dec 2008 16:54:04 +1100


On 02/12/2008, at 4:34 PM, 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".


Thanks,

Gary

snip

/* Sample code snippet to illustrate the use of ICARegisterForEventNotification() */
};


CFMutableArrayRef array = CFArrayCreate( kCFAllocatorDefault, (const void**)&amp;notificationsOfInterest, 12, &amp;kCFTypeArrayCallBacks );

snip

err = ICARegisterForEventNotification( &amp;pb, registerForEventNotificationCallback );

   CFRelease( array );

   return err;

}

They are almost certainly un-rendered plain '&' tokens which Safari has failed to render properly or perhaps the html was incorrectly written. The clue is that each of them have a semi-colon after them. Have a look at the page's source code to check, but I think you could just remove the the word 'amp' and the semi-colon and it should compile.


Ron
_______________________________________________

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


  • Follow-Ups:
    • Re: ???&amp ??? in ICARegisterForEventNotification Apple Code Sample
      • From: Andrew Farmer <email@hidden>
References: 
 >???&amp ??? in ICARegisterForEventNotification Apple Code Sample (From: M Pulis <email@hidden>)

  • Prev by Date: ???&amp ??? in ICARegisterForEventNotification Apple Code Sample
  • Next by Date: Re: Crash when closing window from the menu
  • Previous by thread: ???&amp ??? in ICARegisterForEventNotification Apple Code Sample
  • Next by thread: Re: ???&amp ??? in ICARegisterForEventNotification Apple Code Sample
  • Index(es):
    • Date
    • Thread