301 Moved Permanently

301 Moved Permanently


cloudflare
how_to_use_the_thinkgear_api_in_xcode_mac_os_x.txt ยท Last modified: 2014/06/26 14:23 by Amine Bouchti

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
how_to_use_the_thinkgear_api_in_xcode_mac_os_x [2014/06/26 14:06]
Amine Bouchti [Setting up Xcode]
how_to_use_the_thinkgear_api_in_xcode_mac_os_x [2014/06/26 14:23]
Amine Bouchti [Setting up Xcode]
Line 20: Line 20:
 The only requirement for loading ''​ThinkGear.bundle''​ is that the Core Foundation framework be included in your project'​s list of external frameworks and libraries. This can be done by clicking on "​HelloEEG"​ under "​TARGETS"​ section in your Xcode project window as shown in the following image. The only requirement for loading ''​ThinkGear.bundle''​ is that the Core Foundation framework be included in your project'​s list of external frameworks and libraries. This can be done by clicking on "​HelloEEG"​ under "​TARGETS"​ section in your Xcode project window as shown in the following image.
  
-Under the general tab scroll down to **Linked Frameworks and Libraries**,​ then click on the triangle to expand it. Next, click the next "​**+**"​ button and Look for the ''​CoreFoundation.framework'',​ and then click **Add**. The image below shows what your project window should look like once the Core Foundation framework has been added.+Under the general tab scroll down to **Linked Frameworks and Libraries**,​ then click on the triangle to expand it. Next, click the next "​**+**"​ button and Look for the ''​CoreFoundation.framework'',​ and then click **Add**. ​
  
 {{:​screen_shot_2014-06-26_at_1.52.40_pm.png?​600|}} {{:​screen_shot_2014-06-26_at_1.52.40_pm.png?​600|}}
  
 {{:​screen_shot_2014-06-26_at_2.05.38_pm.png?​600|}} {{:​screen_shot_2014-06-26_at_2.05.38_pm.png?​600|}}
 +
 +The image below shows what your project window should look like once the Core Foundation framework has been added.
 +
 +{{:​screen_shot_2014-06-26_at_2.08.36_pm.png?​600|}}
 +
 +Note: If HelloEEG does not compile and you see the following error, try deleting and re-adding ThinkGear.framework under Frameworks and Libraries from the menu shown below.
 +
 +{{:​thinkgear_error_screenshot.png|}}
 +
 +  - Click **ThinkGear.framework** and then click the **-** button.
 +  - Click the **+** button and then click **Add Other**
 +  - Find and add **ThinkGear.framework** in **TG-SDK** --> **TG-SDK For Mac** --> **lib** --> **ThinkGear.framework**
 +
 +
 +If HelloEEG is run without connecting the ThinkGear-enabled headset, the application should look like this:
 +
 +{{:​screen_shot_2014-06-06_at_11.37.13_am.png|}}
 +
 +Once the headset is connected, run the application once again. The application should now look like this:
 +
 +{{:​screen_shot_2014-06-06_at_1.07.14_pm.png|}}
 +
 +If the Poor Signal data reads 0, Meditation and Attention data should be fluctuating every second. If Poor Signal reads something other than 0, re-adjust the headset accordingly until Poor Signal data goes down to 0.
 +
 +At this point, you should be able to browse the code, make modifications,​ compile, and deploy the app to your device or emulator just like any typical OS X application.
 ====== Importing ThinkGear Functions ====== ====== Importing ThinkGear Functions ======
 At the top of your header or implementation,​ you should include the Core Foundation library: At the top of your header or implementation,​ you should include the Core Foundation library:
301 Moved Permanently

301 Moved Permanently


cloudflare