[MonoTouch] RSA key pair generation

2011-08-24 Thread monojobs
Hello,

  I am currently trying to generate a RSA key pair for an app I am working
on.  The issue is that using RSACryptoServiceProvider (which internally uses
RSAManaged) is horribly slow.  Generating even a small 512 bit key pair
takes ~7 seconds on device.  1024 bit takes ~15s.  The big issue is that
2048 bit takes minutes.  This seems be a problem with how RSAManaged is
implemented specifically how BigInteger is used.  I realize that generating
a RSA key pair is an expensive operation, however, the 2048 bit case is not
usable.

  Does anyone know of any Mono bindings to native crypto library?

  I have tried to use MonoTouch.Security.SecKey.GenerateKeyPair, however, it
always returns with a SecStatusCode.Unimplemented.  There is a good
possibility that I am using it incorrectly as well, so if anyone has an
example it would be much appreciated.

Thanks!


--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/RSA-key-pair-generation-tp3766685p3766685.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] How to convert content items during build time?

2011-08-24 Thread Michael Hutchinson
Currently the easiest way to do this would be to use a postbuild
script to modify the app bundle directly.

Converting the MonoTouch project build process to use MSBuild is
something we plan to do, but I don't have a timeframe at this point.

-- Michael

On Wed, Aug 24, 2011 at 9:42 PM, Jeff Stedfast  wrote:
> Cc'ing Michael Hutchinson (MonoDevelop hacker) to see if he knows the answer
> to this.
> Jeff
>
> On Tue, Aug 16, 2011 at 2:08 PM, Richy  wrote:
>>
>> hi all,
>>
>> Is it possible to convert some content items during build time and inject
>> the converted files into the conten process and removing the non converted
>> ones. In visual studio we do that using an custom msbuild action, is there
>> something like that possible with monodevelop?
>>
>> Thanks for your time,
>> Ricy
>>
>> --
>> View this message in context:
>> http://monotouch.2284126.n4.nabble.com/How-to-convert-content-items-during-build-time-tp3747970p3747970.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] NSMutableArray unavailable? BTouch guru needed!

2011-08-24 Thread Jeff Stedfast
Hi Steve,

If this is becoming a common need for binding authors, it probably deserves
a feature request in http://bugzilla.xamarin.com

Jeff

On Tue, Aug 23, 2011 at 8:50 AM, stevek  wrote:

> I have got the same problem. Does anyone have a solution?
>
> Thanks
>
> SK
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/NSMutableArray-unavailable-BTouch-guru-needed-tp3515333p3762668.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] Several UI Questions

2011-08-24 Thread Jeff Stedfast
Hi Pierce,

On Mon, Aug 22, 2011 at 4:30 PM, pierceboggan wrote:

> Hi, I am very new to MonoTouch and recently read the book Professional
> iPhone
> Programming with MonoTouch and .NET/C#. However, I have had some trouble
> understanding exactly how the UI as a whole works (I'm also new to mobile
> development).
>
> If someone could Skype/communicate via email with me, that would be great.
> Otherwise, I have listed most of my questions below.
>
> 1. Can a view be functional without a controller?
> 2. If you were to have a tab and navigation controller interacting with
> each
> other, would you place this on a ViewController and use that to push views
> or control what's happening? Or would you need a controller for each
> individual thing?
> 3. The book mentioned several web-based services for storing data. However,
> if I wanted to store it in a MySQL database, would I just need to import
> some ADO.NET classes in order to gain this functionality?
>

You could import the SQLite binding (or the fully managed SQLite
implementation). You probably wouldn't want to import all of ADO.NET.


>
> >From more of a product question: Does the student version of MonoTouch
> feature deployment as well? Because $399 is VERY expensive for a college
> student who wants to start development.
>

If you are a student, you should definitely send an email off to
supp...@xamarin.com and inquire about a student license as I'm fairly sure
we have a cheaper solution for students ;-)
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Linking problem target iphone

2011-08-24 Thread Jeff Stedfast
Hi Chuck,

Did you ever figure this out? If not, I've added Sebastien to the Cc since
he's probably the best person to be able to answer this.

Jeff

On Wed, Aug 17, 2011 at 8:42 AM, chuck  wrote:

> Linking an app for the real iphone gives an error where there is no error
> linking for the simulator, any hints where to look?
>
> Chuck
>
>
> *Compiling to native code
> /Developer/MonoTouch/usr/bin/mtouch -v --nomanifest --nosign -dev
> "/test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.app"
> "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.dll"
>
> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/RO-dlls/RemObjects.SDK.Monotouch.dll"
> "-r=/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll"
>
> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/RO-dlls/RemObjects.SDK.ZLib.Monotouch.dll"
>
> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/RO-dlls/RemObjects.InternetPack.Monotouch.dll"
>
> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/SBB-dlls/SecureBlackbox.XMLSecurity.dll"
> "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll"
> "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll"
> "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Data.dll"
>
> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.Charsets.dll"
>
> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.dll"
>
> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.PGP.dll"
>
> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.XML.dll"
>
> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Working/MPWebCommon_iPhone02/MPWebCommon_iPhone/bin/Debug/MPWebCommon_iPhone.dll"
>
> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Working/MyContractModelsLib_iPhone02/MyContractModelsLib_iPhone/bin/Debug/MyContractModelsLib_iPhone.dll"
> -debug -linksdkonly "-sdk=4.3" -v -v -v
> "/test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.exe"
> Framework is:
> /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
> Copied /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.exe
> to
>
> /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.app/MyContract24.exe
> Linking SDK only for assembly
> /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.exe into
> /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.app
> Could not link assemblies: Mono.Linker.ResolutionException: Can not resolve
> reference: System.Boolean
>
> SBRDN.__Global::NonstrictCompareRDNAsStrings(SBRDN.TElRelativeDistinguishedName,SBRDN.TElRelativeDistinguishedName)
>  at Mono.Linker.Steps.MarkStep.ResolveMethodDefinition
> (Mono.Cecil.MethodReference method) [0x0] in :0
>  at Mono.Linker.Steps.MarkStep.MarkMethod (Mono.Cecil.MethodReference
> reference) [0x0] in :0
>  at Mono.Linker.Steps.MarkStep.MarkInstruction (Mono.Cecil.Cil.Instruction
> instruction) [0x0] in :0
>  at Mono.Linker.Steps.MarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody
> body) [0x0] in :0
>  at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition
> method) [0x0] in :0
>  at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x0] in  unknown>:0
>  at Mono.Linker.Steps.MarkStep.Process () [0x0] in :0
>  at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context)
> [0x0] in :0
>  at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context)
> [0x0]
> in :0
>  at MonoTouch.Tuner.Linker.Run (Mono.Linker.Pipeline pipeline,
> Mono.Linker.LinkContext context) [0x0] in :0 *
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Linking-problem-target-iphone-tp3749838p3749838.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] Xcode 4 Interface Builder

2011-08-24 Thread Jeff Stedfast
Hi Alex,

You could try reading over
http://xamarin.com/pdf/Transitioning_from_Xcode_3_to_Xcode_4_in_Monotouch.pdf

Hope that helps,

Jeff

On Tue, Aug 9, 2011 at 1:46 PM, Alex1993 wrote:

> Hey Guys,
>
> i updated my OS to Lion and installed Xcode 4. Xcode 3 is not working. Does
> anyone of you can explain me how to work with the new Interface Builder.
> The
> old one was not installed. And i dont know how to reference outlets in the
> new interface Builder.
>
> i hope you can help me.
>
> thanks.
>
> lg Alex
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Xcode-4-Interface-Builder-tp3730678p3730678.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] Setting Font in CGBitmapContext.SelectFont using variable

2011-08-24 Thread ric3kg
I'm trying to write a general purpose routine that will set the font using a
variable instead of the literal font name.

CGBitmapContext.SelectFont(fontName, fontSize, CGTextEncoding.MacRoman);
instead of:

CGBitmapContext.SelectFont("Arial", fontSize, CGTextEncoding.MacRoman);
But it seems not to work. Any suggestions would be much appreciated.

Thanks, Rick

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Setting-Font-in-CGBitmapContext-SelectFont-using-variable-tp3766928p3766928.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] Linking problem target iphone

2011-08-24 Thread Sebastien Pouliot
Oops, I had already answered but forgot the c.c. the list. Here was my
answer (since it could help other people too).

> Hello Chuck,
>
> Are you linking in the simulator builds ?
>
> By default simulator builds do not use the linker (so the builds are
> faster). The device builds defaults are to "Link SDK assemblies" to
> make your app smaller (and also faster to build since AOing can be
> slow). My guess is that you're missing a reference and that does not
> show until the linker is involved (only in the device builds). You can
> try disabling the linker on your device build to confirm this.
>
> If you're linking your simulator builds (and they work) then try to
> compare your project settings (like defines) between your
> Debug|Simulator and Debug|iPhone (or Release|*).

Sebastien

