[MonoTouch] String named monotouch assembly
Is there a strong named version of the monotouch.dll assembly? I can't sign my own assembly without one. -- View this message in context: http://monotouch.2284126.n4.nabble.com/String-named-monotouch-assembly-tp4655948.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] String named monotouch assembly
Out of interest, why do you need it? You only ship the compiled EXE (ie, ARM binary code), not any IL code, so strong naming it would have little or no effect. (yes, there are DLL's in the .app package but they are stripped down, and only have headers in - they are just used for (I think) debug and metadata) On Fri, Jul 13, 2012 at 8:39 AM, Ergwun geoff.bat...@nicta.com.au wrote: Is there a strong named version of the monotouch.dll assembly? I can't sign my own assembly without one. -- View this message in context: http://monotouch.2284126.n4.nabble.com/String-named-monotouch-assembly-tp4655948.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Monotouch application is getting crashed in device but works fine in simulator
Is this the same SDK? https://github.com/ericc59/monotouch-redpark ? On Thu, Jul 12, 2012 at 12:26 PM, srividya srividy...@changepond.com wrote: I'm binding a third party(red park sdk) in monotouch. I have created wrapper for red park dll by using monotouch binding project and implement the dll in simple application. On assigning the delegate the application crashes. This my code for assigning the delegate rsc=new RscMgr(); RscMgrDelegate del=new MyRedParkDelegate(); System.Diagnostics.Debug.WriteLine(this+del); rsc.SetDelegate(del); The crash i'm getting is Incident Identifier: D4781D02-9D0A-427B-BD33-D867720E9CB6 CrashReporter Key: ecaef65d635cbb77be4760eebfa4b05b6be49112 Hardware Model: iPhone3,1 Process: TestRedParkSDK [498] Path: /var/mobile/Applications/5574681C-8028-474D-B0AA-3C71B3C7EA39/TestRedParkSDK.app/TestRedParkSDK Identifier: TestRedParkSDK Version: ??? (???) Code Type: ARM (Native) Parent Process: launchd [1] Date/Time: 2012-07-12 15:09:48.635 +0530 OS Version: iPhone OS 5.1.1 (9B206) Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_PROTECTION_FAILURE at 0x2fd00ff8 Crashed Thread: 0 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 CoreFoundation 0x37391ca0 0x3737b000 + 93344 1 CoreFoundation 0x373f99c8 0x3737b000 + 518600 2 CoreFoundation 0x3737c848 0x3737b000 + 6216 3 CoreFoundation 0x3737c13e 0x3737b000 + 4414 4 CoreFoundation 0x37391792 0x3737b000 + 92050 362 TestRedParkSDK 0x00020278 0x1000 + 127608 371 TestRedParkSDK 0x00263da8 0x1000 + 2502056 372 TestRedParkSDK 0x00020278 0x1000 + 127608 373 TestRedParkSDK 0x000fd04c 0x1000 + 1032268 ... Thread 1 name: Dispatch queue: com.apple.libdispatch-manager Thread 1: 0 libsystem_kernel.dylib 0x315db3a8 0x315da000 + 5032 1 libdispatch.dylib 0x30560ea4 0x30554000 + 52900 2 libdispatch.dylib 0x30560bc2 0x30554000 + 52162 Thread 2: 0 libsystem_kernel.dylib 0x315ebcd4 0x315da000 + 72916 1 libsystem_c.dylib 0x33ca3f36 0x33c9b000 + 36662 2 libsystem_c.dylib 0x33ca3cc8 0x33c9b000 + 36040 Thread 3: 0 libsystem_kernel.dylib 0x315eb470 0x315da000 + 70768 1 libsystem_c.dylib 0x33ca66d0 0x33c9b000 + 46800 2 TestRedParkSDK 0x001ad9a4 0x1000 + 176 3 TestRedParkSDK 0x001aeaec 0x1000 + 1759980 4 TestRedParkSDK 0x001ae918 0x1000 + 1759512 5 TestRedParkSDK 0x001ad71c 0x1000 + 1754908 6 TestRedParkSDK 0x001b07e8 0x1000 + 1767400 7 Foundation 0x37c1aa7a 0x37c0a000 + 68218 8 Foundation 0x37cae58a 0x37c0a000 + 673162 9 libsystem_c.dylib 0x33ca972e 0x33c9b000 + 59182 10 libsystem_c.dylib 0x33ca95e8 0x33c9b000 + 58856 Thread 4: 0 libsystem_kernel.dylib 0x315ebcd4 0x315da000 + 72916 1 libsystem_c.dylib 0x33ca3f36 0x33c9b000 + 36662 2 libsystem_c.dylib 0x33ca3cc8 0x33c9b000 + 36040 Thread 5: 0 libsystem_kernel.dylib 0x315db054 0x315da000 + 4180 1 TestRedParkSDK 0x00250590 0x1000 + 2422160 2 TestRedParkSDK 0x001f3a72 0x1000 + 2042482 3 TestRedParkSDK 0x0023ae72 0x1000 + 2334322 4 TestRedParkSDK 0x0024bf8a 0x1000 + 2404234 5 TestRedParkSDK 0x0025dd74 0x1000 + 2477428 6 libsystem_c.dylib 0x33ca972e 0x33c9b000 + 59182 7 libsystem_c.dylib 0x33ca95e8 0x33c9b000 + 58856 Thread 6 name: WebThread Thread 6: 0 libsystem_kernel.dylib 0x315db004 0x315da000 + 4100 1 libsystem_kernel.dylib 0x315db1fa 0x315da000 + 4602 2 CoreFoundation 0x374083ec 0x3737b000 + 578540 3 CoreFoundation 0x37407124 0x3737b000 + 573732 4 CoreFoundation 0x3738a49e 0x3737b000 + 62622 5 CoreFoundation 0x3738a366 0x3737b000 + 62310 6 WebCore 0x32d33c9c 0x32c8a000 + 695452 7 libsystem_c.dylib 0x33ca972e 0x33c9b000 + 59182 8 libsystem_c.dylib 0x33ca95e8 0x33c9b000 + 58856 Thread 0 crashed with ARM Thread State: r0: 0x00627970r1: 0x0004 r2:
Re: [MonoTouch] Binding an interface that conforms to multiple protocols
could you: Make one wrapper for GDiOSDelegate Make one wrapper for UIApplicationDelegate (you have this already) Use the delegate pattern to make a new GDiOSDelegate, have whatever you are using call THAT object, and relay the calls back to your main class? On Tue, Jul 10, 2012 at 4:23 PM, tkacem thabe...@hotmail.com wrote: Hi Nic, Thanks for your reply. The interface definition is as follows: *@interface GDExtended : NSObject UIApplicationDelegate,GDiOSDelegate - (void) handleEvent:(GDAppEvent *)anEvent; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; @end* *@implementation GDExtended - (id)init { self = [super init]; if (self) { // Initialization code here. } return self; } - (void) handleEvent:(GDAppEvent *)anEvent { } - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { return YES; } @end * I am trying to wrap this in c# knowing that c# does not allow multiple implementation. I wrote the wrapper for this interface in c# (I need the GDiOSDelegate in order to create the event handler method which should communicate with components from UIApplicationDelegate class). The problem is that when I inherit GDExtended in a sample monotouch application that uses the created Dll, I get an error that my class does not implement UIApplicationDelegate. Your prompt attention to this message is highly appreciated. Thanks, Thabet -- View this message in context: http://monotouch.2284126.n4.nabble.com/Binding-an-interface-that-conforms-to-multiple-protocols-tp4655661p4655901.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Converting a UTType to a Mime Type
I'd file a bug, at least to get clarification on where it is. It's possible that it's been moved to another class - but without my mac, I can't tell where :) On Wed, Jul 11, 2012 at 2:45 AM, Felix Collins fe...@intranel.com wrote: Hi, I need to convert a UTType to its equivalent mime type. There are loads of obj c examples but they use methods on the UTType class. The Monotouch.MobileCoreServices.UTType does not seem to have these methods. Is this an oversight? How have other dealt with this problem? Should I log a bug for this? Cheers, Felix http://developer.apple.com/library/mac/#documentation/MobileCoreServices/Reference/UTTypeRef/Reference/reference.html -- View this message in context: http://monotouch.2284126.n4.nabble.com/Converting-a-UTType-to-a-Mime-Type-tp4655921.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Frozen at splash screen
Thanks - that is consistent with what I have seen. It was a dev build, and I got the customer to restart the phone and it was OK afterwards. I am running threads to go and get data but these are only started in the App Finished Loading delegate method. I just hope its limited to dev builds. -- View this message in context: http://monotouch.2284126.n4.nabble.com/Frozen-at-splash-screen-tp4655934p4655953.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
[MonoTouch] A little help converting a ObjC example
Hi guys, Im trying to display a scroll view with a permanently visible vertical scrollbar. I found this example: http://www.developers-life.com/scrollview-with-scrolls-indicators-which-are-shown-all-the-time.html but I *think* its trying to override setAlpha, which isn't visible in MonoTouch. I know its against the guidelines but in the situation Im in it makes sense. At least until I see it in practice. :) Thanks Hairy -- View this message in context: http://monotouch.2284126.n4.nabble.com/A-little-help-converting-a-ObjC-example-tp4655954.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] A little help converting a ObjC example
Im understanding the sample a little better now, its actually overriding the setAlpha of a contained image view. I think -- View this message in context: http://monotouch.2284126.n4.nabble.com/A-little-help-converting-a-ObjC-example-tp4655954p4655955.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] A little help converting a ObjC example
At a guess: Make public class HJUIImageView : UIImageView { ... more stuff here, new constructors etc) Check if Alpha is virtual. if it is, override: public override float Alpha { get { ...} //port the obj-c code they used. set {} (just call base.Alpha = value?) } Otherwise not sure. :) The use HJUIImageView rather than using UIImageView 2. 3. PROFIT! (or, have a beer, it's friday!) :) On Fri, Jul 13, 2012 at 12:32 PM, HairyJohn m...@johnhair.com wrote: Hi guys, Im trying to display a scroll view with a permanently visible vertical scrollbar. I found this example: http://www.developers-life.com/scrollview-with-scrolls-indicators-which-are-shown-all-the-time.html but I *think* its trying to override setAlpha, which isn't visible in MonoTouch. I know its against the guidelines but in the situation Im in it makes sense. At least until I see it in practice. :) Thanks Hairy -- View this message in context: http://monotouch.2284126.n4.nabble.com/A-little-help-converting-a-ObjC-example-tp4655954.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] A little help converting a ObjC example
Good shot Nick! Alpha is indeed virtual, but when overriding it the setter is never called. Will have a play over the weekend see if I can figure something out. Is it beer o'clock yet?? Cheers Hairy myCal PRO is now available on the Apple AppStore and can be downloaded from (iTunes link) here. Or try out the free (ad supported) version (iTunes link) here. Click a banner ad or two! From: Nic Wise n...@fastchicken.co.nz Sent: 13 July 2012 12:49 To: HairyJohn m...@johnhair.com Subject: Re: [MonoTouch] A little help converting a ObjC example At a guess: Make public class HJUIImageView : UIImageView { ... more stuff here, new constructors etc) Check if Alpha is virtual. if it is, override: public override float Alpha { get { ...} //port the obj-c code they used. set {} (just call base.Alpha = value?) } Otherwise not sure. :) The use HJUIImageView rather than using UIImageView 2. 3. PROFIT! (or, have a beer, it's friday!) :) On Fri, Jul 13, 2012 at 12:32 PM, HairyJohn m...@johnhair.com wrote: Hi guys, Im trying to display a scroll view with a permanently visible vertical scrollbar. I found this example: http://www.developers-life.com/scrollview-with-scrolls-indicators-which-are- shown-all-the-time.html but I *think* its trying to override setAlpha, which isn't visible in MonoTouch. I know its against the guidelines but in the situation Im in it makes sense. At least until I see it in practice. :) Thanks Hairy -- View this message in context: http://monotouch.2284126.n4.nabble.com/A-little-help-converting-a-ObjC-examp le-tp4655954.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Frozen at splash screen
Quite possibly it would have zapped it if I had left it long enough. But mine definitely wasn't getting into FinishedLoading. On 12 July 2012 12:47, Nic Wise n...@fastchicken.co.nz wrote: Interestingly, Springboard is ment to kill your app after 17 seconds or so. So it's finishing FinishedLoading, and spinning off somewhere else. On Thu, Jul 12, 2012 at 12:42 PM, Matt Jones m...@miterdale.net wrote: I've seen this in dev builds I've circulated, from time to time. Power off/power on has fixed it for me in the past. I've also noticed that it can be de-installed and re-installed (without a power down cycle) and I can get the same problem. It's rare though and I haven't seen it recently. (From traces I can see the app delegate wasn't getting launched at all. Something in the MT startup?) Cheers, Matt On 12 July 2012 11:17, stevek steve.ke...@solvd.co.uk wrote: I have an app that is (usually) working quite well but one of my users now cannot start the app. I locks up on the splash screen and then sits there for about 10 mins. He has mailed trough the exception report but I don't really see any useful information in there: Has anyone seen anything like this or have any suggestions? 11/07/2012 17:00:15: monotouch Selector invoked from objective-c on a managed object (0x908DE80) that has been GC'ed at MonoTouch.ObjCRuntime.Runtime.ConstructNSObject (IntPtr ptr, IntPtr klass) [0x00044] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:210 at MonoTouch.ObjCRuntime.Runtime.GetNSObject (IntPtr ptr) [0x0001f] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:254 at MonoTouch.ObjCRuntime.Runtime.GetNSObjectWrapped (IntPtr ptr) [0x0] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:271 at (wrapper native-to-managed) MonoTouch.ObjCRuntime.Runtime:GetNSObjectWrapped (intptr) at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00042] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29 at MonoTouch.UIKit.UIApplication.Main (System.String[] args) [0x0] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:34 at Spray.Application.Main (System.String[] args) [0x0] in /Users/solvdltd/Projects/Spray/Spray/Main.cs:32 -- View this message in context: http://monotouch.2284126.n4.nabble.com/Frozen-at-splash-screen-tp4655934.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] String named monotouch assembly
We're not making an app. We're making a version of our .NET library that other developers can use in their MonoTouch project. -- View this message in context: http://monotouch.2284126.n4.nabble.com/String-named-monotouch-assembly-tp4655948p4655960.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] String named monotouch assembly
Hey, Unless you plan on supplying the developers with the private key, there's not much point in this. MonoTouch will post-process assemblies during the linking phase to strip out excess classes/methods/fields to reduce the size of the app. During this process the signing will be invalidated anyway. There are no benefits to strong naming if you're targeting MonoTouch or Mono for Android. Alan On 13 July 2012 14:19, Ergwun geoff.bat...@nicta.com.au wrote: We're not making an app. We're making a version of our .NET library that other developers can use in their MonoTouch project. -- View this message in context: http://monotouch.2284126.n4.nabble.com/String-named-monotouch-assembly-tp4655948p4655960.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] String named monotouch assembly
Thanks for your reply, Alan. I realize that assembly identification and authentication is not an issue when it's all AOT compiled and statically linked etc. It's just that our existing product includes multiple strong named assembles that expose internals to each other, and I was hoping to avoid another code change for the MonoTouch version. It's not a big deal though. Cheers. -- View this message in context: http://monotouch.2284126.n4.nabble.com/String-named-monotouch-assembly-tp4655948p4655962.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Binding an interface that conforms to multiple protocols
The easiest way to bind these types of classes is to subclass one of them and then manually bind the other class's methods. Hope that helps, Jeff On Tue, Jul 10, 2012 at 11:23 AM, tkacem thabe...@hotmail.com wrote: Hi Nic, Thanks for your reply. The interface definition is as follows: *@interface GDExtended : NSObject UIApplicationDelegate,GDiOSDelegate - (void) handleEvent:(GDAppEvent *)anEvent; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; @end* *@implementation GDExtended - (id)init { self = [super init]; if (self) { // Initialization code here. } return self; } - (void) handleEvent:(GDAppEvent *)anEvent { } - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { return YES; } @end * I am trying to wrap this in c# knowing that c# does not allow multiple implementation. I wrote the wrapper for this interface in c# (I need the GDiOSDelegate in order to create the event handler method which should communicate with components from UIApplicationDelegate class). The problem is that when I inherit GDExtended in a sample monotouch application that uses the created Dll, I get an error that my class does not implement UIApplicationDelegate. Your prompt attention to this message is highly appreciated. Thanks, Thabet -- View this message in context: http://monotouch.2284126.n4.nabble.com/Binding-an-interface-that-conforms-to-multiple-protocols-tp4655661p4655901.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Side Navigation (a la Path and Facebook)
FWIW I also found this C# project: https://bitbucket.org/thedillonb/monotouch.slideoutnavigation/ Seems there are many Xcode variants. Here are a few: https://github.com/ktatroe/sidepanel-ios https://github.com/jaredsinclair/JSSlidingViewController Gerry On Jul 12, 2012, at 8:35 AM, Greg Munn g...@cinandgreg.com wrote: Nic, https://github.com/sgmunn/MonoKit/blob/master/MonoKit.iOS/UI/ViewDeck/ViewDeckController.cs I'm pretty much done I think - I just need to get the sample working nicely. https://github.com/sgmunn/MonoKit/blob/master/Samples/ViewDeckSample/ViewDeckSample.csproj The sample is very rough ATM and you have to try and pan while not clicking the huge button I shoved in each view. I'll report back when the sample is worth looking at. Cheers, Greg On 11/07/2012, at 6:57 PM, Nic Wise wrote: ah ok! I couldn't find the other one, so I assumed you had renamed it already :) On Wed, Jul 11, 2012 at 12:30 AM, Greg Munn g...@cinandgreg.com wrote: Nic, I started on the SlidingViewController but it didn't have what I wanted -- use this one instead which I should have *finished* in the next day or two. https://github.com/sgmunn/MonoKit/blob/master/Test/Class2.cs the class will have the same name, it'll just be in its proper spot. Cheers, Greg On 11/07/2012, at 12:30 AM, Nic Wise wrote: oooh, that one looks good. Direct link, for the moment: https://github.com/sgmunn/MonoKit/blob/master/MonoKit.iOS/UI/ViewControllers/SlidingViewController.cs (Unless you finish it before I have time to put it in my app, if I make changes, I'll pull-request them back in) On Tue, Jul 10, 2012 at 2:35 PM, Greg Munn g...@cinandgreg.com wrote: I also found ViewDeck, https://github.com/Inferis/ViewDeck, which is a bit more involved but has a few more features (including a bounce) when pulling the view too far. I've had a crack at porting it and so far it has come along quite nicely. my port is https://github.com/sgmunn/MonoKit -- search for Class2.cs (still in progress :). Cheers, Greg On 05/07/2012, at 7:03 PM, Nic Wise wrote: Thanks Greg. I might try to port that over - looks like a nice implementation. On Thu, Jul 5, 2012 at 12:12 AM, Greg Munn g...@cinandgreg.com wrote: This one is written in Obj-C and flies out from the bottom, but you could adapt it easily enough. https://github.com/iridia/IRSlidingSplitViewController On 04/07/2012, at 11:59 PM, Nic Wise wrote: (there is a 40k limit in posts, so... this is now plaintext) James Clancey has done a basic version of it: https://github.com/Clancey/FlyOutNavigation I've not seen anything else, tho. But on the surface, it shouldn't be too hard. Two views, one under the other. Trigger something (button) and animate the top view away. Trigger something (gesture?) and animate it back in. I did a basic one, with a huge UIImageView as the background, and you hit something, and it just scrolled over the show the left side. so, assuming you have a 320x2 x 480 image (non-retina) as the background view (BaseView), the button (trigger) just calls SetInitialPage(0, true) for the left side, and 0,true for the right side. BaseView = new UIView(new RectangleF(new PointF(0,0), Resources.Background.Size)); //Resources.Background is the big image! baseView.BackgroundColor = Resources.MoleskineBackgroundColor; //it's a color, but it's a pattern View.AddSubview(baseView); //just add it into the View's view... this is all just in a UIViewController public void TogglePage() { page = (page == 1) ? 0 : 1; SetInitialPage(page); sideButton.SetTitle((page == 1) ? : , UIControlState.Normal); } public override void SetInitialPage(int page, bool animate = true) { if (animate) { UIView.BeginAnimations(pagescroll); UIView.SetAnimationDuration(0.75f); UIView.SetAnimationCurve(UIViewAnimationCurve.EaseInOut); } if (page == 0) { var baseViewBounds = BaseView.Bounds; baseViewBounds.X = 0; BaseView.Bounds = baseViewBounds; } else { var baseViewBounds = BaseView.Bounds; baseViewBounds.X = BaseView.Bounds.Width - 320; BaseView.Bounds = baseViewBounds; } if (animate) { UIView.CommitAnimations(); } base.SetInitialPage(page, animate); } ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
Re: [MonoTouch] ObjectDisposedException Help?
User error. Monotouch was working properly. I forgot that I had a delegate listener that would abort all active WCF requests whenever my model changed. Well, I was changing my model and, therefore, it was aborting and closing the request that I had just made so monotouch was GC'ing it, as it should. -- View this message in context: http://monotouch.2284126.n4.nabble.com/ObjectDisposedException-Help-tp4655965p4655967.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
[MonoTouch] Create a Custom Rating Analyzer Bar with CoreGraphics Help Needed Urgently ---
Hello and Greetings. I am trying to develop a rating analyzer application. I have placed a UIImageView, a slider control, and a simple button on a screen. My logic is that as the user slides the slider control either up or down and then click on the button, the UIImageView will render a horizontal bar which will be partially filled with some color [obviously there will be a base color and a top color for this bar] depending on the value of the slider. I have developed some code, after doing a hell of a lot of googling gathering resources from here and there, but as it stands I am not getting any output. The bar is not getting created. The image view is totally blank. I am totally new to IOS App Development. In .Net I have scarcely used GDI+, so my foundations are not that strong. Please help me rectify the situation by spotting the errors in my code block. I really need some active help on this one. Here are the code blocks that I am using : The code that is supposed to create the image object-- private UIImage makeProgressImage (int width, int height, float progress, CGColor baseColor, CGColor topColor) { CGBitmapContext ctx = new CGBitmapContext (IntPtr.Zero, width, height, 8, 4 * width, CGColorSpace.CreateDeviceRGB (), CGImageAlphaInfo.PremultipliedFirst); ctx.SetFillColor(baseColor); ctx.FillRect (new RectangleF (0, 0, width, height)); float percentWidth = width * progress; ctx.SetFillColor(topColor); ctx.FillRect (new RectangleF (0, 0, percentWidth, height)); return UIImage.FromImage (ctx.ToImage ()); } The functions that are presetting the base color and top colors for the bar - private CGColor getTopColor () { return new CGColor (10, 12, 25); } private CGColor getBaseColor () { return new CGColor (20, 24, 50); } Finally the function call in my Button click event -- partial void basicTouch (MonoTouch.UIKit.UIButton sender) { image.Image = makeProgressImage ((int)image.Bounds.Width - 20, 30, percentage.Value, getBaseColor (), getTopColor ()); } See the screen shot for easier understanding: http://monotouch.2284126.n4.nabble.com/file/n4655957/shot.png In the blank space there's supposed to be the horizontal bar rendered, where I have placed my UIImageView control. Please help me. Many Thanks. -- View this message in context: http://monotouch.2284126.n4.nabble.com/Create-a-Custom-Rating-Analyzer-Bar-with-CoreGraphics-Help-Needed-Urgently-tp4655957.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Binding an interface that conforms to multiple protocols
Yes. That's what I did and it worked. Meanwhile, I am having another kind of error. Many methods in the wrapped classes in the monotouch dll return null when used in a sample project. I debugged the issue and found that the classHandle of many of those classes is equal to 0x0 as well as the class_ptr. Any idea why this is happening ? -- View this message in context: http://monotouch.2284126.n4.nabble.com/Binding-an-interface-that-conforms-to-multiple-protocols-tp4655661p4655964.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Binding an interface that conforms to multiple protocols
That makes me think that the native library isn't being linked into the final app. 1. Make sure that the binding dll is larger than the size of the native library (this is just a quick easy way of determining if the dll has the native library embedded in it) 2. Make sure that you are targeting a device that is supported by the native library that the LinkWith attribute includes that LinkTarget. 3. Browse over the build log and make sure that the native library is being pulled in (will be one of the gcc lines) Hope that helps, Jeff On Fri, Jul 13, 2012 at 12:53 PM, tkacem thabe...@hotmail.com wrote: Yes. That's what I did and it worked. Meanwhile, I am having another kind of error. Many methods in the wrapped classes in the monotouch dll return null when used in a sample project. I debugged the issue and found that the classHandle of many of those classes is equal to 0x0 as well as the class_ptr. Any idea why this is happening ? -- View this message in context: http://monotouch.2284126.n4.nabble.com/Binding-an-interface-that-conforms-to-multiple-protocols-tp4655661p4655964.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
[MonoTouch] WCF With Security.Mode = TransportWithMessageCredential
Hello - I'm trying to connect to a WCF Web Service via MonoTouch - I found various articles that say this is or is not possible but the WCF Proxy's Binding's Security Mode is set to TransportWithMessageCredential. Unfortunately I'm always getting an error of An error occurred when verifying security for the message when I'm trying to connect to the service. When I'm looking at the actual SOAP message that's being sent it's not sending anything in the UserNameToken (containing the user name and password). I've generated my proxy code with the Silverlight 4.0 service utility and can't get this to work. Does anyone know if this is supported? Thanks. -- View this message in context: http://monotouch.2284126.n4.nabble.com/WCF-With-Security-Mode-TransportWithMessageCredential-tp4655969.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch