• 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: Runtime check if C function exists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Runtime check if C function exists


  • Subject: Re: Runtime check if C function exists
  • From: Ken Thomases <email@hidden>
  • Date: Wed, 31 Mar 2010 16:56:13 -0500

On Mar 31, 2010, at 4:50 PM, Philip Mobley wrote:

> I am wanting to perform a runtime check to see if a particular C function exists.  While in this particular case, the C function I want to use is only available as part of 10.6 SDK (there are examples of this in archives), but I want to know if there is a runtime method similar to @selector that would work on C generic methods.

Just check the function address (its name without an argument list) against NULL.  There are examples in Apple's cross-development documentation.

http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/cross_development/Using/using.html

Cheers,
Ken

_______________________________________________

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: 
 >Runtime check if C function exists (From: Philip Mobley <email@hidden>)

  • Prev by Date: Runtime check if C function exists
  • Next by Date: Re: -[NSOperationQueue cancelAllOperations] cleans queue, but not immediately?!
  • Previous by thread: Runtime check if C function exists
  • Next by thread: Creating thumbnail of PDF document first page?
  • Index(es):
    • Date
    • Thread