On Wed, Aug 24, 2011 at 6:05 PM, Jeff Stedfast  wrote:
> Hi Chuck,
> Did you ever figure this out? If not, I've added Sebastien to the Cc since
> he's probably the best person to be able to answer this.
> Jeff
>
> On Wed, Aug 17, 2011 at 8:42 AM, chuck  wrote:
>>
>> Linking an app for the real iphone gives an error where there is no error
>> linking for the simulator, any hints where to look?
>>
>> Chuck
>>
>>
>> *Compiling to native code
>> /Developer/MonoTouch/usr/bin/mtouch -v --nomanifest --nosign -dev
>> "/test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.app"
>> "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.dll"
>>
>> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/RO-dlls/RemObjects.SDK.Monotouch.dll"
>> "-r=/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll"
>>
>> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/RO-dlls/RemObjects.SDK.ZLib.Monotouch.dll"
>>
>> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/RO-dlls/RemObjects.InternetPack.Monotouch.dll"
>>
>> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Jedi/SBB-dlls/SecureBlackbox.XMLSecurity.dll"
>> "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll"
>> "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll"
>> "-r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Data.dll"
>>
>> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.Charsets.dll"
>>
>> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.dll"
>>
>> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.PGP.dll"
>>
>> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/SBB_iPhone/xmlbbox_net/Packages/SecureBlackbox.XML.dll"
>>
>> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Working/MPWebCommon_iPhone02/MPWebCommon_iPhone/bin/Debug/MPWebCommon_iPhone.dll"
>>
>> "-r=/Users/Tom.Flechsig/Documents/Entwicklung/MC24_Working/MyContractModelsLib_iPhone02/MyContractModelsLib_iPhone/bin/Debug/MyContractModelsLib_iPhone.dll"
>> -debug -linksdkonly "-sdk=4.3" -v -v -v
>> "/test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.exe"
>> Framework is:
>> /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
>> Copied
>> /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.exe
>> to
>>
>> /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.app/MyContract24.exe
>> Linking SDK only for assembly
>> /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.exe into
>> /test/MyContract24App/MyContract24/bin/iPhone/Debug/MyContract24.app
>> Could not link assemblies: Mono.Linker.ResolutionException: Can not
>> resolve
>> reference: System.Boolean
>>
>> SBRDN.__Global::NonstrictCompareRDNAsStrings(SBRDN.TElRelativeDistinguishedName,SBRDN.TElRelativeDistinguishedName)
>>  at Mono.Linker.Steps.MarkStep.ResolveMethodDefinition
>> (Mono.Cecil.MethodReference method) [0x0] in :0
>>  at Mono.Linker.Steps.MarkStep.MarkMethod (Mono.Cecil.MethodReference
>> reference) [0x0] in :0
>>  at Mono.Linker.Steps.MarkStep.MarkInstruction (Mono.Cecil.Cil.Instruction
>> instruction) [0x0] in :0
>>  at Mono.Linker.Steps.MarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody
>> body) [0x0] in :0
>>  at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition
>> method) [0x0] in :0
>>  at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x0] in > unknown>:0
>>  at Mono.Linker.Steps.MarkStep.Process () [0x0] in > unknown>:0
>>  at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context)
>> [0x0] in :0
>>  at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context)
>> [0x0]
>> in :0
>>  at MonoTouch.Tuner.Linker.Run (Mono.Linker.Pipeline pipeline,
>> Mono.Linker.LinkContext context) [0x0] in :0 *
>>
>> --
>> View this message in context:
>> http://monotouch.2284126.n4.nabble.com/Linking-problem-target-iphone-tp3749838p3749838.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] CGPDFDictionary.GetArray error

2011-08-24 Thread shawnlehner
Thanks! It appears I am running 4.0.5 at the moment.

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/CGPDFDictionary-GetArray-error-tp3763287p3766804.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] Audio streaming between iOS and Windows

2011-08-24 Thread Jeff Stedfast
I looks like I might have been wrong... supposedly UDP *is* supported in
MonoTouch.

Jeff

On Wed, Aug 24, 2011 at 6:11 PM, Jeff Stedfast  wrote:

> Hi,
>
> Currently UDP is not supported on MonoTouch but TCP is. I'm not sure if
> there's any reason we can't add UDP support, so feel free to submit a
> feature request on http://bugzilla.xamarin.com (I'm sure others will want
> UDP too).
>
> Hope that helps answer your question,
>
> Jeff
>
>
> On Thu, Aug 18, 2011 at 5:29 AM, pkd2010  wrote:
>
>> Hi
>>
>> I want to make an app for myself and for training, I am confused in some
>> matters, the two important ones are Audio Streaming between Windows and
>> iOS
>> (iOS streams the Windows audio) and Picture(Screen Capture) streaming (iOS
>> should display the windows screen).
>>
>> In screen streaming between two Windows, i capture a jpeg image from
>> screen
>> and convert it to byte[] and send it using TCP (but, the better way for
>> speed is UDP). but in MonoTouch i do not know whether it is possible or
>> not,
>> if possible (i think it's possible), how?
>>
>> Regards,
>> PK DEVELOPER
>>
>> --
>> View this message in context:
>> http://monotouch.2284126.n4.nabble.com/Audio-streaming-between-iOS-and-Windows-tp3752160p3752160.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] Audio streaming between iOS and Windows

2011-08-24 Thread Jeff Stedfast
Hi,

Currently UDP is not supported on MonoTouch but TCP is. I'm not sure if
there's any reason we can't add UDP support, so feel free to submit a
feature request on http://bugzilla.xamarin.com (I'm sure others will want
UDP too).

Hope that helps answer your question,

Jeff

On Thu, Aug 18, 2011 at 5:29 AM, pkd2010  wrote:

> Hi
>
> I want to make an app for myself and for training, I am confused in some
> matters, the two important ones are Audio Streaming between Windows and iOS
> (iOS streams the Windows audio) and Picture(Screen Capture) streaming (iOS
> should display the windows screen).
>
> In screen streaming between two Windows, i capture a jpeg image from screen
> and convert it to byte[] and send it using TCP (but, the better way for
> speed is UDP). but in MonoTouch i do not know whether it is possible or
> not,
> if possible (i think it's possible), how?
>
> Regards,
> PK DEVELOPER
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Audio-streaming-between-iOS-and-Windows-tp3752160p3752160.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] is my initial assumption correct?

2011-08-24 Thread Dave Evans
Yes, but it depends...

We are using the MVVM pattern (no framework) with Silverlight and MonoTouch to 
produce a Silverlight and an iPad client for our application.

We manage to have identical code (the same files) for both the Model and the 
ViewModel, with a little redundancy in the ViewModel. The View is completely 
different - as it should be - to take advantage of the differing platform 
capabilities.

The same View code across the 3 platforms you mention would lead to a very 
strange user experience.

But you should get a lot of reuse for the ViewModel and Model, if architected 
carefully.
Dave



-Original Message-
From: monotouch-boun...@lists.ximian.com 
[mailto:monotouch-boun...@lists.ximian.com] On Behalf Of Aaron
Sent: 11 August 2011 22:31
To: monotouch@lists.ximian.com
Subject: [MonoTouch] is my initial assumption correct?

My assumption is that the mono frameworks for iphone and android can not be 
used to maintain a single codebase between windows phone 7, android and iphone.

I've stumbled onto the framework looking for a way to maintain a single 
codebase in c# for all three mobile platforms.

Thanks!

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/is-my-initial-assumption-correct-tp3737343p3737343.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] Interface builder on Lion

2011-08-24 Thread Jeff Stedfast
Hi Mg,

On Sat, Aug 6, 2011 at 3:28 PM, Mg  wrote:

> Hi,
>
> I'm new to MonoTouch (and pretty much everything Mac).
>
> I have a Macbook Pro with Lion and I've installed Xcode 4.11 from the app
> store, Mono 2.10.3, MonoDevelop 2.4, and MonoTouch 4.0.4.1.
>
> I've read that I should probably install Xcode 3 in order to use Interface
> Builder. I did this after everything else was installed...although I wasn't
> sure where to put it so I created an Xcode3 folder under applications. I
> now
> have a bunch of icons showing up in Launchpad that probably ought not to be
> there, but that isn't the real problem. I cannot find interface builder on
> the list of applications in order to set xib files to open with it. What's
> wrong?
>

Assuming you installed Xcode3 to /Applications/Xcode3...

Look under /Applications/Xcode3/Applications and you should see an Interface
Builder.app

Hope that helps,

Jeff
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] App crashes in Add-hoc build

2011-08-24 Thread Chris van Wyk
Please ignore this query. I found the problem.

I need to Remember to include additional mtouch arguments when specifying a
new build type.

Thanks
Chris

From:  Chris van Wyk 
Date:  Wed, 24 Aug 2011 23:02:23 +0200
To:  
Subject:  [MonoTouch] App crashes in Add-hoc build

Hi guys,

I've got an app which is running fine on a 3GS and fine on a iPhone 4 debug
and release builds, but as soon as I do an add-hoc build it crashes on the
iPhone 4 after displaying the Default.png.

I know the above is not a lot to go on, but how/where do I start debugging
the add-hoc build? Any other pointers also greatly appreciated.

Thanks
Chris 
___ 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] Difference between iPad 1 and iPad 2 with WebClient

2011-08-24 Thread ric3kg
Nope - this does not work under load on an iPad 1.

Thanks,
Rick

On Aug 24, 2011, at 12:38 PM, Gonzalo Paniagua [via MonoTouch] wrote:

> - Hide quoted text - 
> On Thu, Aug 18, 2011 at 3:51 PM, Miguel de Icaza <[hidden email]> wrote:
> 
> > Hello, 
> > 
> >> I have this code running on both iPad 1 and 2's. On the iPad 1 the code 
> >> hangs 
> >> at random points getting files. On a 2 it works 100% of the time. Any 
> >> thoughts would be appreciated. 
> >> 
> >> WebClient wc = new WebClient(); 
> >> Uri uri = new Uri(url); 
> >> byte[] bytes = wc.DownloadData(uri); 
> >> 
> >> string path = Path.Combine(tmpPath, fileName); 
> >> 
> >> File.WriteAllBytes(path, bytes); 
> >> wc.Dispose(); 
> > 
> > We just fixed this problem.   Gonzalo (CCed on this line) might be able to 
> > provide a temporary workaround to use for this scenario.
> 
> When the problem occurs, "kicking" the threadpool by adding another 
> work item will make the problem go away. 
> 
> Something like this (not tested or compiled ;-) should do: 
>  
> Timer timer = new Timer (AddMe); 
> ... 
> WebClient wc = new WebClient (); 
> Uri uri = new Uri(url); 
> timer.Change (0, 500); // Trigger it now and every 500ms 
> byte[] bytes = wc.DownloadData(uri); 
> timer.Change (Timeout.Infinite, Timeout.Infinite); 
>  
> static void AddMe (object state) 
> { 
>  // Empty. 
> } 
>  
> 
> 
> -Gonzalo 
> ___ 
> MonoTouch mailing list 
> [hidden email] 
> http://lists.ximian.com/mailman/listinfo/monotouch
> 
> 
> If you reply to this email, your message will be added to the discussion 
> below:
> http://monotouch.2284126.n4.nabble.com/Difference-between-iPad-1-and-iPad-2-with-WebClient-tp3750957p3766401.html
> To unsubscribe from Difference between iPad 1 and iPad 2 with WebClient, 
> click here.



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Difference-between-iPad-1-and-iPad-2-with-WebClient-tp3750957p3766744.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] Where is GL_UNPACK_ROW_LENGTH

2011-08-24 Thread Jeff Stedfast
Hi Mark,

I just checked and sadly it looks like these enums aren't available under
the current MonoTouch releases.

The enum value for UnpackRowLength should be (int) 0x0CF2 if that helps. If
that works for you, let me know and I'll pull that and any other enum values
you need into OpenTK.Graphics.ES11 and ES20 for an upcoming release.

Jeff

On Fri, Aug 19, 2011 at 7:08 AM, Oaf  wrote:

> Hi,
>
> First post here, been using Monotouch for six weeks or so now, porting some
> Java/OpenGL games to iOS.
>
> I must admit the Monotouch implementation of OpenGL is certainly
> frustrating. I spend most of my time trying to find where constants are
> buried, what they've been renamed as, and how mono's OGL apis translate to
> 'normal' OGL.
>
> The PixelStore consts seem to be mostly missing from mono though, and I'm
> stumped as to where they're hiding.
>
> Anyone have any clues?
>
> Many thanks :)
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Where-is-GL-UNPACK-ROW-LENGTH-tp3754895p3754895.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] Crash on launch

