Skip to content

Instantly share code, notes, and snippets.

View pa-w's full-sized avatar

Paola Villarreal pa-w

View GitHub Profile
public static NSUrl URLForResource (this NSBundle source, string for_resource, string with_extension) {
var ns_for = new NSString(for_resource);
var ns_extension = new NSString(with_extension);
//try and get the resource
var result = Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(
source.Handle,
NSBundleExtensions._Selector_URLForResource,
ns_for.Handle,
Xamarin.iOS
Version: 7.4.0.90 (Business Edition)
Hash: 5978d3d
Branch:
Build date: 2014-08-06 16:07:04-0400
public virtual void DidOutputSampleBuffer (AVCaptureOutput captureOutput, CMSampleBuffer sampleBuffer, AVCaptureConnection connection)
{
CMFormatDescription formatDescription = sampleBuffer.GetVideoFormatDescription ();
if (connection == videoConnection) {
// Get framerate
CMTime timestamp = sampleBuffer.PresentationTimeStamp;
CalculateFramerateAtTimestamp (timestamp);
// Get frame dimensions (for onscreen display)
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
<ProductVersion>10.0.0</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{179AD7DF-4343-4F6E-9875-C38469F3787E}</ProjectGuid>
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Exe</OutputType>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
<ProductVersion>10.0.0</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{179AD7DF-4343-4F6E-9875-C38469F3787E}</ProjectGuid>
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Exe</OutputType>
diff --git a/AQTapDemo/AQTapDemo.csproj b/AQTapDemo/AQTapDemo.csproj
index b14a1c4..eb47645 100644
--- a/AQTapDemo/AQTapDemo.csproj
+++ b/AQTapDemo/AQTapDemo.csproj
@@ -6,7 +6,7 @@
<ProductVersion>10.0.0</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{179AD7DF-4343-4F6E-9875-C38469F3787E}</ProjectGuid>
- <ProjectTypeGuids>{6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
<ProductVersion>10.0.0</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{179AD7DF-4343-4F6E-9875-C38469F3787E}</ProjectGuid>
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Exe</OutputType>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{179AD7DF-4343-4F6E-9875-C38469F3787E}</ProjectGuid>
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Exe</OutputType>
Building: AQTapDemo (Debug|iPhoneSimulator)
Build started 8/28/2014 10:18:28 PM.
__________________________________________________
Project "/Users/paw/Projects/Xamarin/monotouch-samples/AQTapDemo/AQTapDemo.csproj" (Build target(s)):
Target _DetectSdkLocations:
DeveloperRoot: /Applications/Xcode.app/Contents/Developer
DevicePlatform: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
GetPlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
Building Solution: TicTacToe (Debug|iPhoneSimulator)
Building: TicTacToe (Debug|iPhoneSimulator)
Build started 8/29/2014 12:24:34 PM.
__________________________________________________
Project "/Users/paw/Projects/Xamarin/monotouch-samples/TicTacToe/TicTacToe/TicTacToe.csproj" (Build target(s)):
Target _DetectSdkLocations: