This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyContainer : Canvas { | |
| public MyContainer () | |
| { | |
| Add (new SomeChild (this)); | |
| } | |
| } | |
| class SomeChild : some_child_that_can_be_added_to_a_canvas { | |
| MyContainer PArent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class TransparentOverlay : UIView { | |
| // Note: UITableViewSource is an aggregated version of DataSource + Delegate, convenient | |
| class MySources : UITableViewSource { | |
| TrasparentOverlay container; | |
| public MySources (TrasparentOverlay container) | |
| { | |
| this.container = container; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <deapsquatter> Excuse me. Been doing a lot of Task<> stuff today in MonoTouch. | |
| <deapsquatter> hence looking forward to async , await | |
| <deapsquatter> Gotta say, Im still amazed at how easy developing this fairly complex | |
| iOS app has been using MonoTouch. Thought I would have hit multiple | |
| brick walls by now. But alas its all been plain sailing. Gotta hand | |
| it to Xamarin. Amazing product. | |
| <spl> what's the product? | |
| <deapsquatter> Company I work for is called CentraStage. The iOS app is for managing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > in what way and how far someone can decompile our apps | |
| All software distributed can be decompiled. | |
| If you use C#, people can use C# decompilers. | |
| If you use Java, people can use Java compilers (in Android's case they can use a DEX decompiler, or a DEX to JVM and then a Java decompiler) | |
| If you use native code, they can use IDA Pro that turns native code into source code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/foundation.cs b/src/foundation.cs | |
| index 341704b..c7d8912 100644 | |
| --- a/src/foundation.cs | |
| +++ b/src/foundation.cs | |
| @@ -118,6 +118,12 @@ namespace MonoMac.Foundation | |
| [Export ("initWithAttributedString:")] | |
| IntPtr Constructor (NSAttributedString other); | |
| + [Export ("enumerateAttributesInRange:options:usingBlock:")] | |
| + void EnumerateAttributes (NSRange range, NSAttributedStringEnumeration options, NSAttributedRangeCallback callback); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [[UILabel appearance] setFont:[UIFont italicSystemFontOfSize:100]]; | |
| [[UILabel appearance] setTextColor:[UIColor redColor]]; | |
| [[UILabel appearance] setShadowColor:[UIColor redColor]]; | |
| [[UILabel appearance] setShadowOffset:CGSizeMake(4,4)]; | |
| int i=0; | |
| unsigned int mc = 0; | |
| Method * mlist = class_copyMethodList(object_getClass([UILabel appearance]), &mc); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <signal.h> | |
| #include <pthread.h> | |
| #include <sys/wait.h> | |
| #if defined(__FreeBSD__) || defined(__NetBSD__) | |
| #define SA_STACK SA_ONSTACK | |
| #endif | |
| static void |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .thumb_func _rem | |
| _rem: | |
| push {r7, lr} | |
| mov r7, sp | |
| sub sp, #8 | |
| str r0, [sp, #4] | |
| str r1, [sp] | |
| ldr r0, [sp, #4] | |
| ldr r1, [sp] | |
| bl ___modsi3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Drawing; | |
| using MonoTouch.Foundation; | |
| using MonoTouch.UIKit; | |
| namespace RedparkSDK | |
| { | |
| [BaseType(typeof(NSObject))] | |
| public interface RscMgrDelegate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mono$ ./mmp | |
| mmp - MonoMac Packer, Copyright 2010 Novell Inc., Copyright 2011-2012 Xamarin Inc. | |
| Usage: mmp [options] application-exe | |
| -h, -?, --help Displays the help | |
| -a, --assembly | |