2011-08-24 Thread Jeff Stedfast
(I'm going to steal Sebastien's response from another similar post)

We will need more information. The message about
"monotouch-fixes.dylib" is not the source of your crash. This is a fix
for something else (OpenGL signals wrt simulator IIRC). GDB will
complain about it but you'll only see that if your application crash
(elsewhere).

Please fill a bug report and include the full stack trace of your
crash. Note that we'll likely need a test case to reproduce the issue.

Thanks,

Jeff

On Wed, Aug 17, 2011 at 4:26 PM, makeout  wrote:

> I'll cross post my problem from another forum.
> http://monogame.codeplex.com/discussions/269123
>
> This might be more related to monotouch rather then monogame. And I can't
> seem to understand what exactly is going wrong.
>
> Basically, before my app even gets in the main, it crashes with the
> following error.
> Has anyone encountered this before? Really don't know what I can do to
> solve
> this.
> Thanks
>
> dyld: could not load inserted library: /Users/makeout/Library/Application
> Support/iPhone
>
> Simulator/4.3.2/Applications/A53624FD-E7C4-4B3F-B87C-00283F059F2E/Paris.app/monotouch-fixes.dylib
>
>
> =
> Got a SIGSEGV while executing native code. This usually indicates
> a fatal error in the mono runtime or one of the native libraries
> used by your application.
> =
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Crash-on-launch-tp3751120p3751120.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] monotouch-fixes.dylib (Problem on when running from MonoDevelop)

2011-08-24 Thread Sebastien Pouliot
Hello John,

We will need more information. The message about
"monotouch-fixes.dylib" is not the source of your crash. This is a fix
for something else (OpenGL signals wrt simulator IIRC). GDB will
complain about it but you'll only see that if your application crash
(elsewhere).

Please fill a bug report and include the full stack trace of your
crash. Note that we'll likely need a test case to reproduce the issue.

Regards,
Sebastien

On Sun, Aug 14, 2011 at 9:30 PM, jsonmez  wrote:
> Hi,
>
> Just starting out on MonoTouch after working in Objective-C for some time.
>
> Trying to create a universal app and I am running into a problem that is
> stopping me cold:
>
> dyld: could not load inserted library: /Users/sonmez56/Library/Application
> Support/iPhone
> Simulator/4.3.2/Applications/1FA9DB7A-34E8-40F1-B103-DA06F9BD7026/Peekaboo.app/monotouch-fixes.dylib
>
> This is happening on a button click that I have created a delegate for.
>
> If I run either debugger or just run as from MonoDevelop, when I click the
> button app crashes with that error.
>
> I immediately rerun the app, (just by clicking the icon in the simulator)
> and everything is fine.
>
> Really want to be able to debug, so I am hoping for a solution to this.
>
> Let me know if I need to provide more info, will gladly do so.
>
> Thanks,
>
> John Sonmez
> http://simpleprogrammer.com
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/monotouch-fixes-dylib-Problem-on-when-running-from-MonoDevelop-tp3743710p3743710.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] CGPDFDictionary.GetArray error

2011-08-24 Thread Jeff Stedfast
in a terminal window, you can do `cat /Developer/MonoTouch/Version` to get
the version of MonoTouch (or open it with a text editor)

Jeff

On Wed, Aug 24, 2011 at 4:33 PM, shawnlehner  wrote:

> I use the MonoDevelop updater which currently says I am up-to-date ... What
> is the easiest way to manually check the version being used by my project?
>
> I looked in the "About MonoDevelop" window which shows an entry for
> "monotouch" but it shows the version as 0.0.0.0. It shows this same version
> when I look at the DLL reference as well.
>
> Thanks!
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/CGPDFDictionary-GetArray-error-tp3763287p3766556.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] App crashes in Add-hoc build

2011-08-24 Thread Chris van Wyk
Hi guys,

I've got an app which is running fine on a 3GS and fine on a iPhone 4 debug
and release builds, but as soon as I do an add-hoc build it crashes on the
iPhone 4 after displaying the Default.png.

I know the above is not a lot to go on, but how/where do I start debugging
the add-hoc build? Any other pointers also greatly appreciated.

Thanks
Chris 


___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Trial Download Is Broken

2011-08-24 Thread Nic Wise
I think the mail list software had a spaz. gmail tells me the email
you replied to is 6 days old...

On Wed, Aug 24, 2011 at 21:45, Jeff Stedfast  wrote:
> This appears to have been fixed.
> Jeff
>
> On Thu, Aug 18, 2011 at 12:13 AM, crashed  wrote:
>>
>> Here is the Server Error Message:
>>
>>
>> Server Error in '/' Application
>> Could not find file
>>
>> "/home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg".
>>
>> Description: HTTP 500. Error processing request.
>>
>> Stack Trace:
>>
>> System.IO.FileNotFoundException: Could not find file
>>
>> "/home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg".
>> File name:
>>
>> '/home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg'
>>  at System.IO.FileInfo.get_Length () [0x0] in :0
>>  at (wrapper remoting-invoke-with-check) System.IO.FileInfo:get_Length ()
>>  at System.Web.HttpResponse.WriteFile (System.String filename, Boolean
>> readIntoMemory) [0x0] in :0
>>  at System.Web.HttpResponse.WriteFile (System.String filename) [0x0]
>> in
>> :0
>>  at ASP.downloadtrial_aspx.OnLoad (System.EventArgs args) [0x0] in
>> :0
>>  at System.Web.UI.Control.LoadRecursive () [0x0] in > unknown>:0
>>  at System.Web.UI.Page.ProcessLoad () [0x0] in :0
>>  at System.Web.UI.Page.ProcessPostData () [0x0] in > unknown>:0
>>  at System.Web.UI.Page.InternalProcessRequest () [0x0] in > unknown>:0
>>  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
>> [0x0] in :0
>> Version information: Mono Runtime Version: 2.10.4 (mono_2_10/1b84abf Sun
>> Aug
>> 14 02:06:23 EDT 2011); ASP.NET Version: 2.0.50727.1433
>>
>> --
>> View this message in context:
>> http://monotouch.2284126.n4.nabble.com/Trial-Download-Is-Broken-tp3751744p3751744.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/

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] Web Services

2011-08-24 Thread Demis Bellot
Hi Dean,

From last report it looks like Mono team will only be supporting and 
implementing the "Silverlight Subset" of WCF so you'll have to wait till you 
hear back from them to figure out if what you're trying to do falls within that 
subset.

Although I'm the maintainer of WCF replacement web services stack called 
http://www.servicestack.net which I currently support on Mono and now recently 
on MonoTouch. Since it's open source and I'm able to control the entire source 
code, it's much easier for me to support and add functionality.

It's both an RPC/SOAP and REST convention-based web services framework that is 
configuration-free so is easy to setup. If you're interested I have a 
preconfigured MonoTouch client application that uses it available here:

https://github.com/ServiceStack/ServiceStack.Examples/tree/master/src/MonoTouch/RestFilesClient

The project includes all the dependencies you need and has examples of both 
sync and async clients (both with 1 LOC):

//calling sync web service
var response = gateway.Get(txtPath.Text);

//calling async web service
gateway.GetAsync(txtPath.Text, 
r => InvokeOnMainThread(() => txtResults.Text = r.Dump()), 
null);

There's no code-gen as the same DTO classes you use to define your web services 
on the server can be used as-is in your client application to provide a 
strongly-typed client with an easy and friction-free development workflow.
As a bonus it uses my fast Json Serializer which the latest benchmarks places 
it a multitude of times faster than any serializer shipping with .NET.

If you don't mind binary protocols, protobuf-net remains the fastest serializer 
for .NET and also includes an RPC-based framework. Having spoken with the 
author, one of his goals was to support MonoTouch although I'm not sure what 
the current status on MonoTouch is at the moment.

Anyway if you decide to try servicetack.net feel free to post any 
questions/issues you have to the group:
https://groups.google.com/forum/#!forum/servicestack

Cheers,
Demis


On 24 Aug 2011, at 08:10, Dean Harry wrote:

> Hey Demis,
>  
> I took your advice and went the WCF path… seems a much better way to do 
> things.
>  
> I still have a problem though…
>  
> I created a VERY simple service at 
> http://hotdogs.infocore.com.au/hotdogs/Service1.svc, it works fine in VS 2010 
> but doesn’t work in MT, I have just exhausted my limited knowledge on trying 
> to figure it out, with no success…
>  
> I added it as a WCF web reference called hdService and then have the 
> following:
>  
> hdService.ServiceClient client = new hdService.ServiceClient();
> Console.Writeline(client.Greeting”Dean”));
>  
> But it doesn’t run, keeps stopping with “Object reference not set to an 
> instance of an object” also referencing the 
> System.ServiceModel.ChannelFactory, whatever that is J
>  
> I don’t know if it me, MT, the service or what…
>  
> I’ll leave the service running, can someone try and consume it and tell me if 
> it works? Or tell me what I am missing / doing wrong?
>  
> Thanks!
> Dean
>  
>  
>  
> From: Demis Bellot [mailto:demis.bel...@gmail.com] 
> Sent: Tuesday, 23 August 2011 12:03 AM
> To: Dean Harry
> Cc: monotouch@lists.ximian.com
> Subject: Re: [MonoTouch] Web Services
>  
> Hey Dean,
>  
> Apart from the technical limitations, coupling your web services with your 
> RDBMS is generally considered bad practice. (Although I'd also argue that due 
> to its inefficiency, using SOAP in your resource constrained MonoTouch app 
> should also be avoided).
>  
> Why don't you just go the normal route and wrap your DB logic inside a 
> standard .asmx web service? though my preference would be to avoid SOAP 
> entirely and just use one of the many REST service frameworks available in 
> .NET.
>  
> If performance ever becomes a problem you can also try using my 
> http://servicestack.net web service framework, where the JSON and JSV 
> endpoints are multiple times more efficient than SOAP web services.
> 
> D.B
> Sent from my iPad
> 
> On 22 Aug 2011, at 03:32, Dean Harry  wrote:
> 
> Ok so I found my problem is a bug 
> (https://bugzilla.novell.com/show_bug.cgi?id=670956)
>  
> So I changed the  SqlXml class of the Reference.cs file to read, as the 
> poster mentioned at the bottom of the bug report:
>  
>public partial class SqlXml {
> [System.Xml.Serialization.XmlAnyElement(Namespace="Any")]
> [System.Xml.Serialization.XmlAnyElement(Name="Any")]
> [System.Xml.Serialization.XmlTextAttribute()]
> public System.Xml.XmlNode Any;
> }
> But that still doesn’t work… has anyone been able to get this to work?  I’m 
> getting desperate…
>  
> Cheers,
> Dean
>  
>  
>  
> From: monotouch-boun...@lists.ximian.com 
> [mailto:monotouch-boun...@lists.ximian.com] On Behalf Of Dean Harry
> Sent: Sunday, 21 August 2011 1:13 PM
> To: monotouch@lists.ximian.com
> Subject: [MonoTouch] Web Services
>  
> Hi All,
>  
> I am having a web service problem I can

Re: [MonoTouch] Trial Download Is Broken

2011-08-24 Thread Jeff Stedfast
This appears to have been fixed.

Jeff

On Thu, Aug 18, 2011 at 12:13 AM, crashed  wrote:

> Here is the Server Error Message:
>
>
> Server Error in '/' Application
> Could not find file
>
> "/home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg".
>
> Description: HTTP 500. Error processing request.
>
> Stack Trace:
>
> System.IO.FileNotFoundException: Could not find file
>
> "/home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg".
> File name:
>
> '/home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg'
>  at System.IO.FileInfo.get_Length () [0x0] in :0
>  at (wrapper remoting-invoke-with-check) System.IO.FileInfo:get_Length ()
>  at System.Web.HttpResponse.WriteFile (System.String filename, Boolean
> readIntoMemory) [0x0] in :0
>  at System.Web.HttpResponse.WriteFile (System.String filename) [0x0] in
> :0
>  at ASP.downloadtrial_aspx.OnLoad (System.EventArgs args) [0x0] in
> :0
>  at System.Web.UI.Control.LoadRecursive () [0x0] in  unknown>:0
>  at System.Web.UI.Page.ProcessLoad () [0x0] in :0
>  at System.Web.UI.Page.ProcessPostData () [0x0] in :0
>  at System.Web.UI.Page.InternalProcessRequest () [0x0] in  unknown>:0
>  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
> [0x0] in :0
> Version information: Mono Runtime Version: 2.10.4 (mono_2_10/1b84abf Sun
> Aug
> 14 02:06:23 EDT 2011); ASP.NET Version: 2.0.50727.1433
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Trial-Download-Is-Broken-tp3751744p3751744.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] How to convert content items during build time?

