Vuo  1.2.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VuoApp.h File Reference

Description

VuoApp interface.

Functions

bool VuoApp_isMainThread (void)
 Is the current thread the main thread?
 
void VuoApp_executeOnMainThread (void(^block)(void))
 Executes the specified block on the main thread, then returns.
 
char * VuoApp_getName (void)
 Returns the composition's name.
 

Function Documentation

void VuoApp_executeOnMainThread ( void(^)(void)  block)

Executes the specified block on the main thread, then returns.

Can be called from any thread, including the main thread (avoids deadlock).

char* VuoApp_getName ( void  )

Returns the composition's name.

If the composition is running in Vuo Editor (via VuoCompositionLoader), it extracts the name from the most-recently-loaded dylib's path. If the composition has been saved, this matches the composition's source filename. If not, it returns the text "Vuo Composition".

If the composition is running standalone, it tries the following Info.plist keys:

  • CFBundleDisplayName
  • CFBundleName
  • CFBundleExecutable

If none of those keys exist, it uses the executable's path.

The caller is responsible for freeing the returned string.

bool VuoApp_isMainThread ( void  )

Is the current thread the main thread?