2011-08-24 Thread Jeff Stedfast
Cc'ing Michael Hutchinson (MonoDevelop hacker) to see if he knows the answer
to this.

Jeff

On Tue, Aug 16, 2011 at 2:08 PM, Richy  wrote:

> hi all,
>
> Is it possible to convert some content items during build time and inject
> the converted files into the conten process and removing the non converted
> ones. In visual studio we do that using an custom msbuild action, is there
> something like that possible with monodevelop?
>
> Thanks for your time,
> Ricy
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/How-to-convert-content-items-during-build-time-tp3747970p3747970.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] CGPDFDictionary.GetArray error

2011-08-24 Thread shawnlehner
I use the MonoDevelop updater which currently says I am up-to-date ... What
is the easiest way to manually check the version being used by my project?

I looked in the "About MonoDevelop" window which shows an entry for
"monotouch" but it shows the version as 0.0.0.0. It shows this same version
when I look at the DLL reference as well.

Thanks!

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/CGPDFDictionary-GetArray-error-tp3763287p3766556.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] WebRequest exception

2011-08-24 Thread Jeff Stedfast
Hi Alicya,

I've taken a look at the source code of HttpWebRequest and HttpWebResponse
and it looks like PreAuthentication for web requests is implemented, it's
just HttpWebResponse's IsMutuallyAuthenticated property that isn't.

That being said, could you submit a bug report to
http://bugzilla.xamarin.com (preferably with a simple test case)?

Thanks,

Jeff

On Wed, Aug 10, 2011 at 4:49 AM, alicya  wrote:

> I get the mentioned System.NotImplementedException in the WebResponse
> object's IsMutuallyAuthenticated method only when I try to reach sites that
> need authentication. So authentication might cause the problem.
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/WebRequest-exception-tp3726510p3732346.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] Need clarification regarding deployemnt of native application using professional ($399) Monotouch

2011-08-24 Thread Nic Wise
1: any number. however, it's $399 PER developer. So if you have a team
of 5, you need 5 licenses. But those 5 people can make 100 or 1000
apps (or any number)

2: it's controlled by the identifier, which is usually
com.yourcompany.yourappname. So you can have 10 apps which are the
same, with a different identifier, and uit'll be on there 10 times.
The version is just for upgrades etc.

On Wed, Aug 24, 2011 at 12:56, jitendrap  wrote:
>
>
> Please give me details for below questions.
>
>
>
> Question1 - Please give the details regarding total number applications, we
> can deploy as we buy professional ($399) Monotouch licensed for IOS system?
>
>
>
> Question2 - Can we deploy multiple versions of same application into a
> physical device, does it consider each version number as one application or
> all versions are considered as one application?
>
>
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/Need-clarification-regarding-deployemnt-of-native-application-using-professional-399-Monotouch-tp3765103p3765103.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/

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] CGPDFDictionary.GetArray error

2011-08-24 Thread Sebastien Pouliot
Hello,

A similar issue was reported, a while ago, on stackoverflow [1] and
fixed. MonoTouch 4.0.4.1 (and later) should have that fix. What
version of MonoTouch are you using ?

Regards,
Sebastien

[1] 
http://stackoverflow.com/questions/6486673/5-lines-monotouch-1-crash-my-fault-or-just-an-bug

On Tue, Aug 23, 2011 at 12:32 PM, shawnlehner  wrote:
> Hey guys, I am attempting to roll my own PDF solution but I am having issues
> using the CGPDF classes. Are there known issues with these classes?
>
> The PDF is very simple, it is just text with hyperlinks and it displays fine
> in a UIWebView.
>
> Here is my very simple test code:
>
>                                CGPDFDocument doc = CGPDFDocument.FromFile 
> ("test1.pdf");
>                                int pageCount = doc.Pages;
>
>                                for (int i = 0; i < pageCount; i++) {
>                                        int pn = i + 1;
>
>                                        CGPDFPage page = doc.GetPage (pn);
>                                        CGPDFDictionary dic = page.Dictionary;
>
>                                        Console.WriteLine ("{0} = {1}", pn, 
> dic.Count);
>
>
>                                        CGPDFArray annots;
>                                        dic.GetArray ("Annots", out annots);
>
>                                        Console.WriteLine ("{0} = {1}", pn, 
> annots == null ? 0 : annots.Count);
>
>                                        //int arrayCount = annots.Count;
>
>                                }
>
> Here is the stacktrace for the error it is throwing when GetArray is called:
>
> Stacktrace:
>
>  at (wrapper managed-to-native)
> MonoTouch.CoreGraphics.CGPDFDictionary.CGPDFDictionaryGetArray
> (intptr,string,intptr&) 
>  at MonoTouch.CoreGraphics.CGPDFDictionary.GetArray
> (string,MonoTouch.CoreGraphics.CGPDFArray&) [0x00011] in
> /Developer/MonoTouch/Source/monotouch/monotouch/shared/CoreGraphics/CGPDFDictionary.cs:151
>  at PDFP.AppDelegate.m__0 (object,System.EventArgs)
> [0x0004b] in
> /Users/CENSORED/Dropbox/Work/CENSORED/Clients/CENSORED/Prototype/PDFP/PDFP/Main.cs:59
>  at MonoTouch.UIKit.UIControlEventProxy.Activated () [0x0] in
> /Developer/MonoTouch/Source/monotouch/monotouch/UIKit/UIControl.cs:30
>  at (wrapper runtime-invoke) object.runtime_invoke_void__this__
> (object,intptr,intptr,intptr) 
>  at (wrapper managed-to-native)
> MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr)
> 
>  at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x00038]
> in /Developer/MonoTouch/Source/monotouch/monotouch/UIKit/UIApplication.cs:26
>  at MonoTouch.UIKit.UIApplication.Main (string[]) [0x0] in
> /Developer/MonoTouch/Source/monotouch/monotouch/UIKit/UIApplication.cs:31
>  at PDFP.Application.Main (string[]) [0x0] in
> /Users/CENSORED/Dropbox/Work/CENSORED/Clients/CENSORED/Prototype/PDFP/PDFP/Main.cs:14
>  at (wrapper runtime-invoke) .runtime_invoke_void_object
> (object,intptr,intptr,intptr) 
>
> Native stacktrace:
>
>        0   PDFP                                0x000d0dd8
> mono_handle_native_sigsegv + 343
>        1   PDFP                                0xf6cc
> mono_sigsegv_signal_handler + 322
>        2   libSystem.B.dylib                   0x9155405b _sigtramp + 43
>        3   ???                                 0x 0x0 + 4294967295
>        4   CoreGraphics                        0x010969c3 compare_key + 34
>        5   libSystem.B.dylib                   0x9151c63d bsearch + 41
>        6   CoreGraphics                        0x01096bfc 
> CGPDFDictionaryGetObject
> + 74
>        7   CoreGraphics                        0x01096d55 
> CGPDFDictionaryGetArray
> + 31
>        8   ???                                 0x0ee20d8e 0x0 + 249695630
>        9   ???                                 0x0ee20c0e 0x0 + 249695246
>        10  ???                                 0x0e8b570a 0x0 + 244012810
>        11  ???                                 0x0e8b553a 0x0 + 244012346
>        12  ???                                 0x077d0828 0x0 + 125634600
>        13  PDFP                                0xf487 
> mono_jit_runtime_invoke
> + 1332
>        14  PDFP                                0x001ed249 mono_runtime_invoke 
> +
> 137
>        15  PDFP                                0x0029d93f 
> monotouch_trampoline +
> 2527
>        16  UIKit                               0x01cd44fd -[UIApplication
> sendAction:to:from:forEvent:] + 119
>        17  UIKit                               0x01d64799 -[UIControl
> sendAction:to:forEvent:] + 67
>        18  UIKit                               0x01d66c2b 
> -[UIControl(Internal)
> _sendActionsForEvents:withEvent:] + 527
>        19  UIKit                               0x01d657d8 -[UIControl
> touchesEnded:withEvent:] + 458
>        20  UIKit                               0x01cf8ded -[UIWindow
> _sendTouchesForEvent:] + 567
>        21  UIKit                               0x01cd9c37 -

Re: [MonoTouch] Problem in first application

2011-08-24 Thread r2d2
Answer to myself ) 
Decision of my problem - reinstall mono. 

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Problem-in-first-application-tp3746789p3758565.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] Problem in first application

2011-08-24 Thread r2d2
I tried to build first application in MonoDev as IPhone Window-based project.
It was fine build and run. 
Then I opened MainWindow.xib in Interface Builder and saved it without any
changes. In MainWindow.desighner.cs type of _mt_window was changed
automaticaly from Monotouch.UIKit.UIWindow to object. And result  - errors
in compilation. 
Probably I should set some options in MonoDev...
Whats wrong ?

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Problem-in-first-application-tp3746789p3746789.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] Need clarification regarding deployemnt of native application using professional ($399) Monotouch licensed for IOS system.

2011-08-24 Thread Xamarin Support



__
Please type your reply at the top of the email...

--

 

 



Joseph Hill | AUG 24, 2011 09:37AM EDT




Hello Jitendra
Thanks for your interest in Xamarin.

MonoTouch is licensed to a single owner for one developer.  We do not count 
applications, so you can deploy as many applications as you would like, 
including multiple applications to the same device.  If you purchase MonoTouch 
Professional, you can deploy directly to up to 100 devices using Ad-hoc 
deployment and you can deploy your applications to the app store.  If you 
purchase MonoTouch Enterprise, not only can you use ad-hoc deployment and app 
store deployment, you can also use Apple's In-House deployment model, which 
they offer to members of their Enterprise Developer program:
http://developer.apple.com/programs/ios/enterprise/

Hope that helps.  Please let us know if you have any additional questions.

Thank you
Joseph



--
Please, rate my reply:
http://nicereply.com/xamarin/2864367/1490





--




 





Jitendra | AUG 24, 2011 07:53AM EDT  | Original message 

  




Hi Support team,

Please give me brief details for below questions.

Question1 - Please give the details regarding total number applications, we can 
deploy as we buy professional ($399) Monotouch licensed for IOS system?

Question2 - Can we deploy multiple versions of same application into a physical 
device, does it consider each version number as one application or all versions 
are considered as one application?



Thanks & Regards,
Jitendra Kumar Pal
Programmer Analyst
Business Application Services,
Intelligroup.
an NTT Data Company
(M) +91 748 312 3328
[cid:image002.gif@01CC6282.7FC6FE80]














--

For your reference this is Case #: 1490

--


Support powered by Assistly (http://www.assistly.com/)

[[7aa7d0fe81071c90be519d5dd155e3d8691c-8514215]]
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] Need clarification regarding deployemnt of native application using professional ($399) Monotouch

2011-08-24 Thread jitendrap


Please give me details for below questions.



Question1 - Please give the details regarding total number applications, we
can deploy as we buy professional ($399) Monotouch licensed for IOS system?

 

Question2 - Can we deploy multiple versions of same application into a
physical device, does it consider each version number as one application or
all versions are considered as one application?



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Need-clarification-regarding-deployemnt-of-native-application-using-professional-399-Monotouch-tp3765103p3765103.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] Urgent, WCF call fails on 10th attempt SIGILL error

2011-08-24 Thread FrankHao
Xamarin resolved this issue in MonoTouch 4.1.0

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Urgent-WCF-call-fails-on-10th-attempt-SIGILL-error-tp3622923p3763530.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] CGPDFDictionary.GetArray error

2011-08-24 Thread shawnlehner
Hey guys, I am attempting to roll my own PDF solution but I am having issues
using the CGPDF classes. Are there known issues with these classes?

The PDF is very simple, it is just text with hyperlinks and it displays fine
in a UIWebView.

Here is my very simple test code:

CGPDFDocument doc = CGPDFDocument.FromFile 
("test1.pdf");
int pageCount = doc.Pages;

for (int i = 0; i < pageCount; i++) {
int pn = i + 1;

CGPDFPage page = doc.GetPage (pn);
CGPDFDictionary dic = page.Dictionary;

Console.WriteLine ("{0} = {1}", pn, 
dic.Count);


CGPDFArray annots;
dic.GetArray ("Annots", out annots);

Console.WriteLine ("{0} = {1}", pn, 
annots == null ? 0 : annots.Count);

//int arrayCount = annots.Count;

}

Here is the stacktrace for the error it is throwing when GetArray is called:

Stacktrace:

  at (wrapper managed-to-native)
MonoTouch.CoreGraphics.CGPDFDictionary.CGPDFDictionaryGetArray
(intptr,string,intptr&) 
  at MonoTouch.CoreGraphics.CGPDFDictionary.GetArray
(string,MonoTouch.CoreGraphics.CGPDFArray&) [0x00011] in
/Developer/MonoTouch/Source/monotouch/monotouch/shared/CoreGraphics/CGPDFDictionary.cs:151
  at PDFP.AppDelegate.m__0 (object,System.EventArgs)
[0x0004b] in
/Users/CENSORED/Dropbox/Work/CENSORED/Clients/CENSORED/Prototype/PDFP/PDFP/Main.cs:59
  at MonoTouch.UIKit.UIControlEventProxy.Activated () [0x0] in
/Developer/MonoTouch/Source/monotouch/monotouch/UIKit/UIControl.cs:30
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__
(object,intptr,intptr,intptr) 
  at (wrapper managed-to-native)
MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr)

  at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x00038]
in /Developer/MonoTouch/Source/monotouch/monotouch/UIKit/UIApplication.cs:26
  at MonoTouch.UIKit.UIApplication.Main (string[]) [0x0] in
/Developer/MonoTouch/Source/monotouch/monotouch/UIKit/UIApplication.cs:31
  at PDFP.Application.Main (string[]) [0x0] in
/Users/CENSORED/Dropbox/Work/CENSORED/Clients/CENSORED/Prototype/PDFP/PDFP/Main.cs:14
  at (wrapper runtime-invoke) .runtime_invoke_void_object
(object,intptr,intptr,intptr) 

Native stacktrace:

0   PDFP0x000d0dd8
mono_handle_native_sigsegv + 343
1   PDFP0xf6cc
mono_sigsegv_signal_handler + 322
2   libSystem.B.dylib   0x9155405b _sigtramp + 43
3   ??? 0x 0x0 + 4294967295
4   CoreGraphics0x010969c3 compare_key + 34
5   libSystem.B.dylib   0x9151c63d bsearch + 41
6   CoreGraphics0x01096bfc 
CGPDFDictionaryGetObject
+ 74
7   CoreGraphics0x01096d55 
CGPDFDictionaryGetArray
+ 31
8   ??? 0x0ee20d8e 0x0 + 249695630
9   ??? 0x0ee20c0e 0x0 + 249695246
10  ??? 0x0e8b570a 0x0 + 244012810
11  ??? 0x0e8b553a 0x0 + 244012346
12  ??? 0x077d0828 0x0 + 125634600
13  PDFP0xf487 
mono_jit_runtime_invoke
+ 1332
14  PDFP0x001ed249 mono_runtime_invoke +
137
15  PDFP0x0029d93f monotouch_trampoline 
+
2527
16  UIKit   0x01cd44fd -[UIApplication
sendAction:to:from:forEvent:] + 119
17  UIKit   0x01d64799 -[UIControl
sendAction:to:forEvent:] + 67
18  UIKit   0x01d66c2b -[UIControl(Internal)
_sendActionsForEvents:withEvent:] + 527
19  UIKit   0x01d657d8 -[UIControl
touchesEnded:withEvent:] + 458
20  UIKit   0x01cf8ded -[UIWindow
_sendTouchesForEvent:] + 567
21  UIKit   0x01cd9c37 -[UIApplication
sendEvent:] + 447
22  UIKit   0x01cdef2e
_UIApplicationHandleEvent + 7576
23  GraphicsServices0x0404f992 Pur

[MonoTouch] Sharekit integration MonoTouch

2011-08-24 Thread kpijnenburg
Hi,

I'm used to work with ShareKit when building Obj-C iPhone apps. Has someone
worked on binding Sharekit with MonoTouch?
Or maybe a decent Twitter / Facebook binding?

Would be willing to bind ShareKit myself, but have too little experience
(yet) to build Sharekit into a static library .a.

Thanks in advance.

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Sharekit-integration-MonoTouch-tp3762273p3762273.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] Simple PDF viewer using MonoTouch

2011-08-24 Thread shawnlehner
So I have done a bit of research on this topic and I have found a few
possible solutions. I wanted to find out if there was something out there
already that would save me time.

The UIWebView PDF rendering does 90% of what I want ... the only thing it is
lacking is the ability to click on hyperlinks. These links will be handled
by me in a special way.

Are there any solutions out there already that will be easily integrated
with MonoTouch.

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Simple-PDF-viewer-using-MonoTouch-tp3760890p3760890.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] UI Questions

2011-08-24 Thread pierceboggan
Hi, I recently read Professional iPhone Programming with MonoTouch and
.NET/C#. For the most part I think it was a great book (especially for
reference), however, I still have many questions regarding the UI of
applications. I have followed many tutorials for monotouch.info, however, I
still can't seem to quite grasp it.

1. Can someone please explain to me the difference between a controller and
the actual item (a data view and a controller). What functionality does the
data view have on it's own and what is the purpose of the controller? To
push the view away when no longer needed?

2. Do the controllers come with a default class to build off of, or do we
have to program them manually? 

3. When creating a massive navigation scheme (ex. a tab bar with navigation
screens for each one), what do you have as the base class?

4. The book mentioned nothing of MySQL or anything like that (I don't want
to use a web-based service like SOAP or REST). How do I go about allowing
that functionality to store data?

Sorry. I'm like really lost when it comes to navigation and UI building.
This is frustrating to me because I believe I comprehend everything but the
UI part. Which sucks. 

If anyone could help me on Skype or send me in the right direction at least
that would be great. If someone can simply walk me through on video (I'm
more of a hands-on/visual learner), they would be my hero.

One last question, I'm a college student and I noticed there is a student
package. However, this does not feature distribution. $399 is VERY expensive
for a college student so I was wondering if there was a combination of the
two! 

Once again, I appreciate all the help! Thanks!

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/UI-Questions-tp3756621p3756621.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] Difference between iPad 1 and iPad 2 with WebClient

2011-08-24 Thread Gonzalo Paniagua
- Hide quoted text -
On Thu, Aug 18, 2011 at 3:51 PM, Miguel de Icaza  wrote:
> Hello,
>
>> I have this code running on both iPad 1 and 2's. On the iPad 1 the code
>> hangs
>> at random points getting files. On a 2 it works 100% of the time. Any
>> thoughts would be appreciated.
>>
>> WebClient wc = new WebClient();
>> Uri uri = new Uri(url);
>> byte[] bytes = wc.DownloadData(uri);
>>
>> string path = Path.Combine(tmpPath, fileName);
>>
>> File.WriteAllBytes(path, bytes);
>> wc.Dispose();
>
> We just fixed this problem.   Gonzalo (CCed on this line) might be able to
> provide a temporary workaround to use for this scenario.

When the problem occurs, "kicking" the threadpool by adding another
work item will make the problem go away.

Something like this (not tested or compiled ;-) should do:

Timer timer = new Timer (AddMe);
...
WebClient wc = new WebClient ();
Uri uri = new Uri(url);
timer.Change (0, 500); // Trigger it now and every 500ms
byte[] bytes = wc.DownloadData(uri);
timer.Change (Timeout.Infinite, Timeout.Infinite);

static void AddMe (object state)
{
 // Empty.
}



-Gonzalo
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] Trial Download Is Broken

2011-08-24 Thread crashed
Here is the Server Error Message:


Server Error in '/' Application
Could not find file
"/home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg".

Description: HTTP 500. Error processing request.

Stack Trace:

System.IO.FileNotFoundException: Could not find file
"/home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg".
File name:
'/home/gonzalo/monotouch/download/download_area/MT/monotouch-eval-4.0.5.pkg'
  at System.IO.FileInfo.get_Length () [0x0] in :0 
  at (wrapper remoting-invoke-with-check) System.IO.FileInfo:get_Length ()
  at System.Web.HttpResponse.WriteFile (System.String filename, Boolean
readIntoMemory) [0x0] in :0 
  at System.Web.HttpResponse.WriteFile (System.String filename) [0x0] in
:0 
  at ASP.downloadtrial_aspx.OnLoad (System.EventArgs args) [0x0] in
:0 
  at System.Web.UI.Control.LoadRecursive () [0x0] in :0 
  at System.Web.UI.Page.ProcessLoad () [0x0] in :0 
  at System.Web.UI.Page.ProcessPostData () [0x0] in :0 
  at System.Web.UI.Page.InternalProcessRequest () [0x0] in :0 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x0] in :0 
Version information: Mono Runtime Version: 2.10.4 (mono_2_10/1b84abf Sun Aug
14 02:06:23 EDT 2011); ASP.NET Version: 2.0.50727.1433

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Trial-Download-Is-Broken-tp3751744p3751744.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] Crash on launch

2011-08-24 Thread makeout
I'll cross post my problem from another forum.
http://monogame.codeplex.com/discussions/269123

This might be more related to monotouch rather then monogame. And I can't
seem to understand what exactly is going wrong.

Basically, before my app even gets in the main, it crashes with the
following error.
Has anyone encountered this before? Really don't know what I can do to solve
this.
Thanks

dyld: could not load inserted library: /Users/makeout/Library/Application
Support/iPhone
Simulator/4.3.2/Applications/A53624FD-E7C4-4B3F-B87C-00283F059F2E/Paris.app/monotouch-fixes.dylib


=
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Crash-on-launch-tp3751120p3751120.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] How to convert content items during build time?

2011-08-24 Thread Richy
hi all,

Is it possible to convert some content items during build time and inject
the converted files into the conten process and removing the non converted
ones. In visual studio we do that using an custom msbuild action, is there
something like that possible with monodevelop?

Thanks for your time,
Ricy

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/How-to-convert-content-items-during-build-time-tp3747970p3747970.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] XIB'less development problems

2011-08-24 Thread mutablepro
All sorted, just needed to remove the the last of the refs from the build.

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/XIB-less-development-problems-tp3746953p3747291.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] XIB'less development problems

2011-08-24 Thread mutablepro
Hi,

I'm attempting to get a xib'less application (code first) up and running but
am getting an error in the simulator:

[ setValue: forUndefinedKey:] this class is not key
value coding-compliant for the key window

I do not have a main window xib, and am instead using the following:

using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace TestNavigation
{
public class Application
{
static void Main (string[] args)
{
UIApplication.Main(args, null, "AppDelegate");
}
}

[Register("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
private UIWindow window;
private NavigationController controller;

// This method is invoked when the application has loaded its 
UI and its
ready to run
public override bool FinishedLaunching (UIApplication app, 
NSDictionary
options)
{
var screenBounds = UIScreen.MainScreen.Bounds;

controller = new NavigationController();

window = new UIWindow(screenBounds);
window.AddSubview (controller.View);
window.MakeKeyAndVisible ();

return true;
}

// This method is required in iPhoneOS 3.0
public override void OnActivated (UIApplication application)
{
}
}   
}

Any help very much appreciated.

Mark

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/XIB-less-development-problems-tp3746953p3746953.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] monotouch-fixes.dylib (Problem on when running from MonoDevelop)

2011-08-24 Thread jsonmez
Hi,

Just starting out on MonoTouch after working in Objective-C for some time.

Trying to create a universal app and I am running into a problem that is
stopping me cold:

dyld: could not load inserted library: /Users/sonmez56/Library/Application
Support/iPhone
Simulator/4.3.2/Applications/1FA9DB7A-34E8-40F1-B103-DA06F9BD7026/Peekaboo.app/monotouch-fixes.dylib

This is happening on a button click that I have created a delegate for.

If I run either debugger or just run as from MonoDevelop, when I click the
button app crashes with that error.

I immediately rerun the app, (just by clicking the icon in the simulator)
and everything is fine.

Really want to be able to debug, so I am hoping for a solution to this.

Let me know if I need to provide more info, will gladly do so.

Thanks,

John Sonmez
http://simpleprogrammer.com

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/monotouch-fixes-dylib-Problem-on-when-running-from-MonoDevelop-tp3743710p3743710.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] [mono-android] profiling and other tools in monotouch/droid

2011-08-24 Thread Jonathan Pryor
On Jul 26, 2011, at 9:14 AM, Wally McClure wrote:
> What types of tools are available for monotouch/droid beyond just using 
> VS/monodevelop for debugging?  While I was at monospace, there was talk about 
> being able to profile.

There was talk of Mono 2.10 having profiling _support_ -- it has the ability to 
capture GC data, trace the GC heap, get call stat stacks, etc.

However, (1) there's no UI for all this data, and (2) there's currently no easy 
way to get at the data when it's on Android/etc.

In short, it serves as the foundation for future work.

 - Jon

___
Monodroid mailing list
monodr...@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] is my initial assumption correct?

2011-08-24 Thread Aaron
My assumption is that the mono frameworks for iphone and android can not be
used to maintain a single codebase between windows phone 7, android and
iphone.

I've stumbled onto the framework looking for a way to maintain a single
codebase in c# for all three mobile platforms.

Thanks!

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/is-my-initial-assumption-correct-tp3737343p3737343.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] WebRequest exception

2011-08-24 Thread alicya
I get the mentioned System.NotImplementedException in the WebResponse
object's IsMutuallyAuthenticated method only when I try to reach sites that
need authentication. So authentication might cause the problem.

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/WebRequest-exception-tp3726510p3732346.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] WebRequest exception

2011-08-24 Thread alicya
Hello!

Thank you for the response. I tried it with HttpWebRequest and
HttpWebResponse, but I get the same error.

I further investigated the problem, and I found that when trying to execute
"WebResponse response = request.GetResponse();", the response's
IsMutuallyAuthenticated method throws System.NotImplementedException. So I
think that this is the core of the problem.

Unhandled Exception: System.Net.WebException: The remote server returned an
error: (401) Unauthorized.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult
result) [0x002d9] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/HttpWebRequest.cs:1481
 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData
data) [0x00141] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/HttpWebRequest.cs:1306
 

Thanks in advance for any help!

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/WebRequest-exception-tp3726510p3732335.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] Xcode 4 Interface Builder

2011-08-24 Thread Alex1993
Hey Guys, 

i updated my OS to Lion and installed Xcode 4. Xcode 3 is not working. Does
anyone of you can explain me how to work with the new Interface Builder. The
old one was not installed. And i dont know how to reference outlets in the
new interface Builder. 

i hope you can help me.

thanks.
 
lg Alex

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Xcode-4-Interface-Builder-tp3730678p3730678.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] WebRequest exception

2011-08-24 Thread alicya
Hello!

I have an empty iPhone Window-based Project created with MonoDevelop.
In the generated code, in the FinishedLaunching method I try to connect to
the Twitter API using the following code:

string url = "http://twitter.com/statuses/friends_timeline.xml";;
WebRequest request = WebRequest.Create(url);
request.Method = WebRequestMethods.Http.Get;
request.PreAuthenticate = true;
request.Credentials = new NetworkCredential("***", "***");
WebResponse response = request.GetResponse();

My username and password are correct Twitter credentials. I tried it out
using HttpWebRequest and HttpWebResponse, but I constantly get the following
error:

Unhandled Exception: System.Net.WebException: Error: ConnectFailure
(Connection refused) ---> System.Net.Sockets.SocketException: Connection
refused
  at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP)
[0x00159] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Net.Sockets/Socket_2_1.cs:1254
 
  at System.Net.WebConnection.Connect (System.Net.HttpWebRequest request)
[0x001ba] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/WebConnection.cs:184
 


If I try to connect to any other url, for example: http://google.com,
specifying DefaultCredentials, or without using any credentials, I get the
same error too. 

Can you help me please?

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/WebRequest-exception-tp3726510p3726510.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] UIPickerView Help!!!!

2011-08-24 Thread luciano.assad
Personally, I'm creating an application with NavigationController.
In a second form, but I have a UIPickewView control simply does not load.
I've tried various ways including giving a new controle.Ai not from this
error, but neither carries nor appears in view. How do I apply this item
since this one is called from another form? Some could help me.

Observação.Meu English is bad, I am Brazilian.

I'll post the code

namespace Tables05
{
public partial class AlimentosDetalhe : UITableViewController 
{

//this.ListBox.Model = new ListBoxModel (this);
//ListBox.ShowSelectionIndicator = true;
#region Constructors

// The IntPtr and initWithCoder constructors are required for 
items that
need 
// to be able to be created from a xib rather than from managed 
code

public AlimentosDetalhe (IntPtr handle) : base(handle)
{
Initialize ();
}

[Export("initWithCoder:")]
public AlimentosDetalhe (NSCoder coder) : base(coder)
{
Initialize ();
}

public AlimentosDetalhe () : base("AlimentosDetalhe", null)
{
Initialize ();
//RectangleF f = new RectangleF(100,50,50,100);
//this.ListBox = new UIPickerView(f);
this.ListBox.Model = new ListBoxModel(this);
this.ListBox.ShowSelectionIndicator = true;
}

void Initialize ()
{
//ListBox = new UIPickerView();
//ListBox.Model = new ListBoxModel (this);
//ListBox.ShowSelectionIndicator = true;
//window.MakeKeyAndVisible ();
//return true;
}

class ListBoxModel : UIPickerViewModel 
{
AlimentosDetalhe app;
List data;
public ListBoxModel (AlimentosDetalhe controller)
{
app = controller;
data = new List{"Colher","Colher Sopa"};
}
public override int GetComponentCount (UIPickerView 
picker)
{
return 1;
}
public override int GetRowsInComponent (UIPickerView 
picker, int
component)
{
return data.Count;
}
public override string GetTitle (UIPickerView picker, 
int row, int
component)
{
return data[row];
}
public override void Selected (UIPickerView picker, int 
row, int
component)
{
//app.DisplayText.Text = "You selected " + 
data[row];
string teste = data[row].ToString();
}
}

#endregion
}

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/UIPickerView-Help-tp3725612p3725612.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] UIScreen.MainScreen.Bounds

2011-08-24 Thread johnHolmes
Hi all,

i'm facing a strange problem, developing landscape applications. It seems
that monotouch doesn't update UIScreen.MainScreen.Bounds width and height
values. I'm working with the device emulator.

OSX Lion
XCode 4.1.1
Monotouch eval 4.0.41
Mono 2.10.3.3

any hint?

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/UIScreen-MainScreen-Bounds-tp3725126p3725126.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] Interface builder on Lion

2011-08-24 Thread Mg
Hi,

I'm new to MonoTouch (and pretty much everything Mac).

I have a Macbook Pro with Lion and I've installed Xcode 4.11 from the app
store, Mono 2.10.3, MonoDevelop 2.4, and MonoTouch 4.0.4.1.

I've read that I should probably install Xcode 3 in order to use Interface
Builder. I did this after everything else was installed...although I wasn't
sure where to put it so I created an Xcode3 folder under applications. I now
have a bunch of icons showing up in Launchpad that probably ought not to be
there, but that isn't the real problem. I cannot find interface builder on
the list of applications in order to set xib files to open with it. What's
wrong?

Thanks

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Interface-builder-on-Lion-tp3723857p3723857.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] Are there any known issues with WebClient and SSL?

2011-08-24 Thread Nic Wise
I'm still working out whats going on, but i'm getting this in the
debug log (in the simulator):

(NOTE: the code works. It's just _messy_ in the output logs)

[0xb0981000:] EXCEPTION handling:
System.Security.Cryptography.CryptographicException: Store Root
doesn't exists.

"Threadpool worker" tid=0x0xb0981000 this=0x0xb4555e8 thread handle
0x11d state : not waiting owns ()
  at System.Security.Cryptography.X509Certificates.X509Store.Open
(System.Security.Cryptography.X509Certificates.OpenFlags) [0x000ae] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Store.cs:224
  at System.Security.Cryptography.X509Certificates.X509Chain.get_LMRootStore
() [0x00018] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:280
  at System.Security.Cryptography.X509Certificates.X509Chain.get_Roots
() [0x00011] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:251
  at 
System.Security.Cryptography.X509Certificates.X509Chain.get_CertificateCollection
() [0x00021] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:336
  at System.Security.Cryptography.X509Certificates.X509Chain.FindParent
(System.Security.Cryptography.X509Certificates.X509Certificate2)
[0x0] in 
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:414
  at System.Security.Cryptography.X509Certificates.X509Chain.BuildChainFrom
(System.Security.Cryptography.X509Certificates.X509Certificate2)
[0x00011] in 
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:356
  at System.Security.Cryptography.X509Certificates.X509Chain.Build
(System.Security.Cryptography.X509Certificates.X509Certificate2)
[0x00017] in 
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs:113
  at System.Net.ServicePointManager/ChainValidationHelper.ValidateChain
(Mono.Security.X509.X509CertificateCollection) [0x0009d] in
/Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/ServicePointManager.cs:467
  at Mono.Security.Protocol.Tls.SslClientStream.OnRemoteCertificateValidation2
(Mono.Security.X509.X509CertificateCollection) [0xd] in
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:423
  at Mono.Security.Protocol.Tls.SslStreamBase.RaiseRemoteCertificateValidation2
(Mono.Security.X509.X509CertificateCollection) [0x0] in
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslStreamBase.cs:210
  at 
Mono.Security.Protocol.Tls.SslClientStream.RaiseServerCertificateValidation2
(Mono.Security.X509.X509CertificateCollection) [0x0] in
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:446
  at 
Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.validateCertificates
(Mono.Security.X509.X509CertificateCollection) [0x0001f] in
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:198
  at 
Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.ProcessAsTls1
() [0x00054] in
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:105
  at Mono.Security.Protocol.Tls.Handshake.HandshakeMessage.Process ()
[0x00037] in 
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake/HandshakeMessage.cs:105
  at Mono.Security.Protocol.Tls.ClientRecordProtocol.ProcessHandshakeMessage
(Mono.Security.Protocol.Tls.TlsStream) [0x00039] in
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/ClientRecordProtocol.cs:81
  at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback
(System.IAsyncResult) [0x00127] in
/Developer/MonoTouch/Source/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs:397
  at (wrapper runtime-invoke)
.runtime_invoke_void__this___object
(object,intptr,intptr,intptr) 
[0xb0981000:] EXCEPTION handling:
System.Security.Cryptography.CryptographicException: Store Root
doesn't exists.

 AND ---
[0xb087f000:] EXCEPTION handling: System.ArgumentNullException:
Argument cannot be null.
Parameter name: type

"Threadpool worker" tid=0x0xb087f000 this=0x0xb455738 thread handle
0x11a state : not waiting owns ()
  at System.Activator.CheckType (System.Type) [0x6] in
/Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Activator.cs:339
  at System.Activator.CreateInstance
(System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[])
[0x0] in 
/Developer/MonoTouch/Source/mono/mcs/class/corlib/System

Re: [MonoTouch] Xml Linq bug

2011-08-24 Thread Rodrigo Kumpera
HI Jon,

Given you managed the hard part of coming up with a test case, mind filling
up a bug so it can
be fixed?

Thanks,
Rodrigo

On Wed, Aug 24, 2011 at 11:36 AM, Jon Hopkins wrote:

> Fortunately, it is just a debugger problem, and on the device it is
> working.
>
> ** **
>
> *Von:* monotouch-boun...@lists.ximian.com [mailto:
> monotouch-boun...@lists.ximian.com] *Im Auftrag von *Jon Hopkins
> *Gesendet:* 24 August 2011 16:16
> *Cc:* monotouch@lists.ximian.com
> *Betreff:* [MonoTouch] Xml Linq bug
>
> ** **
>
> Hi,
>
> ** **
>
> I have a class that I use to store a recursive object that is populated via
> Linq from Xml. The code is pretty
>
> Simple and works in Visual Studio, but in MT, the sub-objects exist but are
> garbage collected and NULL
>
> When you inspect them.
>
> ** **
>
> using System;
>
> using System.Xml.Linq;
>
> using System.Collections.Generic;
>
> using System.Linq;
>
> ** **
>
> public class pageObj
>
> {
>
> public string bgImage = "";
>
> ..
>
> public List subpages;
>
> ** **
>
> public pageObj() { }
>
> ** **
>
> public pageObj(XElement el)
>
> {
>
> if (el.Element("bgimage") != null)
>
> bgImage = el.Element("bgimage").Value ?? "";
>
> ...
>
> if (el.Element("subpages") != null)
>
> {
>
> var myref = subpages;  // try and keep a
> ref
>
> subpages = el.Element("subpages")
>
> .Descendants("subpage")
>
>.Select(e => new pageObj(e))
>
>.ToList();
>
> }
>
> ** **
>
> }
>
> }
>
> ** **
>
> .
>
> Initialised with
>
> ** **
>
> pages = xmlDoc
>
> .XPathSelectElements("magazine/page")
>
> .Select(e => new pageObj(e))
>
> .ToList();
>
> ** **
>
> Thanks,
>
> ** **
>
> Jon
>
> ___
> 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] Xml Linq bug

2011-08-24 Thread Jon Hopkins
Fortunately, it is just a debugger problem, and on the device it is
working.

 

Von: monotouch-boun...@lists.ximian.com
[mailto:monotouch-boun...@lists.ximian.com] Im Auftrag von Jon Hopkins
Gesendet: 24 August 2011 16:16
Cc: monotouch@lists.ximian.com
Betreff: [MonoTouch] Xml Linq bug

 

Hi,

 

I have a class that I use to store a recursive object that is populated
via Linq from Xml. The code is pretty

Simple and works in Visual Studio, but in MT, the sub-objects exist but
are garbage collected and NULL

When you inspect them.

 

using System;

using System.Xml.Linq;

using System.Collections.Generic;

using System.Linq;

 

public class pageObj

{

public string bgImage = "";

..

public List subpages;

 

public pageObj() { }

 

public pageObj(XElement el)

{

if (el.Element("bgimage") != null)

bgImage = el.Element("bgimage").Value ?? "";

...

if (el.Element("subpages") != null)

{

var myref = subpages;  // try and keep a
ref

subpages = el.Element("subpages")

.Descendants("subpage")

   .Select(e => new pageObj(e))

   .ToList();

}

 

}

}

 

.

Initialised with

 

pages = xmlDoc

.XPathSelectElements("magazine/page")

.Select(e => new pageObj(e))

.ToList();

 

Thanks,

 

Jon

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Monotouch activation with proxy

2011-08-24 Thread Jeff Stedfast
Another option is to set the HTTP_PROXY environment variable which Mono (and
thus MonoDevelop) will pick up and handle.

At some point in the future, this hack won't be necessary (I've already
implemented CFProxySupport bindings in MonoMac, but MonoDevelop needs to
link with it).

Jeff

On Wed, Aug 24, 2011 at 2:02 AM, scheelings wrote:

> Hi,
>
> Thanks for your answers.
> I will try Squid as a local proxy!
>
> Thx,
> Danny
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Monotouch-activation-with-proxy-tp3762881p3764557.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] Xml Linq bug

2011-08-24 Thread Jon Hopkins
Hi,

 

I have a class that I use to store a recursive object that is populated
via Linq from Xml. The code is pretty

Simple and works in Visual Studio, but in MT, the sub-objects exist but
are garbage collected and NULL

When you inspect them.

 

using System;

using System.Xml.Linq;

using System.Collections.Generic;

using System.Linq;

 

public class pageObj

{

public string bgImage = "";

..

public List subpages;

 

public pageObj() { }

 

public pageObj(XElement el)

{

if (el.Element("bgimage") != null)

bgImage = el.Element("bgimage").Value ?? "";

...

if (el.Element("subpages") != null)

{

var myref = subpages;  // try and keep a
ref

subpages = el.Element("subpages")

.Descendants("subpage")

   .Select(e => new pageObj(e))

   .ToList();

}

 

}

}

 

.

Initialised with

 

pages = xmlDoc

.XPathSelectElements("magazine/page")

.Select(e => new pageObj(e))

.ToList();

 

Thanks,

 

Jon

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Web Services

2011-08-24 Thread Wally McClure

Apologies for coming in in the middle of this.  Have you done these 
steps:http://wiki.ios.xamarin.com/HowTo/WebServices/Using_WCF
Wally

From: d...@callit.com.au
To: demis.bel...@gmail.com
Date: Wed, 24 Aug 2011 22:10:44 +1000
CC: monotouch@lists.ximian.com
Subject: Re: [MonoTouch] Web Services



Hey Demis, I took your advice and went the WCF path… seems a much better way to 
do things. I still have a problem though… I created a VERY simple service at 
http://hotdogs.infocore.com.au/hotdogs/Service1.svc, it works fine in VS 2010 
but doesn’t work in MT, I have just exhausted my limited knowledge on trying to 
figure it out, with no success… I added it as a WCF web reference called 
hdService and then have the following: hdService.ServiceClient client = new 
hdService.ServiceClient();Console.Writeline(client.Greeting”Dean”)); But it 
doesn’t run, keeps stopping with “Object reference not set to an instance of an 
object” also referencing the System.ServiceModel.ChannelFactory, whatever that 
is J I don’t know if it me, MT, the service or what… I’ll leave the service 
running, can someone try and consume it and tell me if it works? Or tell me 
what I am missing / doing wrong? Thanks!Dean   From: Demis Bellot 
[mailto:demis.bel...@gmail.com] 
Sent: Tuesday, 23 August 2011 12:03 AM
To: Dean Harry
Cc: monotouch@lists.ximian.com
Subject: Re: [MonoTouch] Web Services Hey Dean, Apart from the technical 
limitations, coupling your web services with your RDBMS is generally considered 
bad practice. (Although I'd also argue that due to its inefficiency, using SOAP 
in your resource constrained MonoTouch app should also be avoided). Why don't 
you just go the normal route and wrap your DB logic inside a standard .asmx web 
service? though my preference would be to avoid SOAP entirely and just use one 
of the many REST service frameworks available in .NET. If performance ever 
becomes a problem you can also try using my http://servicestack.net web service 
framework, where the JSON and JSV endpoints are multiple times more efficient 
than SOAP web services.
D.BSent from my iPad
On 22 Aug 2011, at 03:32, Dean Harry  wrote:Ok so I found 
my problem is a bug (https://bugzilla.novell.com/show_bug.cgi?id=670956) So I 
changed the  SqlXml class of the Reference.cs file to read, as the poster 
mentioned at the bottom of the bug report:public partial class SqlXml {
[System.Xml.Serialization.XmlAnyElement(Namespace="Any")]
[System.Xml.Serialization.XmlAnyElement(Name="Any")]
[System.Xml.Serialization.XmlTextAttribute()]
public System.Xml.XmlNode Any;
}But that still doesn’t work… has anyone been able to get this to work?  
I’m getting desperate… Cheers,Dean   From: monotouch-boun...@lists.ximian.com 
[mailto:monotouch-boun...@lists.ximian.com] On Behalf Of Dean Harry
Sent: Sunday, 21 August 2011 1:13 PM
To: monotouch@lists.ximian.com
Subject: [MonoTouch] Web Services Hi All, I am having a web service problem I 
can’t figure out… I have a web service on my MSSQL server with a web method on 
it… The following works fine in VS.NET but doesn’t work in Mono, now I am using 
2.8a but I wouldn’t have thought that anything would have changed in the web 
services side… The code is: GetMeets service = new 
GetMeets();Service.Credentials = new NetworkCredentials(“username”,”password”); 
It fails on the first line with: “There was an error reflecting type 
‘…..SqlXml’. Looking at the InnerException is shows “There was an error 
reflecting field ‘Any’…. The elemeny Any has been attributed with an 
XmlAnyElementAttribute and a namespace, but no name. Has anyone come across 
this before? Cheers,Dean ___
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 mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Xamarin Tech Support is Outstanding!

2011-08-24 Thread Jon Hopkins
Absolutely, the team are working hard to improve the product and support
the users! 

 

Thanks alot!

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Xamarin Tech Support is Outstanding!

2011-08-24 Thread Wally McClure

Agreed.  I have found the support we get from Xamarin to be really good, and I 
am just bothering them over IRC and email lists.  It was good to see it under 
Novell and under Xamarin now.  
Wally

Date: Wed, 24 Aug 2011 14:29:11 +0200
From: lennie.w...@gmail.com
To: ken.bud...@canfieldsci.com
CC: monotouch@lists.ximian.com
Subject: Re: [MonoTouch] Xamarin Tech Support is Outstanding!

Yes if we can only deal with Xamarin and not Apple as well (Apple support sucks)

On Wed, Aug 24, 2011 at 2:26 PM, kbudris  wrote:

In the short time they've been in business, Xamarin has already blown me away

with the quality of their technical support. I wish Apple were a tenth as

responsive. Thanks, guys. Keep up the great work!



--

View this message in context: 
http://monotouch.2284126.n4.nabble.com/Xamarin-Tech-Support-is-Outstanding-tp3765152p3765152.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 mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] No preview when switching to UIImagePickerController via UITabBarController on iOS 5

2011-08-24 Thread Nic Wise
I trigger mine off a normal window (monotouch.dialog
dialogviewcontroller to be exact), tho there is a tab controller
further down the stack. Works fine.

On Wed, Aug 24, 2011 at 13:37, kbudris  wrote:
> Has anyone else tried using UIImagePickerController (camera) with
> UITabBarController on iOS 5? I submitted sample Objective-C code to Apple
> two weeks ago but still haven't heard anything. Am I really the only one
> running into this problem?
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/No-preview-when-switching-to-UIImagePickerController-via-UITabBarController-on-iOS-5-tp3732760p3765181.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/

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] No preview when switching to UIImagePickerController via UITabBarController on iOS 5

2011-08-24 Thread kbudris
Has anyone else tried using UIImagePickerController (camera) with
UITabBarController on iOS 5? I submitted sample Objective-C code to Apple
two weeks ago but still haven't heard anything. Am I really the only one
running into this problem?

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/No-preview-when-switching-to-UIImagePickerController-via-UITabBarController-on-iOS-5-tp3732760p3765181.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] Xamarin Tech Support is Outstanding!

2011-08-24 Thread Lennie De Villiers
Yes if we can only deal with Xamarin and not Apple as well (Apple support
sucks)

On Wed, Aug 24, 2011 at 2:26 PM, kbudris  wrote:

> In the short time they've been in business, Xamarin has already blown me
> away
> with the quality of their technical support. I wish Apple were a tenth as
> responsive. Thanks, guys. Keep up the great work!
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Xamarin-Tech-Support-is-Outstanding-tp3765152p3765152.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] Xamarin Tech Support is Outstanding!

2011-08-24 Thread kbudris
In the short time they've been in business, Xamarin has already blown me away
with the quality of their technical support. I wish Apple were a tenth as
responsive. Thanks, guys. Keep up the great work!

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Xamarin-Tech-Support-is-Outstanding-tp3765152p3765152.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] Web Services

2011-08-24 Thread Dean Harry
Hey Demis,

I took your advice and went the WCF path… seems a much better way to do things.

I still have a problem though…

I created a VERY simple service at 
http://hotdogs.infocore.com.au/hotdogs/Service1.svc, it works fine in VS 2010 
but doesn’t work in MT, I have just exhausted my limited knowledge on trying to 
figure it out, with no success…

I added it as a WCF web reference called hdService and then have the following:

hdService.ServiceClient client = new hdService.ServiceClient();
Console.Writeline(client.Greeting”Dean”));

But it doesn’t run, keeps stopping with “Object reference not set to an 
instance of an object” also referencing the System.ServiceModel.ChannelFactory, 
whatever that is ☺

I don’t know if it me, MT, the service or what…

I’ll leave the service running, can someone try and consume it and tell me if 
it works? Or tell me what I am missing / doing wrong?

Thanks!
Dean



From: Demis Bellot [mailto:demis.bel...@gmail.com]
Sent: Tuesday, 23 August 2011 12:03 AM
To: Dean Harry
Cc: monotouch@lists.ximian.com
Subject: Re: [MonoTouch] Web Services

Hey Dean,

Apart from the technical limitations, coupling your web services with your 
RDBMS is generally considered bad practice. (Although I'd also argue that due 
to its inefficiency, using SOAP in your resource constrained MonoTouch app 
should also be avoided).

Why don't you just go the normal route and wrap your DB logic inside a standard 
.asmx web service? though my preference would be to avoid SOAP entirely and 
just use one of the many REST service frameworks available in .NET.

If performance ever becomes a problem you can also try using my 
http://servicestack.net web service framework, where the JSON and JSV endpoints 
are multiple times more efficient than SOAP web services.

D.B
Sent from my iPad

On 22 Aug 2011, at 03:32, Dean Harry 
mailto:d...@callit.com.au>> wrote:
Ok so I found my problem is a bug 
(https://bugzilla.novell.com/show_bug.cgi?id=670956)

So I changed the  SqlXml class of the Reference.cs file to read, as the poster 
mentioned at the bottom of the bug report:

   public partial class SqlXml {
[System.Xml.Serialization.XmlAnyElement(Namespace="Any")]
[System.Xml.Serialization.XmlAnyElement(Name="Any")]
[System.Xml.Serialization.XmlTextAttribute()]
public System.Xml.XmlNode Any;
}
But that still doesn’t work… has anyone been able to get this to work?  I’m 
getting desperate…

Cheers,
Dean



From: 
monotouch-boun...@lists.ximian.com 
[mailto:monotouch-boun...@lists.ximian.com] On Behalf Of Dean Harry
Sent: Sunday, 21 August 2011 1:13 PM
To: monotouch@lists.ximian.com
Subject: [MonoTouch] Web Services

Hi All,

I am having a web service problem I can’t figure out…

I have a web service on my MSSQL server with a web method on it…

The following works fine in VS.NET but doesn’t work in Mono, now 
I am using 2.8a but I wouldn’t have thought that anything would have changed in 
the web services side…

The code is:

GetMeets service = new GetMeets();
Service.Credentials = new NetworkCredentials(“username”,”password”);

It fails on the first line with:

“There was an error reflecting type ‘…..SqlXml’. Looking at the InnerException 
is shows “There was an error reflecting field ‘Any’…. The elemeny Any has been 
attributed with an XmlAnyElementAttribute and a namespace, but no name.

Has anyone come across this before?

Cheers,
Dean

___
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