Re: [MonoTouch] Dequeuing table cells?

2015-01-14 Thread Jeff Stedfast
Hi Michael,

Hopefully one of the Xamarin.iOS devs can chime in, but the IntPtr handle
that is passed to .ctors is the native object pointer.

If you don't pass it to base, then what happens is that the Xamarin.iOS
runtime creates a new native instance.

My understanding is that you have this:

public MyTableViewCell (IntPtr handle) : base (handle)
{
...
}

and that you are removing the call to base()...

You shouldn't be doing that afaik.

This .ctor is meant only to be used by the runtime itself and should not be
invoked by your code (it doesn't sound like you are invoking it yourself,
but just in case that wasn't obvious).

I'm not sure if that really helps answer your overall question, but
hopefully it at least helps clarify things a little bit for you.

Jeff

On Wed, Jan 14, 2015 at 11:40 AM, Michael McGlothlin 
mike.mcgloth...@gmail.com wrote:

 It appears that custom UITableViewCells must have a constructor that takes
 IntPtr for the automatic reuse to work but I can't see anywhere that says
 what this pointer is? It seems if I pass the pointer to the base that the
 cell doesn't work right but if I ignore the pointer it does work right?

 Thanks,
 Michael McGlothlin
 Sent from my iPhone
 ___
 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] Problem binding library

2014-01-02 Thread Jeff Stedfast
It would appear that there are 2 public MD5 structs or methods in those
native libraries and the linker doesn't know which one to use. I'm not sure
how to solve that... do you have the source code for these native libraries?


On Thu, Jan 2, 2014 at 4:44 PM, Matteo Polito map...@gmail.com wrote:

 Hi guys, I've a problem on binding GameCircle library by Amazon. They
 offer the Unity plugin for they library, I want to use classes they made
 for Unity on Monotouch. I've extracted unity plugin and now I want to use
 it on Monotouch. I've created a project and hosted it on GitHub (
 https://github.com/mapo80/GameCircle.Monotouch).

 There are two libraries: - AmazonInsightsSDK.a - GameCircle.a

 I'm using this linkWith parameters: [assembly: LinkWith
 (AmazonInsightsSDK.a, LinkTarget.ArmV7 | LinkTarget.ArmV7s |
 LinkTarget.Simulator, ForceLoad = true, IsCxx = true,
 LinkerFlags=-lsqlite3.0 -lstdc++, Frameworks = AdSupport GameKit
 MessageUI CoreTelephony SystemConfiguration Security ExternalAccessory
 Foundation)]

 [assembly: LinkWith (GameCircle.a, LinkTarget.Simulator |
 LinkTarget.ArmV7 | LinkTarget.ArmV7s, ForceLoad = true, IsCxx = true,
 LinkerFlags=-lsqlite3.0 -lstdc++, Frameworks = AdSupport GameKit
 MessageUI CoreTelephony SystemConfiguration Security ExternalAccessory
 Foundation)]

 When I reference dll on my iOS projects I obtain these errors:

 Compiling to native code /Developer/MonoTouch/usr/bin/mtouch -sdkroot
 /Applications/Xcode.app/Contents/Developer --cache
 /Users/matteo/Desktop/Monotouch.AmazonGameCircleBinding/Monotouch.AmazonGameCircleTestApp/obj/iPhoneSimulator/Debug/mtouch-cache
 --nomanifest --nosign -sim
 /Users/matteo/Desktop/Monotouch.AmazonGameCircleBinding/Monotouch.AmazonGameCircleTestApp/bin/iPhoneSimulator/Debug/MonotouchAmazonGameCircleTestApp.app
 -r
 /Users/matteo/Desktop/Monotouch.AmazonGameCircleBinding/Monotouch.AmazonGameCircleBinding/bin/Debug/Monotouch.AmazonGameCircleBinding.dll
 -r /Developer/MonoTouch/usr/lib/mono/2.1/System.dll -r
 /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll -r
 /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll -r
 /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll -debug -nolink -sdk
 7.0 -targetver 7.0 --abi=i386
 /Users/matteo/Desktop/Monotouch.AmazonGameCircleBinding/Monotouch.AmazonGameCircleTestApp/bin/iPhoneSimulator/Debug/MonotouchAmazonGameCircleTestApp.exe
 Xamarin.iOS 7.0.6 Business Edition using framework:
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk
 Process exited with code 1, command:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
 -lsqlite3.0 -lstdc++ -Wl,-pie -gdwarf-2 -arch i386 -isysroot
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk
 -Qunused-arguments -fobjc-legacy-dispatch -fobjc-abi-version=2
 -mios-simulator-version-min=7.0
 /Users/matteo/Desktop/Monotouch.AmazonGameCircleBinding/Monotouch.AmazonGameCircleTestApp/obj/iPhoneSimulator/Debug/mtouch-cache/main.i386.o
 -force_load
 /Users/matteo/Desktop/Monotouch.AmazonGameCircleBinding/Monotouch.AmazonGameCircleTestApp/obj/iPhoneSimulator/Debug/mtouch-cache/AmazonInsightsSDK.a
 -force_load
 /Users/matteo/Desktop/Monotouch.AmazonGameCircleBinding/Monotouch.AmazonGameCircleTestApp/obj/iPhoneSimulator/Debug/mtouch-cache/GameCircle.a
 -o
 /Users/matteo/Desktop/Monotouch.AmazonGameCircleBinding/Monotouch.AmazonGameCircleTestApp/bin/iPhoneSimulator/Debug/MonotouchAmazonGameCircleTestApp.app/MonotouchAmazonGameCircleTestApp
 -framework CFNetwork -framework AVFoundation -framework Accelerate
 -framework AddressBook -framework AudioToolbox -framework QuartzCore
 -framework CoreBluetooth -framework CoreData -framework CoreGraphics
 -framework CoreImage -framework CoreLocation -framework CoreText -framework
 Foundation -framework GameKit -framework ImageIO -framework
 MobileCoreServices -framework Security -framework SystemConfiguration
 -framework CoreMedia -framework CoreMIDI -framework CoreVideo -framework
 StoreKit -framework AssetsLibrary -framework Accounts -framework
 CoreTelephony -framework EventKit -framework EventKitUI -framework
 CoreMotion -framework GLKit -framework iAd -framework MapKit -framework
 MediaPlayer -framework MessageUI -framework NewsstandKit -framework
 OpenGLES -framework Social -framework Twitter -framework UIKit -framework
 PassKit -framework SpriteKit -framework JavaScriptCore -framework
 MultipeerConnectivity -framework AddressBookUI -framework SafariServices
 -framework ExternalAccessory -framework AdSupport -framework QuickLook -lz
 -liconv -u _mono_pmip -u _xamarin_init_nsthread -u
 _xamarin_get_block_descriptor -u _monotouch_get_locale_country_code -u
 _monotouch_log -u _monotouch_start_wwan -u _monotouch_timezone_get_data -u
 _monotouch_timezone_get_names -u _monotouch_IntPtr_objc_msgSend_IntPtr -u
 _monotouch_IntPtr_objc_msgSendSuper_IntPtr -u
 

Re: [MonoTouch] Set Code Signing Identity to Don't Code Sign

2013-08-07 Thread Jeff Stedfast
You can't currently not code-sign an iOS application bundle. What is your
reason for not wanting to code-sign?

Jeff


On Wed, Aug 7, 2013 at 8:31 AM, mobiledev1600 mobiledev1...@gmail.comwrote:

 How to set the Code Signing Identity to Don't Code Sign using MonoTouch. I
 dont want to code sign my app. I made necessary changes in
 SDKSettings.plist
 file In Xcode you can select Don't code sign rather than any provisioning
 profile. I couldn't find any such option using MonoTouch.



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Set-Code-Signing-Identity-to-Don-t-Code-Sign-tp4658425.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 binding SIGSEGV

2013-04-10 Thread Jeff Stedfast
Hi Patrik,

The problem appears to be that SendTag...()'s thread uses the NSString that
gets passed to it as an argument after it has already been free'd.


   1. [Export (sendTagWithCategory:)]
   2. int SendTagWithCategory (string category);


This will generate code similar to this:

int SendTagWithCategory (string category)
{
NSString str = new NSString (category);
int retval = dispatch_to_objective_c (str);
str.Dispose ();
return retval;
}

As you can see in the above pseudo-binding, the NSString gets immediately
disposed after making the call to Objective-C because it doesn't know that
it shouldn't do that (and I think Apple's coding guidelines state that
these sorts of APIs should clone the input parameters if they intend to use
it asynchronously).

To work around this issue, you'll need to change your binding to:


   1. [Export (sendTagWithCategory:)]
   2. int SendTagWithCategory (NSString category);


Once you do that, you'll need to keep your copy of the category string
cached somewhere (such as a member variable on whatever class is calling
TSMobileTagging.SendTagWithCategory()) until you know that the thread had
completed (unfortunately there doesn't seem to be a way to do that?). You
might also be able to define some global NSString category string values
that you use instead of passing around .NET strings.

Hope that helps,

Jeff

On Wed, Apr 10, 2013 at 1:16 PM, Patrik Ahlenius pat...@ahlenius.se wrote:

 Hi,

 I'm trying to bind an Objective-C library but have run into a problem. One
 of the methods in the binding only works in roughly 1 out of 10 calls, and
 for the most time crashes the app with a SIGSEGV. The functions that
 crashes does according to the library docs spawn of a new thread which
 opens a network connection. Can threading be a part of the problem?

 The binding itself is is light, and only binds three methods. Attached at
 the bottom are pastebins to the crashlog (as well as my binding, and the
 Obj-C. headers for the functions bound)

 Realize that it probably is most likely diffuclt to give any pointers on
 what could be wrong, but figured i give it a shot anyway in case anyone has
 experienced something similair.

 Best regards,
 Patrik

 Success/Crashlog: http://pastebin.com/SGVFs8XQ

 My binding: http://pastebin.com/ArkHvJHE

 Obj-C headers (without unbound methods omitted) :
 http://pastebin.com/EVcms9f3

 ___
 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] Again about binding Wrapper class mising

2013-02-28 Thread Jeff Stedfast
Make sure that your LinkWith attribute is correct in the binding project
and that the btouch command is adding the native library(s) with the proper
resource name (it has to match what is in the LinkWith attribute).

If those are correct, you can do click the Build / Clean menu option and
then try building again.

Hope that helps,

Jeff

On Thu, Feb 28, 2013 at 4:24 AM, mkovalyk mishakova...@gmail.com wrote:

 Still have problem with makefile, but decided to delay it for a better
 time.)
 About project. So, I did project with xcode and monodevelop. I did a fat
 library and create dll file.
 When I'm using it, I have error -
 * ld: file not found:

 /var/folders/lj/lz5d3bzj44n2mzt7qz9zrnccgn/T/tmp4264a99f.tmp/libIIViewDeckController.a
 collect2: ld returned 1 exit status
 ld: file not found:

 /var/folders/lj/lz5d3bzj44n2mzt7qz9zrnccgn/T/tmp4264a99f.tmp/libIIViewDeckController.a
 collect2: ld returned 1 exit status
 lipo: can't open input file:
 /var/folders/lj/lz5d3bzj44n2mzt7qz9zrnccgn/T//ccQ26RwF.out (No such
 file
 or directory)*
 As I understood it does some cache. How can I resolve this problem?



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Again-about-binding-Wrapper-class-mising-tp4658118p4658130.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] Again about binding Wrapper class mising

2013-02-27 Thread Jeff Stedfast
Hi mkovalyk,

The reason you are getting that error for devices is because your native
library only has i386 support. You need an armv6 or armv7 (or armv7s)
native library in order for it to work on device (either that or replace
the current native library with a fat binary which includes i386 *and*
arm).

Hopefully someone else on the list will help you figure out why the
simulator build isn't working correctly, but when binding methods start
returning null for everything, there's a good chance that the native
library isn't linking properly (perhaps you forgot some other library
references?). You probably just need to add the right LinkerFlags (and
possibly Frameworks) to the LinkWith attribute in this file:

https://github.com/livercool/ViewDeckMonoTouch/blob/master/IIViewDeckControllerBindingProject/IIViewDeskController/libIIViewDeckController.linkwith.cs

Jeff

On Wed, Feb 27, 2013 at 3:12 AM, mkovalyk mishakova...@gmail.com wrote:

 Again about binding.
 So, I have read some bugs at bugzilla, at stackoverflow and here, and it
 didn't help me. All these problem was with native libraries, I had 3rd
 party
 library.
  Problem is, when I bind my class IIViewDeckController, it's compiled,
 makes
 dll for me and it seems I can use it. But...
 When I try to use it, in Debug/iPhone mode, I have Error:
 * Wrapper type 'ViewDeckController.IIViewDeckController' is missing its
 native ObjectiveC class 'IIViewDeckController'.*

 When I am in iPhoneSimulator mode, there is no exception, but it does not
 works. all fields are either Null or NaN.
 Please help me with it.
 github project: https://github.com/livercool/ViewDeckMonoTouch
 Thank you!



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Again-about-binding-Wrapper-class-mising-tp4658118.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] Again about binding Wrapper class mising

2013-02-27 Thread Jeff Stedfast
That's what I said :-)

If you want it to work on your device, you need an arm version of the
library.

Jeff

On Wed, Feb 27, 2013 at 7:46 AM, mkovalyk mishakova...@gmail.com wrote:

 Hi, Jeff. Thank you for replying.
 I know about i386. but I just thought that i386 is for Macbooks. because
 when I chooosing building for iPhone in Xcode, I can choose only arm7 or
 arm7s architecture.



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Again-about-binding-Wrapper-class-mising-tp4658118p4658120.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] Again about binding Wrapper class mising

2013-02-27 Thread Jeff Stedfast
Well, if the *.a is really an armv7 or armv7s library and not i386, that
would be why it's not working on Simulator either, then.

You need to make sure that the LinkWith attribute has the correct values or
things won't work. Right now, your LinkWith attribute says that the *.a is
for LinkTarget.Simulator (aka i386).

Jeff

On Wed, Feb 27, 2013 at 8:45 AM, mkovalyk mishakova...@gmail.com wrote:

 I think there was some misunderstanding. I said that When I build *.a
 library
 I can't choose i386. I can only choose armv7 or armv7s version. So it is
 armv7 by default.)
  I will try to create fat library. If it helps, I will let you know.)




 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Again-about-binding-Wrapper-class-mising-tp4658118p4658122.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] Again about binding Wrapper class mising

2013-02-27 Thread Jeff Stedfast
Where is your actual Makefile? The snippet on stackoverflow is improperly
formatted.

Jeff

On Wed, Feb 27, 2013 at 9:00 AM, mkovalyk mishakova...@gmail.com wrote:

 OK. I have spent all my day with this problem.
 Maybe you can help me with another error. I'm trying to make a makefile.
 because it waste much time to do it in Xcode and MonoDevelop.
 As example I used

 https://github.com/xamarin/monotouch-samples/blob/master/BindingSample/src/binding/Makefile
 
 https://github.com/xamarin/monotouch-samples/blob/master/BindingSample/src/binding/Makefile
 

 I explained more details in  here
 
 http://stackoverflow.com/questions/15113138/target-pattern-contains-no-makefile
 
 . If you have a few free minutes, Please help me with this.
 I would be very grateful.
 Thank you.



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Again-about-binding-Wrapper-class-mising-tp4658118p4658124.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] Again about binding Wrapper class mising

2013-02-27 Thread Jeff Stedfast
The first thing I notice is that you used spaces instead of tabs to indent
the build commands for each target in the makefile. Try changing them to
tabs (I'm on a Windows machine right now so can't actually test your
makefile).

Hope that helps,

Jeff

On Wed, Feb 27, 2013 at 9:16 AM, mkovalyk mishakova...@gmail.com wrote:


 https://github.com/mkovalyk/IIViewDeckControllerBinding/blob/master/src/binding/Makefile
 
 https://github.com/mkovalyk/IIViewDeckControllerBinding/blob/master/src/binding/Makefile
 
 I created new repo with makefile.




 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Again-about-binding-Wrapper-class-mising-tp4658118p4658126.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] Build failed. ApplicationName='codesign'

2013-02-23 Thread Jeff Stedfast
Hi Kimmin,

Do you have Xcode installed? You might need to install the Command-Line
Tools package (from within Xcode's Preferences dialog, in the Downloads
tab). to get the iphoneos-optimize script, I'm not sure.

Does 
'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/iphoneos-optimize'
exist? Is it executable?

The exception you got in the build suggests that the system can't execute
that script for some reason.

Xamarin Studio no longer executes that script directly, it executes
pngcrush instead, so you could try using Xamarin Studio to see if that
works for you.

Hope that helps,

Jeff

On Sat, Feb 23, 2013 at 4:15 AM, kimmin tamd...@gmail.com wrote:

 I have the same error. Here is full log:
 Building Solution: TestMono (Debug|iPhone)

 Building: TestMono (Debug|iPhone)

 Detecting signing identity...
 Provisioning Profile: TamIP5_libgdx
 (F4AF43C0-E104-4E91-A3B5-BABF9587B3B5)
 Signing Identity: iPhone Developer: Tam Dinh (2XSE96768U)
 App ID: D26XEPCZ8Q.vn.mecorp.iwin
 Performing main compilation...
 /Developer/MonoTouch/usr/bin/smcs /noconfig
 /out:/Users/kimmin/TestMono/TestMono/bin/iPhone/Debug/TestMono.exe
 /r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll
 /r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll
 /r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll
 /r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll /nologo /warn:4
 /debug:full /optimize- /codepage:utf8 /define:DEBUG  /t:exe
 /Users/kimmin/TestMono/TestMono/Main.cs
 /Users/kimmin/TestMono/TestMono/AppDelegate.cs
 /Users/kimmin/TestMono/TestMono/RootViewController.cs
 /Users/kimmin/TestMono/TestMono/RootViewController.designer.cs
 /Users/kimmin/TestMono/TestMono/DetailViewController.cs
 /Users/kimmin/TestMono/TestMono/DetailViewController.designer.cs
 Compilation succeeded - 6 warning(s)

 /Users/kimmin/TestMono/TestMono/RootViewController.cs(38,38): warning
 CS0672: Member

 `TestMono.RootViewController.ShouldAutorotateToInterfaceOrientation(MonoTouch.UIKit.UIInterfaceOrientation)'
 overrides obsolete member

 `MonoTouch.UIKit.UIViewController.ShouldAutorotateToInterfaceOrientation(MonoTouch.UIKit.UIInterfaceOrientation)'.
 Add the Obsolete attribute to

 `TestMono.RootViewController.ShouldAutorotateToInterfaceOrientation(MonoTouch.UIKit.UIInterfaceOrientation)'
 /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll (Location of the symbol
 related to previous warning)
 /Users/kimmin/TestMono/TestMono/RootViewController.cs(56,38): warning
 CS0672: Member `TestMono.RootViewController.ViewDidUnload()' overrides
 obsolete member `MonoTouch.UIKit.UIViewController.ViewDidUnload()'. Add the
 Obsolete attribute to `TestMono.RootViewController.ViewDidUnload()'
 /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll (Location of the symbol
 related to previous warning)
 /Users/kimmin/TestMono/TestMono/DetailViewController.cs(61,38): warning
 CS0672: Member `TestMono.DetailViewController.ViewDidUnload()' overrides
 obsolete member `MonoTouch.UIKit.UIViewController.ViewDidUnload()'. Add the
 Obsolete attribute to `TestMono.DetailViewController.ViewDidUnload()'
 /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll (Location of the symbol
 related to previous warning)
 /Users/kimmin/TestMono/TestMono/DetailViewController.cs(73,38): warning
 CS0672: Member

 `TestMono.DetailViewController.ShouldAutorotateToInterfaceOrientation(MonoTouch.UIKit.UIInterfaceOrientation)'
 overrides obsolete member

 `MonoTouch.UIKit.UIViewController.ShouldAutorotateToInterfaceOrientation(MonoTouch.UIKit.UIInterfaceOrientation)'.
 Add the Obsolete attribute to

 `TestMono.DetailViewController.ShouldAutorotateToInterfaceOrientation(MonoTouch.UIKit.UIInterfaceOrientation)'
 /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll (Location of the symbol
 related to previous warning)
 /Users/kimmin/TestMono/TestMono/RootViewController.cs(58,30): warning
 CS0618: `MonoTouch.UIKit.UIViewController.ViewDidUnload()' is obsolete:
 `Deprecated in iOS 6.0'
 /Users/kimmin/TestMono/TestMono/DetailViewController.cs(63,30): warning
 CS0618: `MonoTouch.UIKit.UIViewController.ViewDidUnload()' is obsolete:
 `Deprecated in iOS 6.0'


 Build complete -- 0 errors, 6 warnings

 Compiling to native code
 /Developer/MonoTouch/usr/bin/mtouch -sdkroot
 /Applications/Xcode.app/Contents/Developer -v --cache
 /Users/kimmin/TestMono/TestMono/obj/Debug/mtouch-cache --nomanifest
 --nosign -dev
 /Users/kimmin/TestMono/TestMono/bin/iPhone/Debug/TestMono.app -r
 /Developer/MonoTouch/usr/lib/mono/2.1/System.dll -r
 /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll -r
 /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll -r
 /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll -debug -profiling
 -linksdkonly -sdk 6.1 -targetver 3.2 --abi=armv7
 /Users/kimmin/TestMono/TestMono/bin/iPhone/Debug/TestMono.exe
 MonoTouch version 6.0.10 using framework:

 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
 Copied 

Re: [MonoTouch] How do I make DateTimeElement datePicker show up in a popover?

2013-02-21 Thread Jeff Stedfast
Hi Xy,

I wrote my own Element subclass for this in my own side-project. You can
find the source for my DateEntryElement here:

https://github.com/jstedfast/FlightLog/blob/master/FlightLog/Elements/DateEntryElement.cs

Hope that helps!

Jeff

On Thu, Feb 21, 2013 at 2:34 AM, Xy x...@pyriformgroup.com wrote:

 Updated original post to correct code formatting



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/How-do-I-make-DateTimeElement-datePicker-show-up-in-a-popover-tp4658091p4658092.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] Load image from native library resources

2012-12-14 Thread Jeff Stedfast
Hi Dennis,

I'm a bit confused about your question...

When you build your app bundle, where do the files end up? You can poke
around in the appropriate bin directory.

MonoTouch Binding Projects embed files marked as Content or BundleResource
into the dll (temporarily) for ease of sharing the resulting assembly, but
the main app project extracts them into their appropriate location when
generating the app bundle.

Hopefully that clears things up and helps you figure out where they went.

Jeff

On Fri, Dec 14, 2012 at 12:55 PM, Dennis Welu 
dennisw...@motisconsulting.com wrote:

 And that doesn't work either. Ok I'm done spamming.



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Load-image-from-native-library-resources-tp4657849p4657854.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] Load image from native library resources

2012-12-14 Thread Jeff Stedfast
Perhaps the BundleResource and Content options only work in MonoDevelop
3.1.0?

Jeff

On Fri, Dec 14, 2012 at 4:10 PM, Dennis Welu dennisw...@motisconsulting.com
 wrote:

 For the record, the build action I had to set to EmbeddedResource, as
 BundleResource was not available... (it's available for png's in the main
 project but not the bindings project), and then load the resource via its
 ID
 like:

 MyImage =  UIImage.FromResource(typeof(SomeTypeInBindingAssembly).Assembly,
 MyBindingNamespace.Images.filename.png);

 I tried also setting build action to Content to see if I could get the
 resources to show up as just content in the final bundle but did not get
 that to happen. But this will work for me.



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Load-image-from-native-library-resources-tp4657849p4657859.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] Multiple projects

2012-12-13 Thread Jeff Stedfast
Hi Guido,

You Can select the project you want to build in the Solution Tree and then
hit Command+K (instead of Command+B which builds the entire solution).

You can also right-click on the project you'd like to build in the Solution
Tree and select Build ProjectName.

Hope that helps,

Jeff

On Thu, Dec 13, 2012 at 4:37 PM, Guido Van Hoecke gui...@gmail.com wrote:

 Hi,

 I have a solution with two projects. Only one of them is the startup
 project. Still when I build the current startup project, it builds both
 projects.

 How do I tell MonoDevelop to only build the current project?

 TIA,


 Guido

 --
 Be cheerful while you are alive.
 -- Phathotep, 24th Century B.C.

 http://vanhoecke.org ... and go2 places!
 ___
 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] Thanks Everyone!

2012-12-04 Thread Jeff Stedfast
You're welcome and congratulations!

Jeff

On Mon, Dec 3, 2012 at 8:44 PM, dermotos m...@dermotos.com wrote:

 Well, after 18 months of spare time development  learning, I've finally
 released my first app on the App Store.
 (more info: www.groovepond.com)

 I just wanted to thank everyone in this forum for there assistance,
 especially Rolf, Jeff, Nic Wise, Sebastien Pouliot and anyone else who
 helped me.


 App is live on the app store
 https://itunes.apple.com/app/groovepond/id547864690?mt=8


 Thanks again!



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Thanks-Everyone-tp4657767.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.Dialog - Select Cell

2012-12-03 Thread Jeff Stedfast
Hi Iki,

I think what you want to do is:

// Select and scroll to a particular element
//
// From Apple's documentation:
//
// To scroll to the newly selected row with minimum scrolling, select the
row using
// selectRowAtIndexPath:animated:scrollPosition: with
UITableViewScrollPositionNone,
// then call scrollToRowAtIndexPath:atScrollPosition:animated: with
// UITableViewScrollPositionNone.

using (var path = element.IndexPath) {
TableView.SelectRow (path, true, UITableViewScrollPosition.None);
TableView.ScrollToRow (path, UITableViewScrollPosition.None, true);
}


Hope that helps,

Jeff

On Mon, Dec 3, 2012 at 10:47 AM, Iki i...@holisticware.com wrote:

 Hi guys, I'm trying to select a cell inside DialogViewController (only
one at a time).

 For now only thing that I'm able to do is following :

 StringElement se1 = new StringElement(TEST CLICK);
 se1.Tapped += () =
 {

 se1.GetCell(this.TableView).SelectionStyle =
UITableViewCellSelectionStyle.Blue
 } ;

 While using this, cell is only temporary selected, i.e. flashing blue
after is pressed. Is there a way to make this permanent, or unit i select
another one?



 Thanks for your help!!



 ___
 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] Auto network credentials

2012-11-29 Thread Jeff Stedfast
Looks like the fix hasn't landed in a release build yet, but Sebastien
checked and it is included in the mono that will be used for the next
release.

Jeff

On Thu, Nov 29, 2012 at 5:10 AM, Nic Wise n...@fastchicken.co.nz wrote:

 YES! That is exactly my issue.

 Is that in a shipping build of MT? If so, which one? Might also
 explain why I've not had errors back from users on this one for a
 while :)

 Thanks Jeff!

 On Wed, Nov 28, 2012 at 11:41 PM, Jeff Stedfast j...@xamarin.com wrote:
  Hi Nic,
 
  That sounds a lot like this bug:
  https://bugzilla.xamarin.com/show_bug.cgi?id=7599
 
  Jeff
 
  On Wed, Nov 28, 2012 at 11:20 AM, Nic Wise n...@fastchicken.co.nz
 wrote:
 
  ... if anyone happens to be looking into the MT proxy code:
 
  If I set a proxy (using the iOS one, usually, but I think it happens
  if I do it in code too), then:
 
  GET https://api.dropbox.com etc (this works)
 
  GET https://api.someoneelse.com (this doesn't work - it calls
  api.dropbox.com and passes the url / query string for this request)
 
  needless to say, api.someoneelse.com doesn't understand dropbox api
  calls...
 
  I thought it was just RestSharp, as I can't repro consistently without
  using it, but I also can't see how RS would be doing it makes no
  sense.
 
  My answer has always been dont use a proxy. Or Onavo. Lucky most
  people dont' use them.
 
 
 
 
  On Wed, Nov 28, 2012 at 3:56 PM, Robert Reck rr...@keylogic.com
 wrote:
   I had something similar happen very recently. I was pulling data from
 a
   public US Government web service that did not require credentials,
 but I was
   getting the same type of proxy 407 error. My issue turned out to be
 related
   to a profile that was installed on my phone by another app (not
 mine). Even
   though I had uninstalled the app and tried to remove the profile
 previously,
   it was still stuck on there somehow and not visible when looking in
 the
   profile section.  I found it by pure luck when I re-installed the app
 in
   question and noticed that it thought the profile was still installed.
 I
   forced a re-install and then removed it successfully and my 407 errors
   ended.
  
   Not sure if this is your problem too, but I figured I'd mention it
 just
   in case.
   Bob
  
  
   -Original Message-
   From: monotouch-boun...@lists.ximian.com
   [mailto:monotouch-boun...@lists.ximian.com] On Behalf Of Jeffrey
 Stedfast
   Sent: Wednesday, November 28, 2012 10:50 AM
   To: Brad Moore
   Cc: monotouch@lists.ximian.com
   Subject: Re: [MonoTouch] Auto network credentials
  
   Hi Brad,
  
   This could just be a bug in MonoTouch. I'll try to look into this as
   soon as I can. You've submitted a bug report to bug ills already,
 right?
   (Pretty sure I saw one recently filed on this)
  
   Jeff
  
   Sent from my iPhone
  
   On Nov 26, 2012, at 2:25 AM, Brad Moore b.mo...@4pilabs.com.au
 wrote:
  
   Hey
   Trying to load some data off my server (xml data). I normally just
 use
   HttpWebRequest as I can set the utomaticDecompression to
   DecompressionMethods.GZip | DecompressionMethods.Deflate in order to
 use
   gzip compression of my data automatically.
  
   Recently a client has emailed me saying that it does not work from
   within his school. Sent out another copy of the app to him via
 TestFlightApp
   to get more debugging info from him and the app responds with a 407
 auth
   error. Since then I have set up a proxy on my computer which I
 redirect my
   iPhone traffic through to test on.
  
   My original setup was like so,
  
   HttpWebRequest request = (HttpWebRequest)WebRequest.Create(_url);
   request.CachePolicy = new
   HttpRequestCachePolicy(HttpRequestCacheLevel.NoCacheNoStore);
   request.Proxy = null;
   request.AutomaticDecompression = DecompressionMethods.GZip |
   DecompressionMethods.Deflate; WebResponse response =
   request.GetResponse();
  
   and then so on from there.
  
   I'd set Proxy to null because in most cases the user would not be
   behind a proxy and this cut off 1-2 seconds of proxy resolving.
 There is
   code later to catch this and then re-create the HttpWebRequest but
 by not
   nulling the proxy, which I thought would be default proxy.
 Apparently not
   so...
  
   I tried to then get the default proxy settings of the device.
  
   CFProxySettings proxy0 = CFNetwork.GetSystemProxySettings();
   IWebProxy proxy1 = WebRequest.GetSystemWebProxy(); IWebProxy proxy2 =
   HttpWebRequest.DefaultWebProxy; IWebProxy proxy3 =
   HttpWebRequest.GetSystemWebProxy();
   IWebProxy proxy4 = CFNetwork.GetDefaultProxy();
  
   proxy1 - proxy4 have null for the credentials. proxy0 contains proxy
   information which I need such as proxy url, port, username, but no
   password...
  
   I manually made a WebProxy with my credentials
  
   WebProxy webProxy = new WebProxy(proxy0.HTTPProxy, proxy0.HTTPPort);
   webProxy.Credentials = new NetworkCredential(user, pass);
   request.Proxy = webProxy;
  
   and this works.
   Falling

Re: [MonoTouch] Auto network credentials

2012-11-28 Thread Jeff Stedfast
Hi Nic,

That sounds a lot like this bug:
https://bugzilla.xamarin.com/show_bug.cgi?id=7599

Jeff

On Wed, Nov 28, 2012 at 11:20 AM, Nic Wise n...@fastchicken.co.nz wrote:

 ... if anyone happens to be looking into the MT proxy code:

 If I set a proxy (using the iOS one, usually, but I think it happens
 if I do it in code too), then:

 GET https://api.dropbox.com etc (this works)

 GET https://api.someoneelse.com (this doesn't work - it calls
 api.dropbox.com and passes the url / query string for this request)

 needless to say, api.someoneelse.com doesn't understand dropbox api
 calls...

 I thought it was just RestSharp, as I can't repro consistently without
 using it, but I also can't see how RS would be doing it makes no
 sense.

 My answer has always been dont use a proxy. Or Onavo. Lucky most
 people dont' use them.




 On Wed, Nov 28, 2012 at 3:56 PM, Robert Reck rr...@keylogic.com wrote:
  I had something similar happen very recently. I was pulling data from a
 public US Government web service that did not require credentials, but I
 was getting the same type of proxy 407 error. My issue turned out to be
 related to a profile that was installed on my phone by another app (not
 mine). Even though I had uninstalled the app and tried to remove the
 profile previously, it was still stuck on there somehow and not visible
 when looking in the profile section.  I found it by pure luck when I
 re-installed the app in question and noticed that it thought the profile
 was still installed. I forced a re-install and then removed it successfully
 and my 407 errors ended.
 
  Not sure if this is your problem too, but I figured I'd mention it just
 in case.
  Bob
 
 
  -Original Message-
  From: monotouch-boun...@lists.ximian.com [mailto:
 monotouch-boun...@lists.ximian.com] On Behalf Of Jeffrey Stedfast
  Sent: Wednesday, November 28, 2012 10:50 AM
  To: Brad Moore
  Cc: monotouch@lists.ximian.com
  Subject: Re: [MonoTouch] Auto network credentials
 
  Hi Brad,
 
  This could just be a bug in MonoTouch. I'll try to look into this as
 soon as I can. You've submitted a bug report to bug ills already, right?
 (Pretty sure I saw one recently filed on this)
 
  Jeff
 
  Sent from my iPhone
 
  On Nov 26, 2012, at 2:25 AM, Brad Moore b.mo...@4pilabs.com.au wrote:
 
  Hey
  Trying to load some data off my server (xml data). I normally just use
 HttpWebRequest as I can set the utomaticDecompression to
 DecompressionMethods.GZip | DecompressionMethods.Deflate in order to use
 gzip compression of my data automatically.
 
  Recently a client has emailed me saying that it does not work from
 within his school. Sent out another copy of the app to him via
 TestFlightApp to get more debugging info from him and the app responds with
 a 407 auth error. Since then I have set up a proxy on my computer which I
 redirect my iPhone traffic through to test on.
 
  My original setup was like so,
 
  HttpWebRequest request = (HttpWebRequest)WebRequest.Create(_url);
  request.CachePolicy = new
  HttpRequestCachePolicy(HttpRequestCacheLevel.NoCacheNoStore);
  request.Proxy = null;
  request.AutomaticDecompression = DecompressionMethods.GZip |
  DecompressionMethods.Deflate; WebResponse response =
  request.GetResponse();
 
  and then so on from there.
 
  I'd set Proxy to null because in most cases the user would not be
 behind a proxy and this cut off 1-2 seconds of proxy resolving. There is
 code later to catch this and then re-create the HttpWebRequest but by not
 nulling the proxy, which I thought would be default proxy. Apparently not
 so...
 
  I tried to then get the default proxy settings of the device.
 
  CFProxySettings proxy0 = CFNetwork.GetSystemProxySettings();
  IWebProxy proxy1 = WebRequest.GetSystemWebProxy(); IWebProxy proxy2 =
  HttpWebRequest.DefaultWebProxy; IWebProxy proxy3 =
  HttpWebRequest.GetSystemWebProxy();
  IWebProxy proxy4 = CFNetwork.GetDefaultProxy();
 
  proxy1 - proxy4 have null for the credentials. proxy0 contains proxy
 information which I need such as proxy url, port, username, but no
 password...
 
  I manually made a WebProxy with my credentials
 
  WebProxy webProxy = new WebProxy(proxy0.HTTPProxy, proxy0.HTTPPort);
  webProxy.Credentials = new NetworkCredential(user, pass);
  request.Proxy = webProxy;
 
  and this works.
  Falling short of requesting username and password for the proxy on a
 407 error I am not sure what to do...
  WebClient downloads do not work, but UIWebView and MKMapView does
 auto-auth itself.
 
  Any ideas what I am missing?
 
  - Brad
  ___
  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
  

Re: [MonoTouch] Bindings for MapBox

2012-11-05 Thread Jeff Stedfast
Hi Dennis,

For what it's worth, you don't need to create a fat binary to contain all
architectures. You can also do the following:

 [assembly: LinkWith (libMapView-armv7.a, LinkTarget.ArmV7,
  Frameworks = CoreFoundation CoreLocation QuartzCore UIKit
Foundation CoreGraphics,
  LinkerFlags = -lz -lsqlite3, ForceLoad = true, IsCxx =
true)]

[assembly: LinkWith (libMapView-i386.a, LinkTarget.Simulator,
  Frameworks = CoreFoundation CoreLocation QuartzCore UIKit
Foundation CoreGraphics,
  LinkerFlags = -lz -lsqlite3, ForceLoad = true, IsCxx =
true)]


In other words, you can create a new attribute for each architecture. You
just need to name the libraries differently (like including the arch name).

Hope that helps,

Jeff

On Mon, Nov 5, 2012 at 10:44 AM, Dennis Welu dennisw...@motisconsulting.com
 wrote:

 Right on. Followed the nice instructions here:
 http://docs.xamarin.com/ios/Guides/Advanced_Topics/Native_Interop
 http://docs.xamarin.com/ios/Guides/Advanced_Topics/Native_Interop

 for using lipo. Solved the i386 issue nicely.

 Now get the same result on simulator and ipad, will continue to pursue that
 I'm guessing something wrong in my bindings or implementation of a derived
 class, quite possibly the latter. I'll update this thread if I find
 something helpful to report. :-)

 Thanks Miguel!



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Bindings-for-MapBox-tp4657589p4657615.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] Exposing custom Controls/Views to iOS patterns

2012-10-17 Thread Jeff Stedfast
Hi Miljenko

The problem you are hitting is that the .xib specifies that the type of
that outlet is a UIImageView. In Xcode's UI Designer, you can select that
UIImageView and then specify a custom class name to use in the property
editor.

Hope that helps,

Jeff

On Wed, Oct 17, 2012 at 3:11 AM, Miljenko Cvjetko mcvje...@holisticware.net
 wrote:

  Hi

 Our team is porting a WinCE app to MT. This app is quite complex (native,
 SqlServerCE,
 image/jpeg manipulation etc), so our clients are trying to retain as much
 code as they can.

 So in first run/spurt we created all WinForms CE Forms as xibs and did
 some proof-of-concept
 bindings to business logic.

 In the xib for Image manipulation (MainForm) we have created UIImageView
 and filled it with
 some test jpegs through UIImage.

 [Outlet]
 UIImageView CustomViewControl { get; set; }

 So in order to reuse his code our client has changed .designer.cs file
 into:
 [Outlet]
 CustomViewControlType  CustomViewControl { get; set; }

 and changed that CustomViewControlType  inherits form UIImageView.

 OK. Let us not discuss why .designer.cs is changed though there is comment
 at the beginning.
 It is done and let us work from here.

 BTW @Xamarin MT team - good job with Xcode and MT integration. Adding new
 Outlets to
 Xib did not alter change above - new Outlets were added w/o overwritting
 existing code!

 This step broke Xcode loading of xibs, so [Register] attribute was added
 to CustomViewControlType
 and everything went fine -  until our client has noticed that
 CustomViewControl is created,
 but the type is UIImageView, not CustomViewControlType !

 So questions:

1. what would be preferred pattern/solution here?!
our brainstorming discussion results in order from easier to more
difficult:
 1. make ctors visible -with Register attribute - NOGO
   [Register] is for class level canot be applied on ctors and methods!
   2. extension method on SomeMethod(this UIImageView, params);
   3. replacing inheritance with aggregation+ exposing all methods
   like implementing multiple inheritance.
   4. some trick of the trade by Xamarin guys?!?


 thanks
 regards

 mel

 --
 Miljenko Cvjetko dipl.ing. ET
   Direktor/CEO
   Projektant rješenja/Solution Architect  
   Razvojni programer/Senior developer
   Voditelj projekta/Project Manager

 IX južna obala 13
 Kajzerica Zagreb
 T: 385 1 777
 M: 385 91 557 447 3
 F: 385 1 7779556
 e: mcvje...@holisticware.net
 w: http://holisticware.net


 ___
 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] Error: No installed provisioning profiles match.

2012-10-11 Thread Jeff Stedfast
Hi Kris,

It sounds like you probably haven't installed the Apple Mobile Provisioning
profile. To do this, you'll need to log in to Apple's developer site and go
to the iOS Provisioning Portal and create a provisioning profile for your
app/company and then download/install it (if I recall correctly, just open
the downloaded *.mobileprovision file and it will get installed).

Hope that helps,

Jeff

On Thu, Oct 11, 2012 at 11:34 AM, Kris Bloom k...@ev3d.net wrote:

 Is it possible to make this process any harder? good heavens.. i just
 signed up with Apple developer and paid the $100. Now i am trying to test
 my app on my phone and I have done everything apple says to do an i seem to
 be missing something.. i am getting this error

 Error: No installed provisioning profiles match the installed iPhone code
 signing keys. (StreetSource)


 Thanks,

 Kris Bloom
 
 Extreme Velocity 3D
 www.ExtremeVelocity3d.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] having nightmares with updates to and from xcode

2012-09-28 Thread Jeff Stedfast
Hi Alex,

It's worth investigating. I can make no guarantees that your current
hardware is the cause of the xcode syncing problem, of course, but it's
possible. Upgrading your hardware certainly wouldn't hurt. A year ago when
I was doing a lot of work on the Xcode syncing stuff, I was finding that
4GB of RAM for running 2 copies of MonoDevelop (debugging MonoDevelop
inside MonoDevelop) and Xcode side-by-side was a bit on the slow side and
once I upgraded my RAM, things ran a lot faster. 8GB of RAM and an SSD
should improve things a lot for you.

That said, I did find one error in the log files you sent me yesterday
indicating a race condition that caused an NRE during one of the last syncs
in your most recent MonoDevelop session. I'm not 100% sure that it is the
cause of the failure to sync, but it might be. The problem is that I'm not
sure how the race was happening (the only way I can see how it could have
happened is if our AppleSdkSettings object emitted a Changed event
mid-sync, but I'm not sure how that could happen). That was the only
code-path that didn't do the proper locking before modifying some internal
state variables used by the syncing process. I've added the proper locking
for an upcoming MonoDevelop 3.0.4.8 release (I can provide a pre-release
download for you as soon as I get to the office). Maybe you can test it out
for a few days and see if it seems to solve the issue for you.

Hope that helps,

Jeff

On Fri, Sep 28, 2012 at 3:54 AM, Alex White alexwhit...@gmail.com wrote:

 Hi Jeff,

 My issues could come down to the performance of my MacBook it is pretty
 old a dual core, 4gb of ram, how much better does monodevelop run on a quad
 core, I see my CPU max'ed out for many minutes at a time when compiling is
 happening, memory seems to be ok so I am guessing there is not excessive
 paging of memory, so it comes down to CPU and a bit of hdd.

 my current MacBook is:-

   Model Name: MacBook Pro
   Model Identifier: MacBookPro3,1
   Processor Name: Intel Core 2 Duo
   Processor Speed: 2.2 GHz
   Number of Processors: 1
   Total Number of Cores: 2
   L2 Cache: 4 MB
   Memory: 4 GB
   Bus Speed: 800 MHz

 I am contemplating a quad core 15 with a solid state hdd with 8gb of ram,
 I need to reduce the compile round trip times significantly if I can, is it
 worth investigating this route?


 ATB

 Alex


 On 27 Sep 2012, at 17:05, Jeff Stedfast j...@xamarin.com wrote:

 Hi Alex,

 On Thu, Sep 27, 2012 at 7:24 AM, Alex White alexwhit...@gmail.com wrote:

 Hi Jeff,

 thanks for the reply,

 This problems has been occurring on and off for months, but in the last
 week 100% of the Xcode updates are no making their way into MonoDevelop it
 has forced me to recode my project to be xib free, it does not help that
 this happened right in the middle of a load of work with beta testers, but
 an xib free app should be better in the long run. I have had so many
 crashes that always report, some in MonoDevelop and some in Xcode, I have
 also noted that there are times where the sync'ing back to MonoDevelop has
 crashed both MonoDevelop and XCode at the same time, both needing to be
 forced to quit which does not make sense to me as the sync'ing from what I
 can see is not done via processes but file watching if you see my logic.


 There's some IPC (via AppleScripting) between MonoDevelop and Xcode as
 well, during the syncing process, so this might explain that.



 I will in future use Xcode to only prototype screen layouts then creating
 the views programatically.

 Not only do I have to create them from scratch but I cannot use the
 original names as this throws up so many errors that I cannot fix, I have
 so many views now with 2's or 3's on the end of them. Also a side issue is
 renaming of objects in Xcode I have never got this to work properly and be
 reflected back in MonoDevelop but that is another issue, but having many
 objects that have the wrong name is not good.

 Where are the timeouts?, I will have a play with them if they are
 available to me.


 Unfortunately, they are not available for users to tweak (they are
 currently hard-coded in MonoDevelop). MonoDevelop's XcodeSync log file
 would help me figure out if it is related to the timeouts at all, or if it
 is something else.



 I will do some further testing before I go down the route of logging a
 bug.


 If you can get your hands on the appropriate XcodeSync log file in the
 MonoDevelop log directory, that might be enough. I added some fairly
 verbose debugging WriteLines in MonoDevelop's syncing logic in order to
 make it easier for me to debug these kinds of issues.

 You should be able to find them in
 /Users/name/Library/Logs/MonoDevelop-3.0/Xcode*.log

 Hope that helps,

 Jeff



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


Re: [MonoTouch] having nightmares with updates to and from xcode

2012-09-28 Thread Jeff Stedfast
Hi Alex,

I've uploaded a pre-release (we haven't bumped the version yet, so it's
still called 3.0.4.7):
https://files.xamarin.com/~jeff/MonoDevelop-3.0.4.7.dmg

Let me know how that works out.

Jeff

On Fri, Sep 28, 2012 at 10:44 AM, Alex White alexwhit...@gmail.com wrote:

 Hi Jeff,

 Thanks for looking at the logs you have found what I thought you would,
 race conditions, of course in the perfect world we would have perfect
 performance so that some of these did not occur, but as with all things
 programming, if it can go wrong it is only a matter of time before it does.

 Get me a link to the build and I will have a good go with it, I will still
 consider the move up to better hardware but in the short term that is not
 going to happen and it gives us an opportunity to resolve some of these
 types of issues, what I will do is clear down my Xcode logs once installed
 then give it a hammering over the next couple of days.

 Whilst this has been frustrating to say the least, I am really happy with
 the support I am getting and I am sure we will get to the bottom of things.

 ATB

 Alex


 On 28 Sep 2012, at 15:20, Jeff Stedfast j...@xamarin.com wrote:

 Hi Alex,

 It's worth investigating. I can make no guarantees that your current
 hardware is the cause of the xcode syncing problem, of course, but it's
 possible. Upgrading your hardware certainly wouldn't hurt. A year ago when
 I was doing a lot of work on the Xcode syncing stuff, I was finding that
 4GB of RAM for running 2 copies of MonoDevelop (debugging MonoDevelop
 inside MonoDevelop) and Xcode side-by-side was a bit on the slow side and
 once I upgraded my RAM, things ran a lot faster. 8GB of RAM and an SSD
 should improve things a lot for you.

 That said, I did find one error in the log files you sent me yesterday
 indicating a race condition that caused an NRE during one of the last syncs
 in your most recent MonoDevelop session. I'm not 100% sure that it is the
 cause of the failure to sync, but it might be. The problem is that I'm not
 sure how the race was happening (the only way I can see how it could have
 happened is if our AppleSdkSettings object emitted a Changed event
 mid-sync, but I'm not sure how that could happen). That was the only
 code-path that didn't do the proper locking before modifying some internal
 state variables used by the syncing process. I've added the proper locking
 for an upcoming MonoDevelop 3.0.4.8 release (I can provide a pre-release
 download for you as soon as I get to the office). Maybe you can test it out
 for a few days and see if it seems to solve the issue for you.

 Hope that helps,

 Jeff

 On Fri, Sep 28, 2012 at 3:54 AM, Alex White alexwhit...@gmail.com wrote:

 Hi Jeff,

 My issues could come down to the performance of my MacBook it is pretty
 old a dual core, 4gb of ram, how much better does monodevelop run on a quad
 core, I see my CPU max'ed out for many minutes at a time when compiling is
 happening, memory seems to be ok so I am guessing there is not excessive
 paging of memory, so it comes down to CPU and a bit of hdd.

 my current MacBook is:-

   Model Name: MacBook Pro
   Model Identifier: MacBookPro3,1
   Processor Name: Intel Core 2 Duo
   Processor Speed: 2.2 GHz
   Number of Processors: 1
   Total Number of Cores: 2
   L2 Cache: 4 MB
   Memory: 4 GB
   Bus Speed: 800 MHz

 I am contemplating a quad core 15 with a solid state hdd with 8gb of
 ram, I need to reduce the compile round trip times significantly if I can,
 is it worth investigating this route?


 ATB

 Alex


 On 27 Sep 2012, at 17:05, Jeff Stedfast j...@xamarin.com wrote:

 Hi Alex,

 On Thu, Sep 27, 2012 at 7:24 AM, Alex White alexwhit...@gmail.comwrote:

 Hi Jeff,

 thanks for the reply,

 This problems has been occurring on and off for months, but in the last
 week 100% of the Xcode updates are no making their way into MonoDevelop it
 has forced me to recode my project to be xib free, it does not help that
 this happened right in the middle of a load of work with beta testers, but
 an xib free app should be better in the long run. I have had so many
 crashes that always report, some in MonoDevelop and some in Xcode, I have
 also noted that there are times where the sync'ing back to MonoDevelop has
 crashed both MonoDevelop and XCode at the same time, both needing to be
 forced to quit which does not make sense to me as the sync'ing from what I
 can see is not done via processes but file watching if you see my logic.


 There's some IPC (via AppleScripting) between MonoDevelop and Xcode as
 well, during the syncing process, so this might explain that.



 I will in future use Xcode to only prototype screen layouts then
 creating the views programatically.

 Not only do I have to create them from scratch but I cannot use the
 original names as this throws up so many errors that I cannot fix, I have
 so many views now with 2's or 3's on the end of them. Also a side issue is
 renaming of objects in Xcode I have never got

Re: [MonoTouch] having nightmares with updates to and from xcode

2012-09-27 Thread Jeff Stedfast
Hi Alex,

On Thu, Sep 27, 2012 at 7:24 AM, Alex White alexwhit...@gmail.com wrote:

 Hi Jeff,

 thanks for the reply,

 This problems has been occurring on and off for months, but in the last
 week 100% of the Xcode updates are no making their way into MonoDevelop it
 has forced me to recode my project to be xib free, it does not help that
 this happened right in the middle of a load of work with beta testers, but
 an xib free app should be better in the long run. I have had so many
 crashes that always report, some in MonoDevelop and some in Xcode, I have
 also noted that there are times where the sync'ing back to MonoDevelop has
 crashed both MonoDevelop and XCode at the same time, both needing to be
 forced to quit which does not make sense to me as the sync'ing from what I
 can see is not done via processes but file watching if you see my logic.


There's some IPC (via AppleScripting) between MonoDevelop and Xcode as
well, during the syncing process, so this might explain that.



 I will in future use Xcode to only prototype screen layouts then creating
 the views programatically.

 Not only do I have to create them from scratch but I cannot use the
 original names as this throws up so many errors that I cannot fix, I have
 so many views now with 2's or 3's on the end of them. Also a side issue is
 renaming of objects in Xcode I have never got this to work properly and be
 reflected back in MonoDevelop but that is another issue, but having many
 objects that have the wrong name is not good.

 Where are the timeouts?, I will have a play with them if they are
 available to me.


Unfortunately, they are not available for users to tweak (they are
currently hard-coded in MonoDevelop). MonoDevelop's XcodeSync log file
would help me figure out if it is related to the timeouts at all, or if it
is something else.



 I will do some further testing before I go down the route of logging a bug.


If you can get your hands on the appropriate XcodeSync log file in the
MonoDevelop log directory, that might be enough. I added some fairly
verbose debugging WriteLines in MonoDevelop's syncing logic in order to
make it easier for me to debug these kinds of issues.

You should be able to find them in
/Users/name/Library/Logs/MonoDevelop-3.0/Xcode*.log

Hope that helps,

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


Re: [MonoTouch] iPhone 5 ARM7 and ARM6

2012-09-27 Thread Jeff Stedfast
Hi Justin,

I *think* that as long as you continue to target an iOS older than 6.0 and
keep Xcode 4.4 (don't upgrade to 4.5), you can continue to build for armv6
and it will still work on iPhone5

You just can't use iOS6 APIs.

Hope that helps,

Jeff

On Thu, Sep 27, 2012 at 3:47 PM, Justin Hansen fence...@gmail.com wrote:

 Wow, so basically I'm being forced to alienate some people who have
 already paid my for my app.

 Ok, I guess that's what I'll have to do.

 Justin Hansen

 On Thu, Sep 27, 2012 at 3:46 PM, Steve Maier steve.ma...@gmail.comwrote:

 I had to change my project to target iOS 4.3 and higher and ARM7. Mine
 were just ARM6 before. It was approved yesterday.

 Steve

 Sent from my iPhone

 On Sep 27, 2012, at 3:44 PM, Justin Hansen fence...@gmail.com wrote:

 My application currently supports ARM6 and ARM7. From what I can tell I
 can't build for both anymore if I want to support the iPhone 5.

 Will Apple just let me know drop support for ARM6 and update my current
 app? Do I have to create a new app that is just for the new device? Can
 anyone tell me my options?

 Thanks in advance for any help.

 --
 Justin Hansen
 http://www.klickwerx.com
 Need some technology help? - http://www.betterfly.com/LearnTheWeb

 ___
 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




 --
 Justin Hansen
 http://www.klickwerx.com
 Need some technology help? - http://www.betterfly.com/LearnTheWeb


 ___
 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] uitableview and uipagecontrol

2012-09-27 Thread Jeff Stedfast
FWIW, I've actually got a fix for that performance issue in the works. I
just need to land it.

Now that I've been reminded, hopefully I'll land it tonight :-)

Jeff

On Thu, Sep 27, 2012 at 4:26 PM, Sebastien Pouliot sebast...@xamarin.comwrote:

 Hello Alex,

 UITableView can handle any number of cells, i.e. they do not have to
 be loaded in memory.

 I'm working on an app that shows [1] more than 209k records using
 Jeff's MonoTouch.SQLite (with a single, important, modification).

 Regards,
 Sebastien

 [1] if you really want to scroll over them - at some point having
 search/filtering features becomes more important than being able to
 show them all
 [2] https://github.com/jstedfast/MonoTouch.SQLite

 On Thu, Sep 27, 2012 at 4:20 PM, Alex White alexwhit...@gmail.com wrote:
  Hi All,
 
  I have a uitableview with potentially lots of records returned, I would
 like to use pagination to control how many records get returned to the user
 on each page, I am guessing that the uipagecontrol is the way to go, am I
 correct, is there a better way, any examples for me to get some ideas from.
 
  Thanks
 
  Alex
  ___
  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] uitableview and uipagecontrol

2012-09-27 Thread Jeff Stedfast
Patch landed!

Jeff

On Thu, Sep 27, 2012 at 5:19 PM, Jeff Stedfast j...@xamarin.com wrote:

 FWIW, I've actually got a fix for that performance issue in the works. I
 just need to land it.

 Now that I've been reminded, hopefully I'll land it tonight :-)

 Jeff


 On Thu, Sep 27, 2012 at 4:26 PM, Sebastien Pouliot 
 sebast...@xamarin.comwrote:

 Hello Alex,

 UITableView can handle any number of cells, i.e. they do not have to
 be loaded in memory.

 I'm working on an app that shows [1] more than 209k records using
 Jeff's MonoTouch.SQLite (with a single, important, modification).

 Regards,
 Sebastien

 [1] if you really want to scroll over them - at some point having
 search/filtering features becomes more important than being able to
 show them all
 [2] https://github.com/jstedfast/MonoTouch.SQLite

 On Thu, Sep 27, 2012 at 4:20 PM, Alex White alexwhit...@gmail.com
 wrote:
  Hi All,
 
  I have a uitableview with potentially lots of records returned, I would
 like to use pagination to control how many records get returned to the user
 on each page, I am guessing that the uipagecontrol is the way to go, am I
 correct, is there a better way, any examples for me to get some ideas from.
 
  Thanks
 
  Alex
  ___
  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] having nightmares with updates to and from xcode

2012-09-26 Thread Jeff Stedfast
Hi Alex,

You should not be having to recreate them from scratch. There is clearly a
bug in MonoDevelop's Xcode syncing, somewhere.

Is it possible for you to file a bug about this on
http://bugzilla.xamarin.com and attach your XcodeSyncdate.log file (you
can attach it and mark it private). This log file might provide some
clues...

I suspect it might be that the sync is timing out (I may need to up the
timeout for projects as large as yours?), but I won't know for sure w/o
seeing the log file.

Thanks,

Jeff

On Sun, Sep 23, 2012 at 3:25 AM, Alex White alexwhit...@gmail.com wrote:

 Hi All,

 I have a project that has 80+ xib files, there seems to be significant
 problems with updates mainly from Xcode back to MonoDevelop, I have tried
 saving the xib file in Xcode, I have tried closing the xib in Xcode, I have
 tried closing Xcode completely, rebooting the computer, Xcode shows the
 changes to the xib file. but mono touch does not see the changes, e.g. add
 a new item to the xib file, move something in the xib file, delete
 something in the xib file, mono touch just does not see the changes. This
 has been a constant battle I am running all the latest versions of
 everything but this has happened with all the version in the last 6 months,
 sometimes it works sometimes it does not. In my latest issue all I am
 trying to do is set a tableview to grouped, I cannot do this in Xcode, I
 cannot do this in code, I have removed the xib from the tableviewcontroller
 and tried to create the tableview programatically this does not work as it
 is still referring to the xib file even though I hav
  e removed the reference to it in the constructor.

 My project is littered with old and new xib files because of this type of
 issue where the only fix is to create a new file from scratch.

 It is a bit late for this project but I will never use Xcode again, I will
 create everything programatically in the future.

 Do I have to recreate all these files from scratch like I am doing this
 seems a bit over the top.

 ATB

 Alex
 ___
 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] New Resources Folder

2012-09-20 Thread Jeff Stedfast
Hi Alex,

I implemented support for this back at the end of July, but it looks like
it didn't make it into 3.0.4. It should be included in the next major
release of MonoDevelop, though.

Hope that helps,

Jeff

On Thu, Sep 20, 2012 at 10:20 AM, Alex Soto dxdr...@gmail.com wrote:

 Hello I'm quoting MonoDevelop 3.0.4 Release notes

   New “Resources” folder. There is no need to clutter root project
 directory w/ icons or other bundled resources anymore. With the
 BundledResource build action, you can also override the Bundle Id (so it
 doesn’t have to match the file name, which means you can use msbuild
 conditions)

 I know BundledResource build action works great on standard MonoTouch
 projects, but is that feature available to MonoTouch Binding Projects
 (cannot find it)??

 Im asking because some objc libs have someobjclib.bundle and some
 other  files that must be included in order to make lib work, so we
 just can deliver a single DLL containing all files needed.

 Alex
 ___
 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] New Resources Folder

2012-09-20 Thread Jeff Stedfast
I think we're planning for a November release, but I'm not 100% sure on
that.

If a MonoDevelop 3.0.5 is released in the meantime, it should be in that as
well (since that feature made it into master which is where we'd roll a
3.0.5 from).

Jeff

On Thu, Sep 20, 2012 at 12:05 PM, Alex Soto dxdr...@gmail.com wrote:

 Yikes thats awesome Jeff thanks a lot for that awesome feature I will be
 looking forward next release of MD hope it doesn't take to much time to come

 Alex

 El 20/09/2012, a las 10:28, Jeff Stedfast j...@xamarin.com escribió:

 Hi Alex,

 I implemented support for this back at the end of July, but it looks like
 it didn't make it into 3.0.4. It should be included in the next major
 release of MonoDevelop, though.

 Hope that helps,

 Jeff

 On Thu, Sep 20, 2012 at 10:20 AM, Alex Soto dxdr...@gmail.com wrote:

 Hello I'm quoting MonoDevelop 3.0.4 Release notes

   New “Resources” folder. There is no need to clutter root project
 directory w/ icons or other bundled resources anymore. With the
 BundledResource build action, you can also override the Bundle Id (so it
 doesn’t have to match the file name, which means you can use msbuild
 conditions)

 I know BundledResource build action works great on standard MonoTouch
 projects, but is that feature available to MonoTouch Binding Projects
 (cannot find it)??

 Im asking because some objc libs have someobjclib.bundle and some
 other  files that must be included in order to make lib work, so we
 just can deliver a single DLL containing all files needed.

 Alex
 ___
 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] exception handling in native lib not working with mtouch?

2012-09-11 Thread Jeff Stedfast
Hi Iain,

I'm not sure if this will work, but it might be worth a try...

Does it work if you add -lgcc_eh to the gcc_flags?

Jeff

On Tue, Sep 11, 2012 at 8:03 AM, mcleodia mcleo...@gmail.com wrote:

 Dear all.

 We are compiling a static library built in c++ into our monotouch app, as
 per http://docs.xamarin.com/ios/advanced_topics/linking_native_libraries

 This works, and the application _mostly_ runs, but it appears that
 exception
 handling doesn't seem to be working properly in that library.

 I tried adding -fexceptions to the -gcc_flags extra argument to mtouch (the
 library has been built with the -fexceptions flag too) and it still doesn't
 seem to be working correctly:

 MtouchExtraArgs-cxx -gcc_flags -fexceptions -L${ProjectDir}/OpenHome/Ios
 -lohNetCore -force_load
 ${ProjectDir}/OpenHome/Ios/libohNetCore.a/MtouchExtraArgs


 Anyone got any idea what we have missed?

 Cheers
 Iain



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/exception-handling-in-native-lib-not-working-with-mtouch-tp4656947.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] Clarification on the XamarinHQ tweet/blog about iOS 6

2012-09-04 Thread Jeff Stedfast
Yikes, that's a pretty major regression in battery usage! Could you submit
a bug report about that? Hopefully the MonoTouch guys can figure out what
changed between 5.2.12 and 5.2.13 that may have caused that and fix it.

Jeff

On Tue, Sep 4, 2012 at 10:40 AM, Dean Cleaver 
dean.clea...@xceptionsoftware.com wrote:

 Just out of interest, we're going back to 5.2.12 because of battery use.
 Compiled against 5.2.13 the battery would last 5:40 running only my app -
 with 5.2.12 it lasts 7:40. This is a huge problem for us as our software is
 in use pretty much all day every day, and not at a desk where it can be on
 power.

 Is this battery issue likely to be a continuing problem moving forward?
 Was the change from .12 to .13 something fundamental  that will remain
 forever?

 Dino

 -Original Message-
 From: monotouch-boun...@lists.ximian.com [mailto:
 monotouch-boun...@lists.ximian.com] On Behalf Of Nic Wise
 Sent: Friday, August 31, 2012 10:39
 To: Alex Soto
 Cc: monotouch@lists.ximian.com (monotouch@lists.ximian.com)
 Subject: Re: [MonoTouch] Clarification on the XamarinHQ tweet/blog about
 iOS 6

 Yes. You can use 5.3.6 or 5.2.13 (or anything which comes out after that -
 ie, now)

 Do you want to tho? I suggest you load iOS6 onto a device (you can't go
 back easily tho!!) and try it out. Of my apps, only one was crashing, which
 I've resubmitted. That was the only one using interface builder, and it was
 OLD and done in XCODE3. All the others are using code for UI, and they are
 working fine.

 The others don't use IB, and I've not had any problems, tho I'm going to
 plan to do a new build for each one soon anyway.

 But you should try them at least. If they dont crash, and you have plans
 to update soon: maybe wait. If they crash: resubmit ASAP.

 I use an iPod Touch for iOS6 testing, as they are cheap, it runs iOS6 well
 enough, and if it dies it's not my main phone.



 On Fri, Aug 31, 2012 at 2:58 PM, Alex Soto dxdr...@gmail.com wrote:
  Hello Gerry
 
  Mt 5.3.6 does contain the fix so you can use it
 
  http://docs.xamarin.com/ios/releases/MonoTouch_5/MonoTouch_5.3#MonoTou
  ch_5.3.6
 
  Alex
 
  El 31/08/2012, a las 08:40 a.m., Gerry High gh...@hightg.com escribió:
 
  http://blog.xamarin.com/2012/08/13/important-ios-6-information-for-mo
  notouch-users/
 
  Nic--I saw you asked this question but the response you got on Twitter
 was unclear (at least to me).  I have a an app that is in the App Store but
 can't remember what version of MT it was built with.  I'm currently on the
 Alpha channel of MT/MD (MD 3.0.4.4 and MT 5.3.6).
 
  So, assuming I want to rebuild it and resubmit, can I submit with the
 current builds I'm on or do I need to downgrade to MT 5.2.13?
 
  Thanks,
  Gerry
 
 
 
 
 
  ___
  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
 Earnest: Self-employed? Track your business expenses and income.
 http://earnestapp.com
 Nearest Bus: find when the next bus is coming to your stop.
 http://goo.gl/Vcz1p 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
 ___
 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] Help please! App won't start anymore: unable to find app identifier.

2012-08-13 Thread Jeff Stedfast
Hi Rene,

Can you file a bug with this info?

I suspect that MonoDevelop's logic for determining if a new build is
required might be broken. (It seems that MD did not force a rebuild when
you changed the App Id)

Thanks!

Jeff

On Mon, Aug 13, 2012 at 5:38 AM, René Ruppert rene.rupp...@gmail.comwrote:

 Hi,

 I'm out of ideas here. I have a project that is using the app identifier
 com.brainloop.browser. All is working fine.
 Now I'm going into the settings of the project in MD and change the
 identifier to com.brainloop.browser2, because I have to support different
 versions for our testers.
 The app builds fine and I try to debug it from MD on the Simulator but I
 get this in MD's output:

 Starting iOS simulator 5.1
 Launching application
 ERR: There was an error launching the application: SpringBoard konnte das
 Programm nicht starten (Fehler: 7)

 And in the console log I see:

 13.08.12 11:29:52,209 SpringBoard: Launch Services: Registered unknown app
 identifier com.brainloop.browser2
 13.08.12 11:29:52,209 SpringBoard: Launch Services: Unable to find app
 identifier com.brainloop.browser2
 13.08.12 11:29:52,211 SpringBoard: Unknown application display identifier
 com.brainloop.browser.

 So first it is registering the new identifier and then it is looking for
 the OLD one (last line of console log). Why? I have searched the whole
 solution and do not find the old string anywhere.

 If I try to rung without debugging, the app won't start at all.
 However if I run it directly from Springboard, it is starting up just fine.

 I have tried so far:
 * Clean solution
 * Restart MD
 * Reset Simulator

 Only changing the identifier back to the old one helps.

 I hope somebody has a solution.
 Thanks.

 René


 ___
 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] iTunes Artwork images

2012-08-13 Thread Jeff Stedfast
Hi Alex,

Unfortunately not yet, but it is on the TODO list @
https://bugzilla.xamarin.com/show_bug.cgi?id=4093

We haven't yet figured out how to include the 1024x1024 iTunesArtwork image
(I should check the latest Xcode versions to see if/how they do it).

Once we figure that out (i.e. do we just name it iTunesArtwork@2x?), it
should be trivial to add support.

Jeff

On Mon, Aug 13, 2012 at 9:11 AM, Alex78 a.ne...@atlas.cz wrote:

 Hi all,

 Apple recommends to add one 512x512 and one 1024x1024 artwork image to the
 application, so that it looks good on all devices, they say. If I edit
 Info.plist in MonoTouch, there is just one image to add in the Artwork
 section - the 512 one. Is there a way to add a second artwork image with
 the
 1024 resolution?

 Thanks

 Alex



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/iTunes-Artwork-images-tp4656489.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 and SQLCipher

2012-08-09 Thread Jeff Stedfast
Does LLVM have a static library you can link against to get those symbols?

Jeff

On Thu, Aug 9, 2012 at 9:43 AM, cmckeegan 
charlie.mckee...@totalmobile.co.uk wrote:

 I've made a little progress. I've narrowed it down to the openssl project
 that SQLCipher uses. If I try to link in just the libcrypto.a shared
 library
 I get a similar error but with a bit more information about where the error
 is coming from:

 Undefined symbols for architecture armv7:
   ___udivmodsi4, referenced from:
   _lh_node_usage_stats_bio in libcrypto-armv7.a(lh_stats.o)
 ld: symbol(s) not found for architecture armv7

 apparently udivmodsi4 is part of LLVM according to this:

 http://

 http://www.opensource.apple.com/source/clang/clang-163.7.1/src/projects/compiler-rt/lib/arm/udivmodsi4.S

 Any ideas how to proceed here?

 Do I need to build the library differently in Xcode to get this to work?
 For
 the record I'm using the instructions for SQLCipher from this tutorial:
 http:// http://sqlcipher.net/ios-tutorial/





 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/MonoTouch-and-SQLCipher-tp4656445p4656447.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] Problems creating bindings to a barcode reader API

2012-08-09 Thread Jeff Stedfast
Hi,

It looks like the library was written in c++ and so you'll need to use the
c++ linker.

To do this, edit the LinkWith attribute for the libScanAPI.a and set IsCxx
to true, like this:

[assembly::LinkWith (libScanAPI.a, LinkTarget.ArmV7, IsCxx = true)]

Hope that helps,

Jeff

On Thu, Aug 9, 2012 at 2:15 PM, duartem2u duarte.si...@moving2u.pt wrote:

 This will be a long post...I hope someone has the patience to read it to
 the
 end :).

 I'm working on a Monotouch project that needs to use an Objective C API for
 a barcode reader.
 The files that come with the API are:
 - A static library libScanApi.a.
 - A couple of .h and .m helper files (ScanApiHelper.h, ScanApiHelper.m)
 that
 use the objects defined in the libScanApi.a library and facilitate the
 integration and usage of the API in an application.

 Because the API is quite extensive, I decided to create a new static
 library
 that included the helper files provided by the maker of the API and do
 bindings to this new static library. I ended up with following
 ApiDefinition.cs:
 [BaseType (typeof (NSObject))]
 interface SktManager {

 [Export (initWithDelegate:)]
 IntPtr Constructor (BarcodeReceivedHandler manager);

 //-(void) Open;
 [Export (Open:)]
 void Open ();

 //-(void) Close;
 [Export (Close:)]
 void Close ();
 }

 [Model]
 [BaseType (typeof (NSObject))]
 interface BarcodeReceivedHandler {
 //- (void)BarcodeReceived NSString*)value;
 [Abstract, Export (BarcodeReceived:)]
 void BarcodeReceived (string value);
 }


 The API documentation mentions that the External accessory framework must
 be added, so I changed the LinkWith attribute to include this framework:
 [assembly: LinkWith (libSktDLL.a, LinkTarget.ArmV7 | LinkTarget.ArmV6 |
 LinkTarget.Simulator, ForceLoad = true, Frameworks =ExternalAccessory)]

 The binding project builds correctly, but the main project that is using
 the
 binding dll (I'm trying to deploy to an iPad) shows the following errors:

 /var/folders/hb/f40k80fj0s72pybcz810p_34gn/T/tmp7166be2e.tmp/libSktDLL.a
 Undefined symbols for architecture armv7:
   std::terminate(), referenced from:
   -[CommandContext dealloc] in libSktDLL.a(ScanApiHelper.o)
   CSktQueue::CSktQueue()in libSktDLL.a(SktQueue.o)
   CSktQueue::~CSktQueue()in libSktDLL.a(SktQueue.o)
   CSktXmlBracket::~CSktXmlBracket()in libSktDLL.a(SktSimpleXml.o)
   CSktXmlTag::CSktXmlTag()in libSktDLL.a(SktSimpleXml.o)
   CSktXmlTag::~CSktXmlTag()in libSktDLL.a(SktSimpleXml.o)
   CSktXmlParser::Parse(char const*, unsigned long)in
 libSktDLL.a(SktSimpleXml.o)
   ...
   ___gxx_personality_sj0, referenced from:
   -[CommandContext
 initWithParam:ScanObj:ScanDevice:Device:Target:Response:] in
 libSktDLL.a(ScanApiHelper.o)
   -[CommandContext dealloc] in libSktDLL.a(ScanApiHelper.o)
   -[CommandContext doCallback:] in libSktDLL.a(ScanApiHelper.o)
   -[ScanApiHelper init] in libSktDLL.a(ScanApiHelper.o)
   -[ScanApiHelper isDeviceConnected] in libSktDLL.a(ScanApiHelper.o)
   -[ScanApiHelper open] in libSktDLL.a(ScanApiHelper.o)
   -[ScanApiHelper removeCommand:] in libSktDLL.a(ScanApiHelper.o)
   ...

 The output shows allot more errors. I've shown the top two for the sake of
 brevity.

 If I remove the LinkTarget.ArmV7 from the LinkWith attribute, the main
 project compiles correctly but the app crashes as soon as I make a call to
 the 'Open' method. No exception is thrown, the app just crashes instantly.

 I took a look at the Organizer window in Xcode but I don't know how to
 interpret the device log information for the crash:
 Incident Identifier: 0ABEEDA2-15EA-49B6-82D9-C1346AAA5A5C
 CrashReporter Key:   094b535c4ce505f7f3987594c5248358746a1538
 Hardware Model:  iPad2,2
 Process: TestSktDllBinding [5997]
 Path:

 /var/mobile/Applications/FE82B8DF-C025-4AC3-B474-3726FD42D782/TestSktDllBinding.app/TestSktDllBinding
 Identifier:  TestSktDllBinding
 Version: ??? (???)
 Code Type:   ARM (Native)
 Parent Process:  launchd [1]

 Date/Time:   2012-08-09 17:34:30.273 +0100
 OS Version:  iPhone OS 5.1.1 (9B206)
 Report Version:  104

 Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
 Exception Codes: KERN_PROTECTION_FAILURE at 0x2fd00fc0
 Crashed Thread:  0

 Thread 0 name:  Dispatch queue: com.apple.main-thread
 Thread 0 Crashed:
 0   TestSktDllBinding  0x00501978 monotouch_trampoline
 (monotouch-glue.m:804)
 1   TestSktDllBinding  0x0018ae44

 wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_void_objc_msgSend_IntPtr_intptr_intptr_intptr
 (monotouch.dll.7.s:32355)
 2   TestSktDllBinding  0x00345014

 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
 (mscorlib.dll.7.s:149759)
 3   TestSktDllBinding  0x00451728
 mono_jit_runtime_invoke (mini.c:5786)
 4   TestSktDllBinding

Re: [MonoTouch] How to write bindings for a framework?

2012-08-07 Thread Jeff Stedfast
You'll want to add them as BuildAction = BundleResource

You can add these files to either the binding project or the app project,
it doesn't really matter. Although, if you add it to the binding project,
you'll need the updated MSBuild targets from
http://files.xamarin.com/~jeff/BindingProjectBuildTargets.zip (extract this
in /Library/Frameworks/Mono.framework/External/).

I forgot you'd need this yesterday when I replied.

Hope that helps,

Jeff

On Mon, Aug 6, 2012 at 7:58 PM, Shawn Castrianni sh...@spcware.com wrote:

 that was also one of my questions. do we do this to the binding project
 that produces the dll or the top level application project that produces
 the iap?

 ___
 Shawn

 On Aug 6, 2012, at 6:53 PM, Alex Soto dxdr...@gmail.com wrote:

 Ok let me see if I understood correctly

 We manually create a folder named Resources in our MT binding project

 Then we add the xName.bundle to that folder and any resource files
 included on the framework

 Then We compile and everything gets added to the bindingfile.dll file and
 that it.

 Do we have to mark the files we add to Resources folder as Content or
 Resource??

 Thanks Jeff

 Alex

 El 06/08/2012, a las 04:08 p.m., Jeff Stedfast j...@xamarin.com
 escribió:

 Hi Shawn,

 I recently added feature which adds a Resources folder where you can add
 things like the ArcGIS.bundle files.

 I think it landed in MonoDevelop 3.0.4 (you'll have to create the
 Resources folder manually, though)

 Jeff

 On Mon, Aug 6, 2012 at 3:50 PM, spcware sh...@spcware.com wrote:

 I am not sure I follow your reply.  I was giving multiple options, yet you
 said it all sounded correct.

 Let me add some specifics.  I am trying to use the ESRI ArcGIS thirdparty
 framework.  I have already started writing the ApiDefinition.cs file to
 wrap
 the Objective-C code in C# bindings.  It is working well.  However, the
 ArcGIS ships as a framework and a Resources directory containing both a
 ArcGIS.bundle and Info.plist file.  In normal Objective-C xcode world,
 they
 state to add the ArcGIS.bundle file to the xcode project and add a
 dependency on the ArcGIS.framework.  I know that the code in the
 ArcGIS.framework uses resources from the ArcGIS.bundle when rendering its
 UI.  So the question is how to get those resources available to the
 wrapped
 ArcGIS.dll that I create?

 I tried added the ArcGIS.bundle (really a directory) to my top level ios
 Monotouch application project as a directory.  That helped a little in
 that
 my app can now see some of the resources, but not all.  The ESRI map
 component is supposed to have esri in the bottom left corner of the
 MapView which is just one of the images in the ArcGIS.bundle.  It is NOT
 finding this image, however, it is finding the GpsLocation.png image used
 to
 show the current device location on the map.  I am confused as to how some
 of the images in the ArcGIS.bundle can be found, yet some cannot.  Also,
 do
 I have to use the Info.plist file at all??



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/How-to-write-bindings-for-a-framework-tp4656293p4656400.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] How to write bindings for a framework?

2012-08-02 Thread Jeff Stedfast
I'll poke the docs team about this.

Jeff

On Thu, Aug 2, 2012 at 1:04 AM, spcware sh...@spcware.com wrote:

 I guess I should have searched this mailing list for the answer first.  I
 saw
 a previous post saying that the framework file inside the *.framework file
 is usually a static library that can just be renamed to lib.a and then
 wrapped.  Sure enough, that worked great.

 It would be nice if the Xamarin docs on binding Objective-C could be
 updated
 to add this information about frameworks.



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/How-to-write-bindings-for-a-framework-tp4656293p4656294.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] Mountain Lion

2012-07-25 Thread Jeff Stedfast
We should be releasing a new MonoDevelop this week with support for
Mountain Lion (and I'm pretty sure new MonoTouch and MonoDroid as well).

It's in the QA process right now afaik

Hope that helps,

Jeff

On Wed, Jul 25, 2012 at 10:23 AM, Dean Cleaver 
dean.clea...@xceptionsoftware.com wrote:

 I could afford to beta test as I have 2 dev machines and only ever use the
 second one if I am on the road - but would it matter about the style of
 development I do? I don't use XIB files etc.

 Dino

 -Original Message-
 From: monotouch-boun...@lists.ximian.com [mailto:
 monotouch-boun...@lists.ximian.com] On Behalf Of Dimitris Tavlikos
 Sent: Wednesday, July 25, 2012 09:18
 To: Wally McClure
 Cc: monotouch@lists.ximian.com
 Subject: Re: [MonoTouch] Mountain Lion

 Also need to know if there are any issues... (hello Wally, everybody!)

 Can't afford to beta test right now... :)

 Thanks,

 On 25 Jul 2012, at 4:59 PM, Wally McClure wrote:

  What is the status of Mountain Lion support in MonoTouch?
 
  Wally
  ___
  MonoTouch mailing list
  MonoTouch@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/monotouch

 Dimitris Tavlikos
 Software Developer
 Author of iOS Development using MonoTouch Cookbook
 Email: jimi...@gmail.com
 Twitter: http://twitter.com/#!/dtavlikos
 Blog: http://software.tavlikos.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] Await / Async / Task

2012-07-19 Thread Jeff Stedfast
The core runtime team will need to stabilize  release Mono 2.12 before the
MonoTouch team will begin updating their runtime (which probably won't
happen until after MonoTouch 6.0).

Late fall or winter is when I might expect MonoTouch to have async/wait,
but probably not much sooner.

Jeff

On Thu, Jul 19, 2012 at 6:38 AM, JB jeff.butterwo...@softwareresults.com.au
 wrote:

 Hi Jeff

 Is anyone on that team able to confirm? I've been using the Async CTP in my
 windows projects for some time now and its great. Unfortunately now I have
 a
 fairly large set of business classes that I need to use in an iPad app. The
 async support is what is holding me up and it seems to have been coming
 forever ( I asked about it last December and Miguel had said 2.12 would be
 released in Jan/Feb this year and to my knowledge its still not.) Now that
 MS have said that VS2012 will RTM in early August, I'm really hoping to see
 async support in MonoTouch released very VERY soon.

 Cheers

 Jeff B

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Await-Async-Task-tp4656049p4656060.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] XIB file in sub-folder of Library Project

2012-07-19 Thread Jeff Stedfast
Hi Phil,

This appears to be a bug in MonoDevelop's logic for calculating the .nib
paths to be embedded into the resulting dll.

Would you mind submitting a bug report about this to
http://bugzilla.xamarin.com? I'll be taking a look into fixing this issue
shortly.

Thanks!

Jeff

On Wed, Jul 18, 2012 at 3:10 AM, Phil Cockfield p...@cockfield.net wrote:

 I have a *MonoTouch Library Project *referenced by my main MonoTouch
 iPhone app project.

 In that project I am creating an *iPhone View Controller* from the
 template which create the *UIViewController* along with the XIB file.

 I am creating this in a sub-folder of the library project (eg. *
 /my_lib/foo* )

 This throws a build error, saying

 Error CS1566: Error reading resource file
 `/PATH/my_lib/obj/Debug/nibs/foo/bar.nib' (CS1566)


 This doesn't appear to be a limitation of library projects, because when I
 create a UIController/XIB template in the root folder it builds just find.

 Is there something special I need to configure so that it knows how to
 build the XIB file?
 Thanks

 --
 *Phil *Cockfield




 ___
 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] Await / Async / Task

2012-07-19 Thread Jeff Stedfast
I wish we could have it sooner, but it's probably too risky to get it in
for MonoTouch 6.0 (for iOS 6)

Jeff

On Thu, Jul 19, 2012 at 5:43 PM, JB jeff.butterwo...@softwareresults.com.au
 wrote:

 Gulp. Am just thinking of the code I'm going to have to rewrite for the
 async/await i've used :-(


 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Await-Async-Task-tp4656049p4656072.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] XIB file in sub-folder of Library Project

2012-07-19 Thread Jeff Stedfast
Hi Phil,

Never mind about submitting a bug report (I've just fixed it, so it should
end up in the next release; 3.0.4 or 3.0.3.5 or whatever it ends up being).

Jeff

On Thu, Jul 19, 2012 at 4:46 PM, Jeff Stedfast j...@xamarin.com wrote:

 Hi Phil,

 This appears to be a bug in MonoDevelop's logic for calculating the .nib
 paths to be embedded into the resulting dll.

 Would you mind submitting a bug report about this to
 http://bugzilla.xamarin.com? I'll be taking a look into fixing this issue
 shortly.

 Thanks!

 Jeff

 On Wed, Jul 18, 2012 at 3:10 AM, Phil Cockfield p...@cockfield.netwrote:

 I have a *MonoTouch Library Project *referenced by my main MonoTouch
 iPhone app project.

 In that project I am creating an *iPhone View Controller* from the
 template which create the *UIViewController* along with the XIB file.

 I am creating this in a sub-folder of the library project (eg. *
 /my_lib/foo* )

 This throws a build error, saying

 Error CS1566: Error reading resource file
 `/PATH/my_lib/obj/Debug/nibs/foo/bar.nib' (CS1566)


 This doesn't appear to be a limitation of library projects, because when
 I create a UIController/XIB template in the root folder it builds just find.

 Is there something special I need to configure so that it knows how to
 build the XIB file?
 Thanks

 --
 *Phil *Cockfield




 ___
 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] Await / Async / Task

2012-07-18 Thread Jeff Stedfast
Hi,

Async/Await features are available in the alpha releases of Mono (ie. 2.11)
but not MonoTouch (yet). I think the plan for these features being included
in MonoTouch  Mono 4 Android is this fall (although I'm not on that team,
so I could be wrong).

Hope that helps,

Jeff

On Wed, Jul 18, 2012 at 2:45 PM, rhavlick rhavl...@rehabsoftware.comwrote:

 Hello, I'm trying to get to use the async framework features to perform a
 web
 service call.  I found from other posts, this is now supported in the Alpha
 release, so I downloaded it - and believe I have the correct updates,
 however it's giving me errors like:

 Type Parameter Declaration Must Be An Identifier Not A Type.  Unexpected
 Symbol 'TestAsync' In Class, Struct, Or Interface Member Declaration,
 Class,
 Struct, Interface.  Method must have a return type.

 My method is:
 public async Taskbool TestAsync{
   //Some Stuff
 }


 Here is what versions I'm running:
 MonoDevelop 3.0.3.4
 Runtime:
 Mono 2.10.9 (tarball)
 GTK 2.24.10
 GTK# (2.12.0.0)
 Package version: 210090011
 Apple Developer Tools:
 Xcode 4.3.2 (1177)
 Build 4E2002
 Monotouch: 5.3.4

 Anyone know how to make this work?  Thanks.

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Await-Async-Task-tp4656049.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] Changes in XCode doesn't update to Monotouch

2012-07-17 Thread Jeff Stedfast
Hi Jeff,

What version of MonoDevelop are you using? Earlier emails in this thread
suggest 2.8.6.5, but a lot of improvements have gone into MonoDevelop in
this area since then...

Jeff

On Mon, Jul 16, 2012 at 7:17 PM, Jeff Kesselman jef...@gmail.com wrote:

 Okay, so here's the ela.

 This has happend to me a few times.  In all case its been when MonoDevelop
 barfs and dies.  I seem to be reducing the number of these occurrences by
 being VERY mindful of the synchronization messages when i return to
 monodevelop after being in  Xcode and don't even breath  on it until its
 settled down.

 When such a MD death occurs, the only way to get MD and Code properly back
 in sync is to close them both, re open Mono Develop, and reopen the GUI
 editor from MonoDevelop.  This loses the last set of changes in XCode but
 gets the two back in sync and talking to each other.

 I hope that helps you iron out the issues.

 JK



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Changes-in-XCode-doesn-t-update-to-Monotouch-tp4407974p4656013.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] Binding an interface that conforms to multiple protocols

2012-07-16 Thread Jeff Stedfast
Hi,

On Fri, Jul 13, 2012 at 3:30 PM, tkacem thabe...@hotmail.com wrote:

 Jeff,

 Thanks for your reply.

 1. The Dll's size (on disk) is bit over the native library size (30.6 MB vs
 30.5 MB) but when I reference it in the new project the window finder shows
 it has 29.1 MB which is a bit bizarre.


Probably just the different programs have different ways of calculating the
size on disk.



 2. I include the library by using --link-with options in btouch (I use
 btouch to generate the bindings not MonoDevelop's Monotouch binding
 Library.
 (I can't find a way to mention the link target)


The link target is specified in the AssemblyInfo.cs in the [LinkWith]
attribute.



 3. I did not see any reference of the native library in the build log (by
 using -v -v -v with btouch)


I meant the MonoDevelop build log when building the app (not the binding).
I should have been more explicit, sorry about that.

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


Re: [MonoTouch] Binding an interface that conforms to multiple protocols

2012-07-16 Thread Jeff Stedfast
On Fri, Jul 13, 2012 at 4:39 PM, tkacem thabe...@hotmail.com wrote:

 when I create the Dll by:

 */Developer/MonoTouch/usr/bin/btouch -e GDBinding.cs AssemblyInfo.cs
 -s:StructsAndEnums.cs -x:Extra.cs*


are you no longer using --link-with?



 then when I reference it in the sample project, I add these options to
 mtouch extra arguments:

 *cxx -gcc_flags -L${ProjectDir} -lGD -force_load ${ProjectDir}/libGD.a*


This is only necessary if you are not embedding the native library into the
binding dll.



 But then it brings me back the exception saying the AppDelegate does not
 implement UIApplicationDelegate


is it a c# exception or an objc exception? can you paste it?



 Just to remind you, I solved that the multiple protocol issue by having the
 GDiOS kind of implement UIApplicationDelegate in the binding

* [BaseType (typeof (UIApplicationDelegate))]
 [Model]
 interface GDiOSDelegate {
 [Abstract]
 [Export (handleEvent:)]
 void HandleEvent (GDAppEvent anEvent);

 }*

 Thank you very much for your help.


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


Re: [MonoTouch] Binding an interface that conforms to multiple protocols

2012-07-13 Thread Jeff Stedfast
The easiest way to bind these types of classes is to subclass one of them
and then manually bind the other class's methods.

Hope that helps,

Jeff

On Tue, Jul 10, 2012 at 11:23 AM, tkacem thabe...@hotmail.com wrote:

 Hi Nic,

 Thanks for your reply. The interface definition is as follows:

 *@interface GDExtended : NSObject UIApplicationDelegate,GDiOSDelegate

 - (void) handleEvent:(GDAppEvent *)anEvent;
 - (BOOL)application:(UIApplication *)application
 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;

 @end*


 *@implementation GDExtended

 - (id)init
 {
 self = [super init];
 if (self) {
 // Initialization code here.
 }

 return self;
 }

 - (void) handleEvent:(GDAppEvent *)anEvent
 {

 }

 - (BOOL)application:(UIApplication *)application
 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {
 return YES;
 }

 @end
 *

 I am trying to wrap this in c# knowing that c# does not allow multiple
 implementation. I wrote the wrapper for this interface in c# (I need the
 GDiOSDelegate in order to create the event handler method which should
 communicate with components from UIApplicationDelegate class).
 The problem is that when I inherit GDExtended in a sample monotouch
 application that uses the created Dll, I get an error that my class does
 not
 implement UIApplicationDelegate.

 Your prompt attention to this message is highly appreciated.
 Thanks,
 Thabet

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Binding-an-interface-that-conforms-to-multiple-protocols-tp4655661p4655901.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

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


Re: [MonoTouch] Binding an interface that conforms to multiple protocols

2012-07-13 Thread Jeff Stedfast
That makes me think that the native library isn't being linked into the
final app.

1. Make sure that the binding dll is larger than the size of the native
library (this is just a quick  easy way of determining if the dll has the
native library embedded in it)

2. Make sure that you are targeting a device that is supported by the
native library  that the LinkWith attribute includes that LinkTarget.

3. Browse over the build log and make sure that the native library is being
pulled in (will be one of the gcc lines)

Hope that helps,

Jeff

On Fri, Jul 13, 2012 at 12:53 PM, tkacem thabe...@hotmail.com wrote:

 Yes. That's what I did and it worked. Meanwhile, I am having another kind
 of
 error. Many methods in the wrapped classes in the monotouch dll return null
 when used in a sample project. I debugged the issue and found that the
 classHandle of many of those classes is equal to 0x0 as well as the
 class_ptr.
 Any idea why this is happening ?

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Binding-an-interface-that-conforms-to-multiple-protocols-tp4655661p4655964.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

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


Re: [MonoTouch] Link all assemblies required?

2012-06-26 Thread Jeff Stedfast
You can set that value to anything you want, it's just an option to help
shrink the size of your bundled application by removing classes/methods/etc
that your program doesn't use.

Hope that answers your question,

Jeff

On Mon, Jun 25, 2012 at 6:20 PM, rnendel11 rnende...@gmail.com wrote:

 For an AppStore submission, do I need to make sure I'm linking all
 assemblies
 or can I simply link SDK?

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Link-all-assemblies-required-tp4655571.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] Odd UIAlertView regression between 5.3 and 5.2

2012-06-25 Thread Jeff Stedfast
Hi Nic,

This was a bug, but I've looked at the code and it appears to have been
fixed in git master (the first button title was passed to the base ctor and
then added again in the UIAlertView ctor).

Hope that helps,

Jeff

On Mon, Jun 25, 2012 at 2:48 PM, Nic Wise n...@fastchicken.co.nz wrote:

 In MonoTouch 5.2.12
 http://www.fastchicken.co.nz/drop/alertview-5212.png

 In MonoTouch 5.3.4:
 http://www.fastchicken.co.nz/drop/alertview-534.png



 Both come from the same bit of code:


 alertView = new UIAlertView(string.Format(MESSAGE_TITLE, APP_NAME),

  string.Format(MESSAGE, APP_NAME),

  null,

  CANCEL_BUTTON,

  string.Format(RATE_BUTTON, APP_NAME),

  LATER_BUTTON);

  alertView.Show();

 All the uppercase stuff are just strings.

 Why the extra Ok Button?? (thats RATE_BUTTON in this case)

 Bug it? It's shown on the main UI thread, too.



 --
 Nic Wise
 t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
 b. http://www.fastchicken.co.nz/

 Earnest: Self-employed? Track your business expenses and income.
 http://earnestapp.com
 Nearest Bus: find when the next bus is coming to your stop.
 http://goo.gl/Vcz1p
 mobileAgent (for FreeAgent): get your accounts in your pocket.
 http://goo.gl/IuBU
 Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
 London Bike App: Find the nearest Boris Bike, and get riding!
 http://goo.gl/Icp2
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

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


Re: [MonoTouch] XIB Sync from IB to designer.cs New to MonoTouch

2012-06-18 Thread Jeff Stedfast
Hi,

This is a bug that will be fixed in the next release of MonoDevelop which
will hopefully be out in the next few days.

Hope that helps,

Jeff

On Sat, Jun 16, 2012 at 7:21 PM, vulclanccit
chuckcond...@clearchannel.comwrote:

 I am following a tutorial on Pluralsight (ProteinTracker).  Pluralsight's
 video tutorial is based on an older monotouch/Xcode (before IB was
 integrated into Xcode).  Nonetheless I am using Xamarin's HelloWorld
 tutorial as the technique for inserting actions and outlets.  It seems that
 it only is letting me hook up one action at a time.  Also, starting with
 the
 Utility project, the MainViewController.designer.cs has a partial void
 showInfo declaration (normal).  However, as soon as I create either an
 action or an outlet that declaration disappears.  It also seems only one
 declartion stays.I have the latest xcode, monotouch, monodevelop (all
 downloaded as of Thursday 6/14/2012) on a new macbook pro.

 Is this a bug or am I doing something wrong?

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/XIB-Sync-from-IB-to-designer-cs-New-to-MonoTouch-tp4655428.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] Newbie: File - New - MonoTouch Sln - XCode build error

2012-06-13 Thread Jeff Stedfast
Hi Pure,

The Objective-C projects generated by MonoDevelop and exported to Xcode are
not meant to be buildable, they are simply meant to allow you to construct
your UIs and connect Actions  Outlets.

Hope that helps,

Jeff

On Wed, Jun 13, 2012 at 12:52 AM, Pure Krome 
pure.kr...@world-domination.com.au wrote:

 Hi folks,

 I'm not sure if this is right nor not .. but if I create a new default
 MonoTouch solution (eg. Single view or Master-Detail, etc)... before i
 change any code i can build and run .. which works.

 but

 if I double click one of the .xib files, it opens up XCode (kewl..) and
 then
 i build .. and i get 2x errors.

 Is that right?

 -PK-

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Newbie-File-New-MonoTouch-Sln-XCode-build-error-tp4655336.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] Newbie question : MonoDevelop error when creating outlet

2012-06-13 Thread Jeff Stedfast
Hi John and Kerry,

This bug has been fixed in the 3.0.3.1 beta. Can you verify?

Jeff

On Wed, Jun 13, 2012 at 2:35 AM, Kerry Street kcsw...@live.com wrote:

 Kerry Street kcswork@... writes:

 I submitted bug 5627 to Xamarin bugzilla:

 https://bugzilla.xamarin.com/show_bug.cgi?id=5627


 ___
 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] Binding Sample Make File

2012-06-13 Thread Jeff Stedfast
Hi Martin,

The way to build the bindings is to run the `make` command at the
command-line while in the toplevel monotouch-bindings directory (or the
binding directory of the binding you want).

It looks like you tried to actually run the Makefile file, but it is not a
script - it is meant to be interpreted by the 'make' program.

Hope that helps,

Jeff

On Wed, Jun 13, 2012 at 6:42 AM, ZNNXL martin.r...@rtt.ag wrote:

 *Hello,

 i try to build the binding sample.

 In the readme i read:
 To compile the Xcode Project and binding classes execute the make command
 from the root directory.

 if i use the make file in the main root, i get follow errors:
 *
 Last login: Wed Jun 13 12:32:39 on ttys000
 /Users/pos/Desktop/BindingSample/Makefile ; exit;
 rtt-admins-macbookpro52:~ pos$ /Users/pos/Desktop/BindingSample/Makefile ;
 exit;/Users/pos/Desktop/BindingSample/Makefile: line 1: all:: command not
 found
 /Users/pos/Desktop/BindingSample/Makefile: line 2: cd: src/binding/: No
 such
 file or directory
 make: *** No targets specified and no makefile found.  Stop.
 /Users/pos/Desktop/BindingSample/Makefile: line 4: clean:: command not
 found
 /Users/pos/Desktop/BindingSample/Makefile: line 5: cd: src/binding: No such
 file or directory
 make: *** No rule to make target `clean'.  Stop.
 logout

 [Process completed]

 *I found in the source binding folder a make file. If i use this:
 *
 Last login: Wed Jun 13 12:41:17 on ttys000
 rtt-admins-macbookpro52:~ pos$
 /Users/pos/Desktop/BindingSample/src/binding/Makefile ; exit;
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 4:
 PROJECT_ROOT:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 9: all::
 command
 not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 11:
 libXMBindingLibrarySample-i386.a:: command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 12: PROJECT:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 12: TARGET:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 12: MSBUILD::
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 13:
 PROJECT_ROOT: command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 13: TARGET:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 13: -mv:
 command
 not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 15:
 libXMBindingLibrarySample-armv6.a:: command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 16: PROJECT:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 16: TARGET:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 16: MSBUILD::
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 17:
 PROJECT_ROOT: command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 17: TARGET:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 17: -mv:
 command
 not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 19:
 libXMBindingLibrarySample-armv7.a:: command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 20: PROJECT:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 20: TARGET:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 20: MSBUILD::
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 21:
 PROJECT_ROOT: command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 21: TARGET:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 21: -mv:
 command
 not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 23:
 libXMBindingLibrarySampleUniversal.a:: command not found
 lipo: no input files specified
 lipo: Usage: lipo [input_file] ... [-arch arch_type input_file] ...
 [-info] [-detailed_info] [-output output_file] [-create] [-arch_blank
 arch_type] [-thin arch_type] [-remove arch_type] ... [-extract
 arch_type] ... [-extract_family arch_type] ... [-verify_arch
 arch_type
 ...] [-replace arch_type file_name] ...
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 26:
 XMBindingLibrary.dll:: command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 27: BTOUCH:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 27: -unsafe:
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 29: clean::
 command not found
 /Users/pos/Desktop/BindingSample/src/binding/Makefile: line 30: -rm:
 command
 not found
 logout

 [Process completed]

 what is my fail?

 thanks

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Binding-Sample-Make-File-tp4655345.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 

Re: [MonoTouch] MonoTouch Binding TargetName in MakeFile

2012-06-13 Thread Jeff Stedfast
Hi Martin,

If you are using the Makefiles found in the monotouch-bindings project, you
can ignore the TARGET variable. That variable is only used for compiling
native Xcode projects. The only Makefile rule you should have is the .dll
rule.

Hope that helps,

Jeff

On Wed, Jun 13, 2012 at 9:33 AM, ZNNXL martin.r...@rtt.ag wrote:

 Hello,

 my question is, in the makefile we are found a TARGET.

 In the sample the target is XMBindingLibrarySample

 Now we ask ourselves what is meant by TARGET.

 At present, we get a error: xcodebuild:error: The project
 'Framework/***.xcodeproj' does not contain a target named
 'FrameWorkBindingLibrary'.

 We have included a file named FrameWorkBindingLibrary.cs with Exports.

 Thanks

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/MonoTouch-Binding-TargetName-in-MakeFile-tp4655347.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] Binding of Zebra SDK to Monotouch

2012-06-13 Thread Jeff Stedfast
Hi,

I think what you want to do is change this:

[BaseType (typeof(NSObject))]
interface TcpPrinterConnection : ZebraPrinterConnection

to this:

[BaseType (typeof(ZebraPrinterConnection))]
interface TcpPrinterConnection

On Wed, Jun 13, 2012 at 4:19 AM, Дмитрий Надеждин denadezh...@gmail.comwrote:

 Dear MonoTouch subscribers,

 The same question is here:
 http://stackoverflow.com/questions/11008726/binding-of-zebra-sdk-to-monotouch

 Short version: I have created a binding for Zebra native library for
 mobile printers and the basic functionality works fine (wireless connection
 between the printer and the iPad, writing data to streams, printing out
 text, etc.)
 I want to print out PDFs and images, and the native library provides the
 classes for that. However, I can't get it to work from Monotouch.


 Long version: I have problem binding the structure described below.

 @protocol ZebraPrinterConnection
 - (BOOL) open;
 - (void) close;
 - (NSInteger) write:(NSData *)data error:(NSError **)error;
 - (NSData *)read: (NSError**)error;

 @interface TcpPrinterConnection : NSObjectZebraPrinterConnection {
  some @private properties
 }
  - (id)initWithAddress:(NSString *)anAddress andWithPort:(
 NSInteger)aPort;

 @interface ZebraPrinterFactory : NSObject { }
   +(idZebraPrinter,NSObject) getInstance:(idZebraPrinterConnection,
 NSObject) connection error:(NSError**)error


 The tricky part here is to obtain ZebraPrinter instance in Monotouch code.
 Note how ZebraPrinterFactory wants ZebraPrinterConnection to be passed to
 it, but onlyTcpPrinterConnection has an actual constructor.
 The connection classes work fine when bound like this:

 [BaseType (typeof (NSObject))]
 [Model]
 interface ZebraPrinterConnection
 {

 [Export (open)] bool Open();

 [Export (close)] void Close();
 [Export (write:error:)] int Write(NSData data, out NSError error);
 [Export (read:)] NSData Read(out NSError error);

 }

 [BaseType (typeof(NSObject))]
 interface TcpPrinterConnection : ZebraPrinterConnection
 {

 [Export (initWithAddress:andWithPort:)] IntPtr Constructor (string
 anAddress, int aPort);

 }

 Binding of ZebraPrinterFactory class is not as straightforward. If I bind
 it like this:

 [BaseType (typeof(NSObject))]
 interface ZebraPrinterFactory
 {

 [Static, Export (getInstance:error:)]

 ZebraPrinter getInstance(ZebraPrinterConnection connection, out NSError
 error);

 }

 then I try to use something like

 myConn = new TcpPrinterConnection(ipAddress, port);
 myConn.Open ();
 ZebraPrinter zPrinter = ZebraPrinterFactory.GetInstance(myConn, out err);
 // compile-time error: Cannot convert TcpPrinterConnection
 into ZebraPrinterConnection

 I get a compile-time error. If I change the binding for Mono to
 accept TcpPrinterConnection as parameter (I've tried multiple
 configurations), I get runtime exception (System.InvalidCastException:
 Cannot cast from source type to destination type.) which has no inner
 exceptions and I have no idea which type could not be converted (strongly
 suspecting that same conversion as above).
 It's really frustrating having something ALMOST working, but not quite.

 Any ideas? I'm starting to think of binding limitations already. Could
 someone tell me if such structures can be bound at all?

 Regards, Dmitry

 ___
 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] Class __MonoTouch_NSActionDispatcher is implemented in both ?? and ??. One of the two will be used. Which one is undefined.

2012-06-12 Thread Jeff Stedfast
Hi Felix,

I've not experienced this, so I don't know... but it won't hurt to submit a
bug report about it.

Hope that helps,

Jeff

On Tue, Jun 12, 2012 at 5:31 PM, Felix Collins fe...@intranel.com wrote:

 Anyone, anyone? Has no one else experienced this?


 On 11/06/2012 1:43 p.m., Felix Collins wrote:

 Hi,
 I'm getting this notice multiple (8) times at run time in the device
 log.

 Class __MonoTouch_NSActionDispatcher is implemented in both ?? and ??. One
 of the two will be used. Which one is undefined.

 __**_
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/**mailman/listinfo/monotouchhttp://lists.ximian.com/mailman/listinfo/monotouch

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


Re: [MonoTouch] Cannot synch Xcode changes in Monotouch

2012-06-09 Thread Jeff Stedfast
Can you try the MonoDevelop 3.0.3.1 beta? It *should* be fixed now...

Thanks,

Jeff

On Thu, Jun 7, 2012 at 5:09 PM, rnendel11 rnende...@gmail.com wrote:

 Right now it is a pain.  There seems also to be a problem with Actions
 being
 stripped from the resulting monotouch files.  You can load the IB again
 into
 xCode, the actions show up sometimes, but inevitably the actions are gone
 from both side of things.

 What I do, until this is fixed - is 1. Quit monodevelop, 2. Restart
 monodevelop, 3. Edit an IB (launches xCode), 4. Wait patiently for 115
 files
 so synchronize, 5. Make changes, 6. without exiting xCode, switch to
 monodevelop and click on whatever c# file is currently open, this signals
 monotouch to sync the files - if you don't see the sync progress bar
 appear,
 then 6.b switch back to xCode, save again, rinse and repeat - 7. once I see
 the sync occur using the above method, switch back to xCode and exit -
 should produce a final sync.

 This is the only way I've found to ensure that a sync will occur, other
 than rubbing various good luck charms scattered around my mac mini.

 The best luck I've had is first to always remember to just quit
 monodevelop,
 re-start it, then edit an IB - rinse and repeat if you have many IBs to
 update.

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Cannot-synch-Xcode-changes-in-Monotouch-tp4655234p4655252.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] Cannot synch Xcode changes in Monotouch

2012-06-07 Thread Jeff Stedfast
Hi Elena,

Could you submit a bug report to http://bugzilla.xamarin.com (file it under
MonoDevelop / iPhone Add-in)?

Once thing you could try, if you aren't already doing it, is to go to each
of the files you've changed in Xcode and saving them before swapping back
to MonoDevelop. This might help, but I'm not sure.

Normally, when you switch back to MonoDevelop, MonoDevelop tells Xcode to
save all of its unsaved documents and then it iterates over all of the
files, comparing timestamps to see which files need to be synced back to
MonoDevelop.

However, there is a timeout on the save unsaved documents command sent to
Xcode (30 seconds per document iirc), and so it might be possible that
Xcode isn't saving one (or more?) of them fast enough causing some sort of
race condition in the sync-back logic.

This is all just speculation, of course, so it might not help, but it might
be worth a try.

Jeff

On Thu, Jun 7, 2012 at 6:54 AM, Elena inpasara...@gmail.com wrote:

 Hello!

 My name is Elena. Can somebody solve the following problem.

 Some of the changes which have made on Xcode 4.3.2 doesnt showed up after
 build in Monotouch ( 3.0.2)

 I found a similar topic

 http://monotouch.2284126.n4.nabble.com/Delay-in-syncing-xcode-4-IB-changes-with-Monotouch-td4166543.html
 Where it was said that the bug would be fixed in 2.8.5.
 But i still have it.
 Maybe i am doing something wrong, and there is another reason for not
 updating changes in some files
 Note: i have this problem only with some xib files. Other files updating
 well.

 I will appreciate any help in this question.
 Thanks in advance


 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Cannot-synch-Xcode-changes-in-Monotouch-tp4655234.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] Cannot synch Xcode changes in Monotouch

2012-06-07 Thread Jeff Stedfast
Hi Nic, Elena,

The IsDerived() bug was supposedly fixed by Mike Krueger for 3.0.3 (going
thru QA right now), so if that's the problem then 3.0.3 should solve that.

Jeff

On Thu, Jun 7, 2012 at 1:05 PM, Nic Wise n...@fastchicken.co.nz wrote:

 Jeff, I suspect this might be the same issue:

 https://bugzilla.xamarin.com/show_bug.cgi?id=5569

 I've seen a few others on the list with the same problem. I dont
 normally use IB, so I've not seen it until today

 On Thu, Jun 7, 2012 at 5:36 PM, Jeff Stedfast j...@xamarin.com wrote:
  Hi Elena,
 
  Could you submit a bug report to http://bugzilla.xamarin.com (file it
 under
  MonoDevelop / iPhone Add-in)?
 
  Once thing you could try, if you aren't already doing it, is to go to
 each
  of the files you've changed in Xcode and saving them before swapping
 back to
  MonoDevelop. This might help, but I'm not sure.
 
  Normally, when you switch back to MonoDevelop, MonoDevelop tells Xcode to
  save all of its unsaved documents and then it iterates over all of the
  files, comparing timestamps to see which files need to be synced back to
  MonoDevelop.
 
  However, there is a timeout on the save unsaved documents command sent to
  Xcode (30 seconds per document iirc), and so it might be possible that
 Xcode
  isn't saving one (or more?) of them fast enough causing some sort of race
  condition in the sync-back logic.
 
  This is all just speculation, of course, so it might not help, but it
 might
  be worth a try.
 
  Jeff
 
 
  On Thu, Jun 7, 2012 at 6:54 AM, Elena inpasara...@gmail.com wrote:
 
  Hello!
 
  My name is Elena. Can somebody solve the following problem.
 
  Some of the changes which have made on Xcode 4.3.2 doesnt showed up
 after
  build in Monotouch ( 3.0.2)
 
  I found a similar topic
 
 
 http://monotouch.2284126.n4.nabble.com/Delay-in-syncing-xcode-4-IB-changes-with-Monotouch-td4166543.html
  Where it was said that the bug would be fixed in 2.8.5.
  But i still have it.
  Maybe i am doing something wrong, and there is another reason for not
  updating changes in some files
  Note: i have this problem only with some xib files. Other files updating
  well.
 
  I will appreciate any help in this question.
  Thanks in advance
 
 
  --
  View this message in context:
 
 http://monotouch.2284126.n4.nabble.com/Cannot-synch-Xcode-changes-in-Monotouch-tp4655234.html
  Sent from the MonoTouch mailing list archive at Nabble.com.
  ___
  MonoTouch mailing list
  MonoTouch@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/monotouch
 
 
 
  ___
  MonoTouch mailing list
  MonoTouch@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/monotouch
 



 --
 Nic Wise
 t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
 b. http://www.fastchicken.co.nz/

 Earnest: Self-employed? Track your business expenses and income.
 http://earnestapp.com
 Nearest Bus: find when the next bus is coming to your stop.
 http://goo.gl/Vcz1p
 mobileAgent (for FreeAgent): get your accounts in your pocket.
 http://goo.gl/IuBU
 Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
 London Bike App: Find the nearest Boris Bike, and get riding!
 http://goo.gl/Icp2

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


Re: [MonoTouch] trying to work out how to get searches to work properly.

2012-06-05 Thread Jeff Stedfast
Hi Alex,

When you create a UISearchDisplayController, you can pass it a UISearchBar.

I will say that using a UISearchDisplayController can be very confusing the
first time you use it, so I might suggest taking a look at
https://github.com/jstedfast/MonoTouch.SQLite

You'll see how I setup a UISearchDisplayController in the
AllInOneUITableViewController (mostly what this class does is to simplify
the use of UITableViewControllers so that you don't have to create all the
different delegate classes, etc).

Jeff

On Tue, Jun 5, 2012 at 10:51 AM, Alex White alexwhit...@gmail.com wrote:

 Hi Nic,

 thanks for the reply,

 I have tried the following code in the ViewDidAppear and ViewDidLoad and
 both give me a null issue,

 searchBar = new UISearchBar (f){
 Delegate = new SearchDelegate (),
 ShowsCancelButton = true,
 } ;
 string[] buttons = new string[] { POI, Road, Postcode} ;
 searchBar = new UISearchDisplayController();
 searchBar.ScopeButtonTitles = buttons;
 searchBar.ShowsScopeBar = true;
 searchBar.SizeToFit();
 this.SearchDisplayController.SearchBar = searchBar; -- this errors
 saying readonly


 I have also tried the following in the events above

 string[] buttons = new string[] { POI, Road, Postcode} ;
 UISearchDisplayController POIsearch = new UISearchDisplayController();
 POIsearch.SearchBar.ShowsScopeBar = true; --- fails here
 POIsearch.SearchBar.ScopeButtonTitles = buttons;

 I just need to see a working example to be able to see where I am going
 wrong, TBH I have tried so many things now that I am about to drop that
 part of the project until I can find an answer I spent the whole of
 yesterday googling for an answer and nothing worked.

 Thanks

 Alex

 On 5 Jun 2012, at 13:57, Nic Wise wrote:

 You may need to show the dialog before it creates the search bar -
 this happens with NavigationBars too.

 On Tue, Jun 5, 2012 at 12:40 PM, Alex White alexwhit...@gmail.com wrote:

 Hi,


 I am new to MT and MT.D, I am trying to get my head round how to properly

 structure the search bar with search scope, I have not found any working

 examples of SQLite IList into a the tableview.source of an inherited

 dialogviewcontroller, and then to get the searching to work, I have got the

 first load of the data working ok I am not getting anywhere with subsequent

 of that data.


 In my constructor of my inherited class I have the following


 base.AutoHideSearch = true;

 base.Autorotate = true;

 base.EnableSearch = true;



 Am I right in thinking that the ILIST is persisted at the class level and

 that the searches don't go back out to the database to build the searches

 but work off the loaded data?


 I am also needing to get the search scope buttons into the search bar, but
 I

 am hitting null errors with the following code


 string[] buttons = new string[] { POI, Road, Postcode} ;

 UISearchDisplayController POIsearch = new UISearchDisplayController();

 POIsearch.SearchBar.ShowsScopeBar = true; --- fails here

 POIsearch.SearchBar.ScopeButtonTitles = buttons;


 I am sure that all of the issues are my lack of understanding and not bugs

 so any example code just to get me going would be great.


 Thanks in advance


 Alex



 ___

 MonoTouch mailing list

 MonoTouch@lists.ximian.com

 http://lists.ximian.com/mailman/listinfo/monotouch





 --
 Nic Wise
 t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
 b. http://www.fastchicken.co.nz/

 Earnest: Self-employed? Track your business expenses and income.
 http://earnestapp.com
 Nearest Bus: find when the next bus is coming to your stop.
 http://goo.gl/Vcz1p
 mobileAgent (for FreeAgent): get your accounts in your pocket.
 http://goo.gl/IuBU
 Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
 London Bike App: Find the nearest Boris Bike, and get riding!
 http://goo.gl/Icp2



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


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


Re: [MonoTouch] trying to work out how to get searches to work properly.

2012-06-05 Thread Jeff Stedfast
Hi Alex,

You could just reference the MonoTouch.SQLite sub-project in your own
project, you don't need to copy the source code anywhere (although you
*could* also do it that way if you want).

This is what I do in my FlightLog app (also on github if you are interested
- take a look at the AircraftViewController and the FlightLogViewController
to see how they use it).

As far as your last question, that really depends on whether or not my
SQLiteTableViewController meets your needs. If it doesn't, you could at
least use it to help you figure out how to use UISearchDisplayController by
messing around with the sample app.

Hope that helps,

Jeff

On Tue, Jun 5, 2012 at 12:40 PM, Alex White alexwhit...@gmail.com wrote:

 Hi Jeff,

 Thanks very much for the link, I had a quick look at your project the
 other day but it was just a fleeting glance, nice work in there, what do
 you recommend, I am using SQLite databases already pre-populated with data,
 so my quick look suggests that I should copy al of the contents of the
 MonoTouch.SQLite / MonoTouch.SQLite folder then, take the
 sampletableviewcontroller.cs and use that as a template for each table that
 I want to expose, or should I just try and figure out how you have done
 stuff and make changes to my program, it is early days for this project so
 big changes can happen without too many issues.

 Thanks again

 Alex


 On 5 Jun 2012, at 16:31, Jeff Stedfast wrote:

 Hi Alex,

 When you create a UISearchDisplayController, you can pass it a UISearchBar.

 I will say that using a UISearchDisplayController can be very confusing
 the first time you use it, so I might suggest taking a look at
 https://github.com/jstedfast/MonoTouch.SQLite

 You'll see how I setup a UISearchDisplayController in the
 AllInOneUITableViewController (mostly what this class does is to simplify
 the use of UITableViewControllers so that you don't have to create all the
 different delegate classes, etc).

 Jeff

 On Tue, Jun 5, 2012 at 10:51 AM, Alex White alexwhit...@gmail.com wrote:

 Hi Nic,

 thanks for the reply,

 I have tried the following code in the ViewDidAppear and ViewDidLoad and
 both give me a null issue,

 searchBar = new UISearchBar (f){
 Delegate = new SearchDelegate (),
  ShowsCancelButton = true,
 } ;
 string[] buttons = new string[] { POI, Road, Postcode} ;
 searchBar = new UISearchDisplayController();
 searchBar.ScopeButtonTitles = buttons;
 searchBar.ShowsScopeBar = true;
 searchBar.SizeToFit();
 this.SearchDisplayController.SearchBar = searchBar; -- this errors
 saying readonly


 I have also tried the following in the events above

 string[] buttons = new string[] { POI, Road, Postcode} ;
 UISearchDisplayController POIsearch = new UISearchDisplayController();
 POIsearch.SearchBar.ShowsScopeBar = true; --- fails here
 POIsearch.SearchBar.ScopeButtonTitles = buttons;

 I just need to see a working example to be able to see where I am going
 wrong, TBH I have tried so many things now that I am about to drop that
 part of the project until I can find an answer I spent the whole of
 yesterday googling for an answer and nothing worked.

 Thanks

 Alex

 On 5 Jun 2012, at 13:57, Nic Wise wrote:

 You may need to show the dialog before it creates the search bar -
 this happens with NavigationBars too.

 On Tue, Jun 5, 2012 at 12:40 PM, Alex White alexwhit...@gmail.com
 wrote:

 Hi,


 I am new to MT and MT.D, I am trying to get my head round how to properly

 structure the search bar with search scope, I have not found any working

 examples of SQLite IList into a the tableview.source of an inherited

 dialogviewcontroller, and then to get the searching to work, I have got
 the

 first load of the data working ok I am not getting anywhere with
 subsequent

 of that data.


 In my constructor of my inherited class I have the following


 base.AutoHideSearch = true;

 base.Autorotate = true;

 base.EnableSearch = true;



 Am I right in thinking that the ILIST is persisted at the class level
 and

 that the searches don't go back out to the database to build the searches

 but work off the loaded data?


 I am also needing to get the search scope buttons into the search bar,
 but I

 am hitting null errors with the following code


 string[] buttons = new string[] { POI, Road, Postcode} ;

 UISearchDisplayController POIsearch = new UISearchDisplayController();

 POIsearch.SearchBar.ShowsScopeBar = true; --- fails here

 POIsearch.SearchBar.ScopeButtonTitles = buttons;


 I am sure that all of the issues are my lack of understanding and not bugs

 so any example code just to get me going would be great.


 Thanks in advance


 Alex



 ___

 MonoTouch mailing list

 MonoTouch@lists.ximian.com

 http://lists.ximian.com/mailman/listinfo/monotouch





 --
 Nic Wise
 t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
 b. http://www.fastchicken.co.nz/

 Earnest: Self-employed? Track your business expenses

Re: [MonoTouch] Runtime system identification?

2012-06-01 Thread Jeff Stedfast
Hi Anthony, etc

The reason that we continue to report Unix is for historical reasons (the
MacOSX enum value was not in the original specifications and so Mono
started out reporting Unix). We cannot start reporting MacOSX as the
PlatformID because it would break any existing applications that expect it
to return Unix.

I don't know how many apps that would break, but it is a risk that we
cannot blindly take.

Hope that helps answer why it reports Unix...

Jeff

On Fri, Jun 1, 2012 at 8:12 AM, AnthonyLambert anthonylamb...@mac.comwrote:

 I registered this as a Bug.


 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Runtime-system-identification-tp4655153p4655157.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] Using Portable Library Projects in MonoDevelop/MonoTouch

2012-05-25 Thread Jeff Stedfast
Hi Stuart,

On Fri, May 25, 2012 at 9:02 AM, slodge m...@slodge.com wrote:

 Hi All

 I'm still plugging away at trying to get Portable Library projects to work
 fully across wp7, winrt, droid and touch.

 I'm especially trying this as it will deliver lots of benefits in terms of
 refactoring and csproj project management to me as a cross platform
 developer.

 I've previously managed to:

 - get all projects to build in VS2010 - using VSMonoTouch with a fair
 amount
 of hacking -
 http://slodge.blogspot.co.uk/2012/04/using-portable-library-tools-for.html

 - get all projects to run in wp7, winrt and monodroid from the PC

 - get MonoTouch/MonoDevelop on the Mac to load Portable Library Project
 files - but this seems only to work if I force the Profile type to
 Profile1

 - get MonoTouch projects to use Portable Class Libraries if I add them as
 compiled references rather than as project references.

 However, there are still a few gaps I'm trying to fill - all of them on
 MonoDevelop on the Mac:

 1. I don't seem to be able to find any way to load PLPs project files in
 MonoDevelop outside of Profile1 - if the .csproj file contains anything
 other than Profile1 in
 `TargetProfileFrameworkProfile1/TargetProfileFramework` then it won't
 load.


Hmm, this seems like a bug. I'll look into this. Could you submit a bug
report to http://bugzilla.xamarin.com for tracking? The IPhone Add-In
component is a good place to submit these (that should auto-assign the bugs
to me).



 2. I can't work out how to edit the installed profiles. Ideally I'd like to
 go even further than Profile 4 - ideally I'd like to extend this all the
 way
 up to Profile 104 as I can then link in my own type
 redirection/substitution
 stubs for the limited required System.Net and System.Windows assemblies.


There's currently no editor UI for this because we currently do not have
any of the XML files that define the profiles, so the only way to have done
it would have been to hard-code the profile names and relations.

We want to eventually have full support for .NETPortable projects and be
compatible with Microsoft, but we do not currently have the XML / API
definitions for the profiles as part of Mono. It *is* in our queue to
figure out how to generate these, because long-term we agree that this is
the way forward.

Once we find a way to include those in Mono, it'll become a high priority
to implement a UI for selecting these profile configurations.



 3. I can't work out how to reference portable library projects from
 MonoTouch projects - I can add the references, but as soon as I select a
 configuration like Debug|iPhoneSimulator then the PLP is greyed out and
 not build in active configuration appears.


What configurations does it work with? I could have sworn this worked.

Could you submit a bug for this one, too?

I'll look into this one as well.



 I appreciate that much of what I'm trying here is on the edge of what has
 currently been tried, and I realise that some of the features I'm trying to
 use are only available in Beta from Microsoft, but I really strongly
 believe
 in this as the way forwards - so that's why I'm trying so hard to get it
 working :)


We think it's the way forward, too.



 Has anyone got any ideas about what I could try to move this forwards? I am
 toying with the monodevelop source code right now, but haven't really
 gotten
 very far into it yet. If anyone has any ideas or suggestions I'd love to
 hear them.


The easiest way to poke around the .NETPortable stuff is probably to use
`git log --author=jeff` and then search for .NETPortable (it's how I remind
myself where the source files are!)

For example, one of the source files
is: main/src/core/MonoDevelop.Core/MonoDevelop.Projects/PortableDotNetProject.cs


Hope that helps,

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


Re: [MonoTouch] Using Portable Library Projects in MonoDevelop/MonoTouch

2012-05-25 Thread Jeff Stedfast
Thanks Stuart, I'll look into these issues.

Jeff

On Fri, May 25, 2012 at 11:25 AM, Stuart Lodge m...@slodge.com wrote:

 Just logged the two issues and also updated the Gist so it shows slightly
 more public member info in the profile dump -
 https://gist.github.com/2788579

 Hope that helps

 Thanks again for your answers :)

 Stuart - away for the weekend so will get back on this next week now :)

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


Re: [MonoTouch] When and why would TryGetNSObject() fail?

2012-05-17 Thread Jeff Stedfast
It's possible that the native pointer address has been reused (e.g. the
runtime thinks the old object is still around even tho it is not).

Jeff

On Thu, May 17, 2012 at 4:46 AM, Rolf Bjarne Kvinge r...@xamarin.comwrote:

 Hi,

 I just looked at the source and this is something that should not happen.
 We're looking up an object using the pointer to that object in a
 dictionary, and then casting the result to NSObject. The problem is that
 the only thing we ever put in that dictionary is NSObjects, i.e. it is
 impossible for this to happen, which leads to the possibility of memory
 corruption or GC bug. Is it a reproducible issue? We could probably give
 you instrumented monotouch.dlls which could help tracking it down if it
 happens for you once in a while.

 Rolf

 On Thu, May 17, 2012 at 9:44 AM, René Ruppert rene.rupp...@googlemail.com
  wrote:

 Hi,



 Can somebody give me an example that would lead to the exception below?

 Is that simply caused by trying to case a null ref into an NSObject?

 Would can cause this? Does it mean that there is a managed object that
 tries to access its unmanaged counterpart that no longer exists?



 System.InvalidCastException: Cannot cast from source type to destination
 type.

 at MonoTouch.ObjCRuntime.Runtime.TryGetNSObject (IntPtr ptr) [0x0] in
 filename unknown:0

 at MonoTouch.ObjCRuntime.Runtime.GetNSObject (IntPtr ptr) [0x0] in
 filename unknown:0

 at MonoTouch.ObjCRuntime.Runtime.GetNSObjectWrapped (IntPtr ptr)
 [0x0] in filename unknown:0

 at (wrapper native-to-managed)
 MonoTouch.ObjCRuntime.Runtime:GetNSObjectWrapped (intptr)





 René

 ___
 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] Bought Licence, now MT won't start?

2012-05-17 Thread Jeff Stedfast
Hi Nic  Steve,

The recent files list is ~/.recently-used - it sounds like maybe that file
is corrupted? (I'm poking Michael Hutchinson to look at this email in case
I'm wrong).

Hope that helps,

Jeff

On Thu, May 17, 2012 at 12:35 PM, Nic Wise n...@fastchicken.co.nz wrote:

 From memory, ~/.config I think - there is a MonoDevelop folder in
 there somewhere. You'll need to be on the command line. IT definitly
 starts with . - so use ls -la if you can't see them :)

 I'll have a look when I get home if you still can't find it.



 On Wed, May 16, 2012 at 7:15 PM, stevebrowne ste...@quickweb.co.uk
 wrote:
  I have been using the trial version of MT IOS for the past month or so
 with
  the emulator, but finally paid for a licence last night. All was fine,
 got
  my certificates sorted and deployed to my iPhone. No problems.  Closed
  everything down and went to bed.
 
  This evening, Monotouch simply will not work.
 
  If I just start MonoTouch from the icon I get a blank MT screen. No
 previous
  projects listed, no news . Just the empty frame.  If I then go to Recent
  Solutions, then even before I select the menu item I get an error box
 that
  just says Error while updating status of command
  MonoDevelop.Ide.Commands.FileCommands.RecentProjectList  If I expand
 out
  the details, it's a whole bunch of XML Exceptions, ending with
 Referenced
  character was not allows in XML.
 
  There's obviously a config file or something that's gone pop, but where
  should I start looking?
 
  steve
 
  --
  View this message in context:
 http://monotouch.2284126.n4.nabble.com/Bought-Licence-now-MT-won-t-start-tp4641799.html
  Sent from the MonoTouch mailing list archive at Nabble.com.
  ___
  MonoTouch mailing list
  MonoTouch@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/monotouch



 --
 Nic Wise
 t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
 b. http://www.fastchicken.co.nz/

 Earnest: Self-employed? Track your business expenses and income.
 http://earnestapp.com
 Nearest Bus: find when the next bus is coming to your stop.
 http://goo.gl/Vcz1p
 mobileAgent (for FreeAgent): get your accounts in your pocket.
 http://goo.gl/IuBU
 Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
 London Bike App: Find the nearest Boris Bike, and get riding!
 http://goo.gl/Icp2
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

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


Re: [MonoTouch] MD corrupting entitlements.plist

2012-05-17 Thread Jeff Stedfast
Hi Felix,

Can you submit a bug report about empty arrays being added to the
Entitlements.plist?

That should be fixed to not happen.

I wonder also if that is the *actual* cause of the first problem you
mentioned...

I'll look into getting this fixed ASAP.

Jeff

On Wed, May 16, 2012 at 11:36 PM, Felix Collins fe...@intranel.com wrote:

 I find that after opening the solution I can no longer debug on the device.

 Deployment Log:
 Installation failed: Your code signing/provisioning profiles are not
 correctly configured (error: 0xe8008016)

 iOS Device Log:
 May 17 15:13:45 unknown installd[3412] Error: entitlement
 'com.apple.developer.ubiquity-container-identifiers' has value not
 permitted
 by a provisioning profile

 I checked for modifications to the entitlements.plist file and sure enough
 the diff shows this

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE plist PUBLIC quot;-//Apple//DTD PLIST 1.0//ENquot;
 quot;http://www.apple.com/DTDs/PropertyList-1.0.dtdquot;
 plist version=1.0
 dict
 +   keycom.apple.developer.ubiquity-container-identifiers/key
 +   array/
keyget-task-allow/key
true/
 +   keykeychain-access-groups/key
 +   array/
 /dict
 /plist


 Where the + indicates an added line.  Not sure what this is supposed to do
 but if I go to XCode and remove the added lines. Then the app deploys and
 runs on the device. Has anyone else seen this on MonoDevelop 3.0 (3.0.1)
 Apple Developer Tools:   Xcode 4.2.1 (834) Build 4D502 Monotouch: 5.2.11?

 Should I log a bug or is this intended behavior and I have a missing
 setting
 elsewhere?

 Felix


 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/MD-corrupting-entitlements-plist-tp4642524.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] MD corrupting entitlements.plist

2012-05-17 Thread Jeff Stedfast
Hi Neal,

Can you check to see if you have empty array values in your
Entitlements.plist, too?

Then, if you could, try removing those empty array key/value pairs from the
Entitlements.plist using a text editor and then recompile your app. Do you
still get the error when installing on device?

I think the actual problem might be the empty arrays, but I want to be sure.

Thanks!

Jeff

On Thu, May 17, 2012 at 7:45 AM, NC Software n...@nc-software.com wrote:

 I reported a bug yesterday regarding MD 3 and the Entitlements.plist
 showing
 in my Release/iPhone build when it was only suppost to show in my ad-hoc
 build.  I got this very same error!  Review your build configurations and
 make sure the Entitlements.plist is only included where required.

 I haven't tried building the ad-hoc build yet so there very well may be an
 issue there too.  I hope not!  This is critical and I hope you report it to
 bugzilla and also Xamarin is on top of it!

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/MD-corrupting-entitlements-plist-tp4642524p4642852.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] Failure to build CorePlot bindings

2012-04-30 Thread Jeff Stedfast
Hi Guido,

Try running `xcode-select -switch /Applications/Xcode.app`

Then you might not even need to replace the path to xcodebuild

Hope that helps,

Jeff

On Mon, Apr 30, 2012 at 7:24 AM, Guido Van Hoecke gui...@gmail.com wrote:

 Trying to build the CorePlot bindings found at
 https://github.com/mono/monotouch-bindings/tree/master/CorePlot

 The binding/Makefile still looks for XBUILD at the old /Developer
 location:
 XBUILD=/Developer/usr/bin/xcodebuild

 This is easily fixed by changing to the current location:
 XBUILD=/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild

 However, the make fails:

 gcc-4.2: error trying to exec '/usr/bin/arm-apple-darwin11-gcc-4.2.1':
 execvp: No such file or directory

 Any suggestions?

 Thanks in advance,


 Guido

 --
 If at first you do succeed, try to hide your astonishment.

 http://vanhoecke.org ... and go2 places!
 ___
 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] Failure to build CorePlot bindings

2012-04-30 Thread Jeff Stedfast
Looks like you need to install command-line tools in Xcode 4.3

Xcode - Preferences - Downloads and then click the install button next to
Command Line Tools.

Jeff

On Mon, Apr 30, 2012 at 2:47 PM, Guido Van Hoecke gui...@gmail.com wrote:

 Jeff,

 On Mon, Apr 30, 2012 at 18:56, Jeff Stedfast j...@xamarin.com wrote:
  I've just updated the XBUILD macro paths

 That does not really help:
 ** BUILD FAILED **


 The following build commands failed:
CompileC
 ../build/CorePlot-CocoaTouch.build/Release-iphoneos/CorePlot-CocoaTouch.build/Objects-normal/armv6/CPTBarPlot.o
 Source/CPTBarPlot.m normal armv6 objective-c
 com.apple.compilers.llvmgcc42
CompileC
 ../build/CorePlot-CocoaTouch.build/Release-iphoneos/CorePlot-CocoaTouch.build/Objects-normal/armv6/CPTPlot.o
 Source/CPTPlot.m normal armv6 objective-c
 com.apple.compilers.llvmgcc42
CompileC
 ../build/CorePlot-CocoaTouch.build/Release-iphoneos/CorePlot-CocoaTouch.build/Objects-normal/armv6/CPTPlotSymbol.o
 Source/CPTPlotSymbol.m normal armv6 objective-c
 com.apple.compilers.llvmgcc42
CompileC
 ../build/CorePlot-CocoaTouch.build/Release-iphoneos/CorePlot-CocoaTouch.build/Objects-normal/armv6/CPTScatterPlot.o
 Source/CPTScatterPlot.m normal armv6 objective-c
 com.apple.compilers.llvmgcc42
 (4 failures)
 make: *** [libCorePlot-CocoaTouch-armv6.a] Error 65

 Basically, the real error is the absence of
 '/usr/bin/arm-apple-darwin11-gcc-4.2.1':

 gcc-4.2: error trying to exec '/usr/bin/arm-apple-darwin11-gcc-4.2.1':
 execvp: No such file or directory


 Any help would be most welcome!

 Thanks in advance,



 Guido

 --
 Astrology... just a bunch of Taurus.

 http://vanhoecke.org ... and go2 places!

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


Re: [MonoTouch] Suggestion: Would really love a dot MonoTouch file :)

2012-04-27 Thread Jeff Stedfast
Hi,

For the upcoming MonoDevelop 3.0 release, I've implemented support for
Microsoft's Portable Library projects which Mono4Android and MonoTouch
projects will be able to reference.

This solves the problem you are facing in a much simpler and more robust
way.

Hope that helps,

Jeff

On Fri, Apr 27, 2012 at 12:59 AM, Pure Krome 
pure.kr...@world-domination.com.au wrote:

 Hi folks,

 I've found that working in Mono-Develop- isn't as fast as working in Visual
 Studio 2010. That's fine. So I've been doing my Tests (xUnit) and class
 libraries in VS2010. Commit to GitHub/BitBucket.

 Now, I switch over to my Mac, pull latest.

 My MonoTouch Iphone application has it's own specific targetting. Also, I
 can't reference the normal .NET 4.0 targetted class library projects.

 As such, I've had to do some hacky crapy stuff.

 For each project and solution, in my solution .. I have a second copy which
 targets the IOS platform. So if i have a single class library project that
 target's .NET 4.0 .. i have a second .proj file that targets the
 MonoForIPhone framework / compile target: Library .. and INCLUDES all those
 same files (from the normal .NET 4.0 .proj) into this.

 Works great, but it a PITA. Especially if i add/remove/rename some files in
 the .NET 4.0 targetted proj file and forget to 'update/refresh' the IOS
 one.

 So .. It would be -really really awesome- if we could include a .MonoTouch
 (dot monotouch) file into the root folder .. just like how I have a
 .gitignore file in there.

 This file can list some simple info like

 myapplication.classlibrary.proj MonoForIPhone
 myapplication.tests.proj MonoForIPhone

 so this would say, those two projects .. they should target
 MonoForIPhonewhen opened up in MonoDevelop.

 This way, I wouldn't need to have a 2nd IOS proj file for every proj i have
 .. and a 2nd sln file for every 2nd IOS proj file i've had to make.

 CONS.
 But but but! There is a good reason it's targetting a different framework.
 Mono/.NET 4.0 framework is not the same as MonoForIPhone framework.

 Yep. 150% agreed. But I'm very -happy- with that risk. Meaning, if I'm
 dumb enough to compile my project against .NET 4.0 with some code that
 doesn't exist in the MonoForIPhone framework .. and when I open up that
 proj
 and MonoTouch see's the .MonoTouch file, converts the target framework to
 MonoForIPhone and compile errors. I'm kewl with that. 100% completely.
 Fully
 acceptable.

 So - good idea/Bad idea?

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Suggestion-Would-really-love-a-dot-MonoTouch-file-tp4591784p4591784.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] Opening XIB exception: Error updating Objective-C type information. Did not get project info

2012-04-25 Thread Jeff Stedfast
Hi Miljenko,

No, there is no designer with MonoDevelop 2.9.4, but there is with 2.9.5
which was just released last night.

Hope that helps,

Jeff

On Wed, Apr 25, 2012 at 1:43 AM, Miljenko Cvjetko mcvje...@holisticware.net
 wrote:

  Hi Jeff


 On 4/23/12 5:29 PM, Jeff Stedfast wrote:

 Hi Miljenko,

 Could you try MonoDevelop 2.8.8.4 or 2.9.4? The version of MonoDevelop
 that you are running is basically MonoDevelop 2.8.6 + the new resolver
 changes, but not many of the Xcode sync changes that went into 2.8.8.x.

 Just noticed! There is no Designer for axml in 2.9.4?? Or am I missing
 something?

 regards

 mel


  You could also try 2.9.4, although I think that also lacks some fixes to
 Xcode syncing (we're hoping to release a 2.9.5 with all of the latest fixes
 this week, but we've been blocking on some Mono4Android fixes).

 Hope that helps,

  Jeff

 On Mon, Apr 23, 2012 at 8:19 AM, Miljenko Cvjetko 
 mcvje...@holisticware.net wrote:
 
  Hi
 
  When I'm trying to open completely new project xi file I et this error:
  An error has occurred
  Error updating Objective-C type information. Did not get project info
 
  System.Exception: Did not get project info
  at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.UpdateTypes
 (IProgressMonitor monitor) [0x0002a] in
 /Users/builder/data/lanes/monodevelop-mac-designer-resolver/cc6125e2/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:384
 
 
  thx
 
  mel
 
 
  MonoDevelop 2.9.2
  Installation UUID: 47d0428b-6935-4300-9da5-3c54402b91d9
  Runtime:
  Mono 2.10.9 (tarball Tue Apr 17 18:59:12 EDT 2012)
  GTK 2.24.10
  GTK# (2.12.0.0)
  Apple Developer Tools:
  Xcode 4.2.1 (834)
  Build 4D502
  Monotouch: 5.2.11 (Evaluation)
  Mono for Android: 4.0.6.52253989 (Evaluation)
  Build information:
  Release ID: 20901000
  Git revision: c8559941e15171aa901e6070149fd037cf5761f2
  Build date: 2012-03-22 20:06:53+
  Xamarin addins: cc6125e2f778ac541d83affa3380e9e58247f4a5
  Operating System:
  Mac OS X 10.7.3
  Darwin mc.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41
 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
  Loaded assemblies:
 
 
  --
  Miljenko Cvjetko dipl.ing. ET
 Direktor/CEO
 Projektant rješenja/Solution Architect
 Razvojni programer/Senior developer
 Voditelj projekta/Project Manager
 
  IX južna obala 13
  Kajzerica Zagreb
  T: 385 1 777
  M: 385 91 557 447 3
  F: 385 1 7779556
  e: mcvje...@holisticware.net
  w: http://www.holisticware.net
 
  ___
  MonoTouch mailing list
  MonoTouch@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/monotouch



 --
 Miljenko Cvjetko dipl.ing. ET
   Direktor/CEO
   Projektant rješenja/Solution Architect  
   Razvojni programer/Senior developer
   Voditelj projekta/Project Manager

 IX južna obala 13
 Kajzerica Zagreb
 T: 385 1 777
 M: 385 91 557 447 3
 F: 385 1 7779556
 e: mcvje...@holisticware.net
 w: http://www.holisticware.net


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


Re: [MonoTouch] Opening XIB exception: Error updating Objective-C type information. Did not get project info

2012-04-23 Thread Jeff Stedfast
Hi Miljenko,

Could you try MonoDevelop 2.8.8.4 or 2.9.4? The version of MonoDevelop that
you are running is basically MonoDevelop 2.8.6 + the new resolver changes,
but not many of the Xcode sync changes that went into 2.8.8.x.

You could also try 2.9.4, although I think that also lacks some fixes to
Xcode syncing (we're hoping to release a 2.9.5 with all of the latest fixes
this week, but we've been blocking on some Mono4Android fixes).

Hope that helps,

Jeff

On Mon, Apr 23, 2012 at 8:19 AM, Miljenko Cvjetko mcvje...@holisticware.net
wrote:

 Hi

 When I'm trying to open completely new project xi file I et this error:
 An error has occurred
 Error updating Objective-C type information. Did not get project info

 System.Exception: Did not get project info
 at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.UpdateTypes
(IProgressMonitor monitor) [0x0002a] in
/Users/builder/data/lanes/monodevelop-mac-designer-resolver/cc6125e2/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:384


 thx

 mel


 MonoDevelop 2.9.2
 Installation UUID: 47d0428b-6935-4300-9da5-3c54402b91d9
 Runtime:
 Mono 2.10.9 (tarball Tue Apr 17 18:59:12 EDT 2012)
 GTK 2.24.10
 GTK# (2.12.0.0)
 Apple Developer Tools:
 Xcode 4.2.1 (834)
 Build 4D502
 Monotouch: 5.2.11 (Evaluation)
 Mono for Android: 4.0.6.52253989 (Evaluation)
 Build information:
 Release ID: 20901000
 Git revision: c8559941e15171aa901e6070149fd037cf5761f2
 Build date: 2012-03-22 20:06:53+
 Xamarin addins: cc6125e2f778ac541d83affa3380e9e58247f4a5
 Operating System:
 Mac OS X 10.7.3
 Darwin mc.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41
PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
 Loaded assemblies:


 --
 Miljenko Cvjetko dipl.ing. ET
Direktor/CEO
Projektant rješenja/Solution Architect
Razvojni programer/Senior developer
Voditelj projekta/Project Manager

 IX južna obala 13
 Kajzerica Zagreb
 T: 385 1 777
 M: 385 91 557 447 3
 F: 385 1 7779556
 e: mcvje...@holisticware.net
 w: http://www.holisticware.net

 ___
 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] Monodevelop will no longer allow me to edit a XIB

2012-04-20 Thread Jeff Stedfast
Hi Dermot,

The Xcode sync project is stored in the 'obj' directory of the MonoTouch
project.

I suspect that deleting that won't matter, though, because MonoDevelop
generally deletes and re-syncs everything when you launch Xcode on a xib.

I would suggest taking a look at your ApolloApp.GenreTableController class
and make sure that it has a [Register] attribute on it. That's why it can't
map that C# class to Objective-C, because it doesn't know what the
Objective-C name should be.

Hope that helps,

Jeff

On Fri, Apr 20, 2012 at 2:49 AM, dermotos m...@dermotos.com wrote:

 I've tried deleting the obj folder but no luck. As for sending the project.
 It's quite a large project and is nearing completion after over a years
 development, so im not comfortable sending the source code of the entire
 project. If there are any parts that you think could help diagnose the
 issue
 I would be more than happy to send them on.

 As for a work-around, I remember noting a while back that Monodevelop
 generates a companion xCode project so interface builder can work with
 that,
 but I cant find it on my system. Is this still the case, and where would I
 find it? Perhaps deleting this will help me, as I've already restored the
 offending xib file from a backup and its still not working

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Monodevelop-will-no-longer-allow-me-to-edit-a-XIB-tp4570808p4573026.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] Monodevelop will no longer allow me to edit a XIB

2012-04-19 Thread Jeff Stedfast
Hi Dermot,

Someone else just reported this the other day too.

https://bugzilla.xamarin.com/show_bug.cgi?id=4467

Would it be possible to get a copy of your project (while it still has this
problem) so that I could take a look and try to figure out what is wrong?

Thanks!

Jeff

On Thu, Apr 19, 2012 at 8:57 AM, dermotos m...@dermotos.com wrote:

 I've started receiving the error below when attempting to edit a xib. I've
 tried to restore it from Time Machine but the same error keeps coming up.
 There must be some hidden file somewhere that is corrupt. Where can i
 find/fix this?

 Error updating Xcode project. Could not generate outlet
 'genreTableController' in class 'ApolloApp.LibraryBrowser' as its type
 'ApolloApp.GenreTableController' could not be resolved to Obj-C

 MonoDevelop.MacDev.ObjCIntegration.ObjectiveCGenerationException: Could not
 generate outlet 'genreTableController' in class 'ApolloApp.LibraryBrowser'
 as its type 'ApolloApp.GenreTableController' could not be resolved to Obj-C
  at MonoDevelop.MacDev.ObjCIntegration.NSObjectTypeInfo.GenerateObjcType
 (System.String directory, System.String[] frameworks) [0x001e8] in

 /Users/builder/data/lanes/monodevelop-mac-2.8.8.4/cc9fe83c/source/monodevelop/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectTypeInfo.cs:159
  at MonoDevelop.MacDev.XcodeSyncing.XcodeSyncedType.SyncOut
 (IProgressMonitor monitor, MonoDevelop.MacDev.XcodeSyncing.XcodeSyncContext
 context) [0x0001b] in

 /Users/builder/data/lanes/monodevelop-mac-2.8.8.4/cc9fe83c/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeSyncedType.cs:79
  at MonoDevelop.MacDev.XcodeSyncing.XcodeMonitor.UpdateProject
 (IProgressMonitor monitor, System.Collections.Generic.List`1 allItems,
 MonoDevelop.MacDev.XcodeIntegration.XcodeProject emptyProject) [0x002e3] in

 /Users/builder/data/lanes/monodevelop-mac-2.8.8.4/cc9fe83c/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeMonitor.cs:152
  at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.UpdateXcodeProject
 (IProgressMonitor monitor) [0x0] in

 /Users/builder/data/lanes/monodevelop-mac-2.8.8.4/cc9fe83c/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:392

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Monodevelop-will-no-longer-allow-me-to-edit-a-XIB-tp4570808p4570808.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] btouch Binding of Blocks? (I know its in the docs, but having a little trouble)

2012-04-17 Thread Jeff Stedfast
I just look for symbols with have :: in the name (such as
std::basic_stringchar,
std::char_traitschar, std::allocatorchar ::~basic_string()) and know
that those are C++ symbols :-)

Always settings IsCxx might work, but may bring in more stuff than using
the C linker would and might also be slower. I'm not really sure to be
honest.

Jeff

On Mon, Apr 16, 2012 at 9:26 PM, Dermot O Sullivan m...@dermotos.com wrote:

 Sir, you are a legend. All working now. Thanks for your help! Out of
 interest, when would you know when to use IsCxx? Does it cause any harm to
 use it if the original library wasn't c++ or if I didnt know what it was
 written in?
 Eitherway I will post the binding project to my github 
 github.com/dermotoslater today or tomorrow for anyone else who comes across 
 this.


 On Tue, Apr 17, 2012 at 5:50 AM, Jeff Stedfast j...@xamarin.com wrote:

 Hi Dermot,

 From the build log, it looks like the symbols it couldn't find originally
 were c++ symbols.

 Try:

 [assembly: LinkWith (libBump.a, LinkTarget.ArmV7 | LinkTarget.ArmV6 |
 LinkTarget.Simulator, ForceLoad = true, Frameworks = CFNetwork
 CoreLocation AudioToolbox, IsCxx = true)]

 Does that help at all?

 Jeff


 On Mon, Apr 16, 2012 at 6:28 AM, Dermot O Sullivan m...@dermotos.comwrote:

 Hi Jeff,

 I really appreciate you taking the time to clarify that. I think im
 almost there, but still cant quite get it to work.
 I have bound the blocks as you described (see the ApiDefinition.cs file
 contents below).

 When I build this project as is, I get  Bump3Binding.dll file that is
 23.1MB. So far so good.
 I attempt to use this in my project, everything I need seems to be
 coming up in intellisense, but when I build, I get an error stating:

 *ld: symbol(s) not found for architecture i386*
 *collect2: ld returned 1 exit status*
 *
 *
 *mtouch exited with code 1*
 *
 *
 *(full build output available here: http://pastebin.com/Hj2DZt0L )*
 *
 *
 I imagine this is something to do with the building of the actual
 library, or more specifically, the linking with its required libraries,
 which are described in the bump api documentation like so:

 *Ensure that your target is linked against libBump.a,
 CFNetwork.framework, CoreLocation.framework, and AudioToolbox.framework.
 *
 *
 *
 So if I go back to my Binding project and change the linkswith.cs file
 from:

 [assembly: LinkWith (libBump.a, LinkTarget.ArmV7 | LinkTarget.ArmV6 |
 LinkTarget.Simulator, ForceLoad = true )]

 to

 [assembly: LinkWith (libBump.a, LinkTarget.ArmV7 | LinkTarget.ArmV6 |
 LinkTarget.Simulator, ForceLoad = true, Frameworks = CFNetwork
 CoreLocation AudioToolbox )]


 then I get Build Successful but the dll is only 3.0KB and isn't a
 valid dll file.


 Any tips on where I might be going wrong?




 ApiDefinition.cs file: (full file available here:
 http://pastebin.com/bFh3csSf )

 namespace Bump3Binding
 {

 delegate void BumpEventBlock(BumpEvent evt);
 delegate void BumpMatchBlock(ulong proposedChannelID);
 .
 .
 .

 [BaseType (typeof (NSObject))]
 interface BumpClient{

 [Export(BumpEventBlock:)]
 void BumpEvent(BumpEventBlock evt);

 [Export(BumpEventBlock:)]
 void BumpMatchBlock(ulong proposedChannelID);
 .
 .
 .


 }







 On Sat, Apr 14, 2012 at 12:45 AM, Jeff Stedfast j...@xamarin.comwrote:

 Hi Dermot,

 Let me try to better explain how blocks are bound...

 On Thu, Apr 12, 2012 at 10:22 PM, dermotos m...@dermotos.com wrote:

 Im trying to bind the latest version of the bump api (version 3).
 This version uses blocks as callbacks when events occur.

 The header file, located here:

 https://github.com/bumptech/bump-api-ios/blob/master/libBump/BumpClient.h
 defines the blocks like this:

 /* called after a Bump or No Match is detected. */
 typedef void (^BumpEventBlock)(bump_event event);

 /* called after a Match has occurred. */
 typedef void (^BumpMatchBlock)(BumpChannelID proposedChannelID);

 /* called after both parties to a Match have confirmed the proposed
 Channel
 */
 typedef void (^BumpChannelConfirmedBlock)(BumpChannelID channelID);

 How do I bind these?

 The documentation on this describes how to bind a block like this:

 - (void) enumerateObjectsUsingBlock:(void (^)(id obj, BOOL *stop) block



 Think of the above as a method definition (named
 enumerateObjectsUsingBlock) that takes as a parameter an anonymous 
 delegate.

 Anonymous Block syntax is: return-type (^) (parameter-list)
 callback-name

 In this case block is the callback-name token. This is just the
 variable name of the delegate.




 like this:

 // This declares the callback signature for the block:
 delegate void NSSetEnumerator (NSObject obj, ref bool stop)


 What the author of the documentation did here was to separate the block
 from the method definition so that he could name it.

 The above C# delegate maps to: void (^) (id obj, bool *stop);



 // Later, inside your definition, do this:
 [Export (enumerateObjectUsingBlock:)]
 void Enumerate (NSSetEnumerator enum)


 I cant really

Re: [MonoTouch] btouch Binding of Blocks? (I know its in the docs, but having a little trouble)

2012-04-16 Thread Jeff Stedfast
Hi Dermot,

From the build log, it looks like the symbols it couldn't find originally
were c++ symbols.

Try:

[assembly: LinkWith (libBump.a, LinkTarget.ArmV7 | LinkTarget.ArmV6 |
LinkTarget.Simulator, ForceLoad = true, Frameworks = CFNetwork
CoreLocation AudioToolbox, IsCxx = true)]

Does that help at all?

Jeff

On Mon, Apr 16, 2012 at 6:28 AM, Dermot O Sullivan m...@dermotos.com wrote:

 Hi Jeff,

 I really appreciate you taking the time to clarify that. I think im almost
 there, but still cant quite get it to work.
 I have bound the blocks as you described (see the ApiDefinition.cs file
 contents below).

 When I build this project as is, I get  Bump3Binding.dll file that is
 23.1MB. So far so good.
 I attempt to use this in my project, everything I need seems to be coming
 up in intellisense, but when I build, I get an error stating:

 *ld: symbol(s) not found for architecture i386*
 *collect2: ld returned 1 exit status*
 *
 *
 *mtouch exited with code 1*
 *
 *
 *(full build output available here: http://pastebin.com/Hj2DZt0L )*
 *
 *
 I imagine this is something to do with the building of the actual library,
 or more specifically, the linking with its required libraries, which are
 described in the bump api documentation like so:

 *Ensure that your target is linked against libBump.a,
 CFNetwork.framework, CoreLocation.framework, and AudioToolbox.framework.*
 *
 *
 So if I go back to my Binding project and change the linkswith.cs file
 from:

 [assembly: LinkWith (libBump.a, LinkTarget.ArmV7 | LinkTarget.ArmV6 |
 LinkTarget.Simulator, ForceLoad = true )]

 to

 [assembly: LinkWith (libBump.a, LinkTarget.ArmV7 | LinkTarget.ArmV6 |
 LinkTarget.Simulator, ForceLoad = true, Frameworks = CFNetwork
 CoreLocation AudioToolbox )]


 then I get Build Successful but the dll is only 3.0KB and isn't a valid
 dll file.


 Any tips on where I might be going wrong?




 ApiDefinition.cs file: (full file available here:
 http://pastebin.com/bFh3csSf )

 namespace Bump3Binding
 {

 delegate void BumpEventBlock(BumpEvent evt);
 delegate void BumpMatchBlock(ulong proposedChannelID);
 .
 .
 .

 [BaseType (typeof (NSObject))]
 interface BumpClient{

 [Export(BumpEventBlock:)]
 void BumpEvent(BumpEventBlock evt);

 [Export(BumpEventBlock:)]
 void BumpMatchBlock(ulong proposedChannelID);
 .
 .
 .


 }







 On Sat, Apr 14, 2012 at 12:45 AM, Jeff Stedfast j...@xamarin.com wrote:

 Hi Dermot,

 Let me try to better explain how blocks are bound...

 On Thu, Apr 12, 2012 at 10:22 PM, dermotos m...@dermotos.com wrote:

 Im trying to bind the latest version of the bump api (version 3).
 This version uses blocks as callbacks when events occur.

 The header file, located here:
 https://github.com/bumptech/bump-api-ios/blob/master/libBump/BumpClient.h
 defines the blocks like this:

 /* called after a Bump or No Match is detected. */
 typedef void (^BumpEventBlock)(bump_event event);

 /* called after a Match has occurred. */
 typedef void (^BumpMatchBlock)(BumpChannelID proposedChannelID);

 /* called after both parties to a Match have confirmed the proposed
 Channel
 */
 typedef void (^BumpChannelConfirmedBlock)(BumpChannelID channelID);

 How do I bind these?

 The documentation on this describes how to bind a block like this:

 - (void) enumerateObjectsUsingBlock:(void (^)(id obj, BOOL *stop) block



 Think of the above as a method definition (named
 enumerateObjectsUsingBlock) that takes as a parameter an anonymous delegate.

 Anonymous Block syntax is: return-type (^) (parameter-list)
 callback-name

 In this case block is the callback-name token. This is just the
 variable name of the delegate.




 like this:

 // This declares the callback signature for the block:
 delegate void NSSetEnumerator (NSObject obj, ref bool stop)


 What the author of the documentation did here was to separate the block
 from the method definition so that he could name it.

 The above C# delegate maps to: void (^) (id obj, bool *stop);



 // Later, inside your definition, do this:
 [Export (enumerateObjectUsingBlock:)]
 void Enumerate (NSSetEnumerator enum)


 I cant really follow this for the bump binding.
 Does typedef affect how I bind this?
 Do I need to somehow declare BumpChannelConfirmedBlock as a type? how
 about
 BumpChannelID?


 BumpChannelIID is defined as: typedef unsigned long long BumpChannelID;

 In C#, this would be UInt64 or ulong.

  So, if we are to bind the following ObjC blocks;

 /* called after a Bump or No Match is detected. */
 typedef void (^BumpEventBlock)(bump_event event);

 /* called after a Match has occurred. */
 typedef void (^BumpMatchBlock)(BumpChannelID proposedChannelID);

 /* called after both parties to a Match have confirmed the proposed
 Channel
 */
 typedef void (^BumpChannelConfirmedBlock)(BumpChannelID channelID);


 This is what they would look like in C#:

 delegate void BumpEventBlock (bump_event event);
 delegate void BumpMatchBlock (ulong proposedChannelID);
 delegate void

Re: [MonoTouch] btouch Binding of Blocks? (I know its in the docs, but having a little trouble)

2012-04-13 Thread Jeff Stedfast
Hi Dermot,

Let me try to better explain how blocks are bound...

On Thu, Apr 12, 2012 at 10:22 PM, dermotos m...@dermotos.com wrote:

 Im trying to bind the latest version of the bump api (version 3).
 This version uses blocks as callbacks when events occur.

 The header file, located here:
 https://github.com/bumptech/bump-api-ios/blob/master/libBump/BumpClient.h
 defines the blocks like this:

 /* called after a Bump or No Match is detected. */
 typedef void (^BumpEventBlock)(bump_event event);

 /* called after a Match has occurred. */
 typedef void (^BumpMatchBlock)(BumpChannelID proposedChannelID);

 /* called after both parties to a Match have confirmed the proposed Channel
 */
 typedef void (^BumpChannelConfirmedBlock)(BumpChannelID channelID);

 How do I bind these?

 The documentation on this describes how to bind a block like this:

 - (void) enumerateObjectsUsingBlock:(void (^)(id obj, BOOL *stop) block



Think of the above as a method definition (named
enumerateObjectsUsingBlock) that takes as a parameter an anonymous delegate.

Anonymous Block syntax is: return-type (^) (parameter-list)
callback-name

In this case block is the callback-name token. This is just the variable
name of the delegate.




 like this:

 // This declares the callback signature for the block:
 delegate void NSSetEnumerator (NSObject obj, ref bool stop)


What the author of the documentation did here was to separate the block
from the method definition so that he could name it.

The above C# delegate maps to: void (^) (id obj, bool *stop);



 // Later, inside your definition, do this:
 [Export (enumerateObjectUsingBlock:)]
 void Enumerate (NSSetEnumerator enum)


 I cant really follow this for the bump binding.
 Does typedef affect how I bind this?
 Do I need to somehow declare BumpChannelConfirmedBlock as a type? how about
 BumpChannelID?


BumpChannelIID is defined as: typedef unsigned long long BumpChannelID;

In C#, this would be UInt64 or ulong.

So, if we are to bind the following ObjC blocks;

/* called after a Bump or No Match is detected. */
typedef void (^BumpEventBlock)(bump_event event);

/* called after a Match has occurred. */
typedef void (^BumpMatchBlock)(BumpChannelID proposedChannelID);

/* called after both parties to a Match have confirmed the proposed Channel
*/
typedef void (^BumpChannelConfirmedBlock)(BumpChannelID channelID);


This is what they would look like in C#:

delegate void BumpEventBlock (bump_event event);
delegate void BumpMatchBlock (ulong proposedChannelID);
delegate void BumpChannelConfirmedBlock (ulong channelID);


How do I know to bind them like this? Well, here's what *I* do:

I look at the ObjC definition:

typedef void (^BumpMatchBlock) (BumpChannelID proposedChannelID);

In ObjC, like C and even C#, all typedef does is alias a type. Function
pointers in C and Blocks in ObjC need to be typedef'd if you are going to
use them like named delegates (as opposed to anonymous delegates).

So, our revised syntax for named blocks is this:

typedef return-type (^delegate-name) (parameter-list);

Pretty straight forward now, right?

Now it's easy to just do substitution and we get:

delegate void BumpMatchBlock (BumpChannelID proposedChannelId);

Since BumpChannelID maps to a ulong in C#, we can do that substitution and
we end up with:

delegate void BumpMatchBlock (ulong proposedChannelID);


Hope that helps clear things up,

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


Re: [MonoTouch] SharpZipLib performances

2012-04-12 Thread Jeff Stedfast
I've not tested performance, but another option might be to try Ionic.Zip
and see how that fares.

Jeff

On Thu, Apr 12, 2012 at 6:13 PM, johnHolmes francesco.colo...@gmail.comwrote:

 Hi,

 In my app I need to unzip a big file (~200mb) when the application run for
 the first time after installation. The first version of the app, currently
 on the appstore, uses an external static lib, which perform very well. To
 do
 the unzip job on the iPhone4 it takes ~1min. acceptable.

 Due to my recent porting of the app on the android side with M4A, I
 decided to use SharpZipLib for zip/unzip the file. This because I want to
 have less code to mantain. Infact SharpZipLib runs fine either on MT and
 M4A.

 The problem is that SharpZipLib is performing very BAD! On iPhone4S it
 takes
 +3min to unzip a 200mb file.

 Any hint or suggestion to accomplish this task quickly using SharpZipLib or
 any other zip library?

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/SharpZipLib-performances-tp4553235p4553235.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] SharpZipLib performances

2012-04-12 Thread Jeff Stedfast
Heh, I was gonna say I'm pretty sure Ionic.Zip would build ok for MonoDroid
since it builds for MonoTouch (they use the same subset of the class
libraries), but I guess if it doesn't have a stream API, then that makes a
damn good argument as to why you can't use it ;-(

Oh well, it was worth a shot!

Jeff

On Thu, Apr 12, 2012 at 6:37 PM, johnHolmes francesco.colo...@gmail.comwrote:

 If I'm not wrong the issue with Ionic.Zip was related to the missing
 support
 of unzipping file streams.

 In M4A I must deal with streams.

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/SharpZipLib-performances-tp4553235p4553291.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 obtain message body

2012-03-30 Thread Jeff Stedfast
Hi Rafael,

Try this:

void msgSelected (DialogViewController dvc, UITableView tv,
NSIndexPath path)
{
var body = ((MessageElement) dvc.Root[path.Section][path.Row]).Body;
}

Hope that helps,

Jeff

On Thu, Mar 29, 2012 at 7:45 PM, rafaelc rafaelc...@hotmail.com wrote:

 Hello, I´m using MessageElement class, using this code:

 while(dr.Read())
{
var line = new MessageElement (msgSelected)
 {
Sender = dr.GetString (1),
Subject = ,
Body = dr.GetString (2),
Date = dr.GetDateTime (3),
NewFlag = false,
MessageCount = 0
};
mensajesSection.Add(line);
}


 I want to know how to show the complete body using the method

 void msgSelected (DialogViewController dvc, UITableView tv, NSIndexPath
 path)
 {
// The message was selected
// here I don´t know how to obtain the message body
   // I tried this

   //in debug mode I found Body property in tv.CellAt(path).Subviews[0]

string msg = tv.CellAt(path).Subviews[0].Body;   // compiler error

 }



 regards


 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/How-to-obtain-message-body-tp4517449p4517449.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] Header file for view controller not created

2012-03-29 Thread Jeff Stedfast
Hi Kroan,

When I said it was fixed in 2.8.8, I meant 2.8.8.3, not 2.8.8.1 (which was
already in beta before I even heard of the issue).

Could you try 2.8.8.3? This version seems to fix it for people who have
reported this problem.

Jeff
On Mar 29, 2012 8:51 AM, Kroan kvinc...@gmail.com wrote:

 Hello,

 I have the same problem as Marcus. Shortly after the last update there are
 no header files for my .xib files anymore.

 I tried the build you posted, but unfortunately this doesn't solve the
 problem. It actually makes matter worse; it doesn't even generate any
 header
 file anymore. Not even the default (?) UIView.h.

 I removed the obj and bin folder multiple times and also restarted the
 system several times, without success. Further more I also tried to revert
 my project to the state from which I know the header files were still being
 generated (through SVN). Unfortunately that didn't help either.

 Lastly, I checked that all xib-files have a corresponding C# class. I have
 to note though that they don't have the same name, since all my C# classes
 are Universal Controllers. (i.e.: Login.cs, Login_iPad.xib and
 Login_iPhone.xib . These are created through the New File-wizard of
 MonoDevelop)

 Versions:
 MonoDevelop 2.8.6.5 (or 2.8.8.1 if I install the version you linked)
 Mono 2.10.8
 XCode 4.2
 Mac OS X: 10.7.3

 Any help would be much appreciated. Thanks in advance.

 Sincerly,
 Vincent Jünemann


 Jeff Stedfast wrote
 
  Hi Marcus,
 
  Do you have a C# class with the same name as the .xib?
 
  If not, then this isn't a bug; MonoDevelop doesn't create header files
  from
  .xibs, it creates them from C# classes.
 
  If you do have an associated C# class, then you are likely hitting the
  same
  bug others have reported. This bug seems to be some sort of race
 condition
  because neither I nor anyone in our QA department has been able to
  reproduce this yet. I've implemented a possible fix for 2.8.8 but have no
  way of testing that it solves it.
 
  If you'd like, try downloading and installing this build of MonoDevelop:
 
 
 http://files.xamarin.com/~jeff/MonoDevelop-7f7438379ac6335725b411d0a0f96b817c626f7b.dmg
 
  Hope that helps,
 
  Jeff
 
  On Wed, Mar 7, 2012 at 7:46 AM, ozRocker lt;marcusmilne@gt; wrote:
 
  This question is the same as this Missing h-files and Assistant Editor
  not
  working because of it (monoTouch/MonoDevelop) but none of the answers
  work
  for me. When I double-click the XIB file from monodevelop no header file
  is
  created in XCode 4.2, even after I edit the XIB in Xcode and re-save, or
  when I quit Xcode and monodevelop and re-open. I have expanded every
  folder
  in Xcode and there is no ViewController.h file anywhere.
 
  --
  View this message in context:
 
 http://monotouch.2284126.n4.nabble.com/Header-file-for-view-controller-not-created-tp4453165p4453165.html
  Sent from the MonoTouch mailing list archive at Nabble.com.
  ___
  MonoTouch mailing list
  MonoTouch@.ximian
  http://lists.ximian.com/mailman/listinfo/monotouch
 
 
  ___
  MonoTouch mailing list
  MonoTouch@.ximian
  http://lists.ximian.com/mailman/listinfo/monotouch
 


 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Header-file-for-view-controller-not-created-tp4453165p4515331.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] Header file for view controller not created

2012-03-29 Thread Jeff Stedfast
Ah, now I see what you meant by 2.8.8.1. That was just mis-versioned.

Please try 2.8.8.3, though.

Jeff
On Mar 29, 2012 8:51 AM, Kroan kvinc...@gmail.com wrote:

 Hello,

 I have the same problem as Marcus. Shortly after the last update there are
 no header files for my .xib files anymore.

 I tried the build you posted, but unfortunately this doesn't solve the
 problem. It actually makes matter worse; it doesn't even generate any
 header
 file anymore. Not even the default (?) UIView.h.

 I removed the obj and bin folder multiple times and also restarted the
 system several times, without success. Further more I also tried to revert
 my project to the state from which I know the header files were still being
 generated (through SVN). Unfortunately that didn't help either.

 Lastly, I checked that all xib-files have a corresponding C# class. I have
 to note though that they don't have the same name, since all my C# classes
 are Universal Controllers. (i.e.: Login.cs, Login_iPad.xib and
 Login_iPhone.xib . These are created through the New File-wizard of
 MonoDevelop)

 Versions:
 MonoDevelop 2.8.6.5 (or 2.8.8.1 if I install the version you linked)
 Mono 2.10.8
 XCode 4.2
 Mac OS X: 10.7.3

 Any help would be much appreciated. Thanks in advance.

 Sincerly,
 Vincent Jünemann


 Jeff Stedfast wrote
 
  Hi Marcus,
 
  Do you have a C# class with the same name as the .xib?
 
  If not, then this isn't a bug; MonoDevelop doesn't create header files
  from
  .xibs, it creates them from C# classes.
 
  If you do have an associated C# class, then you are likely hitting the
  same
  bug others have reported. This bug seems to be some sort of race
 condition
  because neither I nor anyone in our QA department has been able to
  reproduce this yet. I've implemented a possible fix for 2.8.8 but have no
  way of testing that it solves it.
 
  If you'd like, try downloading and installing this build of MonoDevelop:
 
 
 http://files.xamarin.com/~jeff/MonoDevelop-7f7438379ac6335725b411d0a0f96b817c626f7b.dmg
 
  Hope that helps,
 
  Jeff
 
  On Wed, Mar 7, 2012 at 7:46 AM, ozRocker lt;marcusmilne@gt; wrote:
 
  This question is the same as this Missing h-files and Assistant Editor
  not
  working because of it (monoTouch/MonoDevelop) but none of the answers
  work
  for me. When I double-click the XIB file from monodevelop no header file
  is
  created in XCode 4.2, even after I edit the XIB in Xcode and re-save, or
  when I quit Xcode and monodevelop and re-open. I have expanded every
  folder
  in Xcode and there is no ViewController.h file anywhere.
 
  --
  View this message in context:
 
 http://monotouch.2284126.n4.nabble.com/Header-file-for-view-controller-not-created-tp4453165p4453165.html
  Sent from the MonoTouch mailing list archive at Nabble.com.
  ___
  MonoTouch mailing list
  MonoTouch@.ximian
  http://lists.ximian.com/mailman/listinfo/monotouch
 
 
  ___
  MonoTouch mailing list
  MonoTouch@.ximian
  http://lists.ximian.com/mailman/listinfo/monotouch
 


 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Header-file-for-view-controller-not-created-tp4453165p4515331.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] Header file for view controller not created

2012-03-29 Thread Jeff Stedfast
Hi Kroan,

I've been saying any day now for about 2 weeks, but we keep finding
Android and/or Windows updater bugs that need fixing before we can push a
final release.

I think we've got everything resolved now, so probably by early-mid next
week. I think the plan is to release a 2.8.8.4 to beta tonight or tomorrow
and then a final release to stable once QA finishes banging on it.

Jeff

On Thu, Mar 29, 2012 at 11:00 AM, Kroan kvinc...@gmail.com wrote:

 Hello Jeff,

 I downloaded 2.8.8.3 (Beta) from the MonoDevelop site, and it seems to be
 working. (Also downgrading to 2.8.5 seemed to be working aswell). I removed
 the obj-folder to make sure that 2.8.8.3 would generate everything correct,
 even from scratch, and that seemed to be working aswell.

 I was pretty sure I did try going to the beta-version aswell, since I
 already had it downloaded.

 Anyway, the problem seems to be fixed.

 Do you have, by any chance, an ETA when this fix will be pushed into the
 stable release?

 Thanks for the help,
 Vincent Junemann


 Jeff Stedfast wrote
 
  Hi Kroan,
 
  When I said it was fixed in 2.8.8, I meant 2.8.8.3, not 2.8.8.1 (which
 was
  already in beta before I even heard of the issue).
 
  Could you try 2.8.8.3? This version seems to fix it for people who have
  reported this problem.
 
  Jeff
  On Mar 29, 2012 8:51 AM, Kroan lt;kvince83@gt; wrote:
 
  Hello,
 
  I have the same problem as Marcus. Shortly after the last update there
  are
  no header files for my .xib files anymore.
 
  I tried the build you posted, but unfortunately this doesn't solve the
  problem. It actually makes matter worse; it doesn't even generate any
  header
  file anymore. Not even the default (?) UIView.h.
 
  I removed the obj and bin folder multiple times and also restarted the
  system several times, without success. Further more I also tried to
  revert
  my project to the state from which I know the header files were still
  being
  generated (through SVN). Unfortunately that didn't help either.
 
  Lastly, I checked that all xib-files have a corresponding C# class. I
  have
  to note though that they don't have the same name, since all my C#
  classes
  are Universal Controllers. (i.e.: Login.cs, Login_iPad.xib and
  Login_iPhone.xib . These are created through the New File-wizard of
  MonoDevelop)
 
  Versions:
  MonoDevelop 2.8.6.5 (or 2.8.8.1 if I install the version you linked)
  Mono 2.10.8
  XCode 4.2
  Mac OS X: 10.7.3
 
  Any help would be much appreciated. Thanks in advance.
 
  Sincerly,
  Vincent Jünemann
 
 
  Jeff Stedfast wrote
  
   Hi Marcus,
  
   Do you have a C# class with the same name as the .xib?
  
   If not, then this isn't a bug; MonoDevelop doesn't create header files
   from
   .xibs, it creates them from C# classes.
  
   If you do have an associated C# class, then you are likely hitting the
   same
   bug others have reported. This bug seems to be some sort of race
  condition
   because neither I nor anyone in our QA department has been able to
   reproduce this yet. I've implemented a possible fix for 2.8.8 but have
  no
   way of testing that it solves it.
  
   If you'd like, try downloading and installing this build of
  MonoDevelop:
  
  
 
 http://files.xamarin.com/~jeff/MonoDevelop-7f7438379ac6335725b411d0a0f96b817c626f7b.dmg
  
   Hope that helps,
  
   Jeff
  
   On Wed, Mar 7, 2012 at 7:46 AM, ozRocker lt;marcusmilne@gt; wrote:
  
   This question is the same as this Missing h-files and Assistant
 Editor
   not
   working because of it (monoTouch/MonoDevelop) but none of the answers
   work
   for me. When I double-click the XIB file from monodevelop no header
  file
   is
   created in XCode 4.2, even after I edit the XIB in Xcode and re-save,
  or
   when I quit Xcode and monodevelop and re-open. I have expanded every
   folder
   in Xcode and there is no ViewController.h file anywhere.
  
   --
   View this message in context:
  
 
 http://monotouch.2284126.n4.nabble.com/Header-file-for-view-controller-not-created-tp4453165p4453165.html
   Sent from the MonoTouch mailing list archive at Nabble.com.
   ___
   MonoTouch mailing list
   MonoTouch@.ximian
   http://lists.ximian.com/mailman/listinfo/monotouch
  
  
   ___
   MonoTouch mailing list
   MonoTouch@.ximian
   http://lists.ximian.com/mailman/listinfo/monotouch
  
 
 
  --
  View this message in context:
 
 http://monotouch.2284126.n4.nabble.com/Header-file-for-view-controller-not-created-tp4453165p4515331.html
  Sent from the MonoTouch mailing list archive at Nabble.com.
  ___
  MonoTouch mailing list
  MonoTouch@.ximian
  http://lists.ximian.com/mailman/listinfo/monotouch
 
 
  ___
  MonoTouch mailing list
  MonoTouch@.ximian
  http://lists.ximian.com/mailman/listinfo/monotouch
 


 --
 View this message in context:
 http://monotouch.2284126.n4

Re: [MonoTouch] [monotouch] how can you pass values between 2 tableviews

2012-03-29 Thread Jeff Stedfast
Hi sibzsangreal,

I'm not entirely clear on what exactly you want to do, but what you'll need
to do is to implement a UITableViewDelegate for tableview1 and implement
the RowSelected() method, where it could use the NSIndexPath into
tableview1's data model to extract the data item and then pass it along to
tableview2.

Hope that helps,

Jeff

On Thu, Mar 29, 2012 at 1:09 AM, sibzsangreal sibzsangr...@gmail.comwrote:

 hello sorry noob here- I'm trying to pass the selected value of tableview 1
 to tableview2 i only have them in 1 view controller i used Xcode to grab
 the
 tableviews and make connections i used mono touch to insert data into the
 table.

 I've been trying to use Xcode as they were the only one with tutorials but
 I'm afraid mixing Xcode with mono touch is disaster.. so I'm gonna ask you
 guys if you happen to know of a way to pass values.

 I've tried using a label but i can't get the data out of the table view so
 its still impossible to me- thanks every one in advance..

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/monotouch-how-can-you-pass-values-between-2-tableviews-tp4514494p4514494.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] Help displaying UISplitViewController from UIViewController

2012-03-29 Thread Jeff Stedfast
Hi Chris,

One possibility would be to wrap your ScreenStart view controller in a
UINavigationController. Then, in your Click() event handler, you could
push your DataSplitView.

e.g.:

ScreenStart _srcStart;  // declared at AppDelegate class level

AppDelegate.FinishedLaunching()
{
window = new UIWindow(UIScreen.MainScreen.Bounds);

_srcStart = new ScreenStart();
UINavigationController nav = new UINavigationController (_srcStart);

window.RootViewController = nav;
window.MakeKeyAndVisible();
}

Then...

DataSplitView dsView; // Declared at StartScreen class level

ScreenStart.btnShowData_Click()
{
if (dsView == null)
dsView = new DataSplitView();

NavigationController.PushViewController (dsView, true);
}


You'll notice that I moved your view controller declarations into the class
level. This is because you need to make sure that you have a managed
reference to your view controllers so that if/when the runtime tries to
re-surface your view controllers from native code, it can easily map to the
correct object (which it cannot do if you don't have a managed object).

Hope that helps,

Jeff

On Thu, Mar 29, 2012 at 12:16 PM, chris.s chris.steph...@innov8.co.ukwrote:

 Firstly, I'm very new to monotouch and still trying to get to grips with
 the
 concept of view controllers.

 I've got an app that has a custom UISplitViewController which works fine
 and
 displays as expected when assigned to UIWindow.RootViewController in my
 AppDelegate.

 But what I am trying to do is display a 'single screen' view at startup
 (for
 app logon) and then move to the split view when clicking a button on this
 first screen.

 I'll give some skeleton outlines of the relevant bits of code i'm using

 AppDelegate.FinishedLaunching()
 {
  window = new UIWindow(UIScreen.MainScreen.Bounds);
  ScreenStart _srcStart = new ScreenStart();
  window.RootViewController = ScreenStart;
  window.MakeKeyAndVisible();
 }

 then my split view class

 public class DataSplitView : UISplitViewController
 {
  protected ScreenDataHeader scrDH;
  protected ScreenDataDetail scrDD;

  public DataSplitView() : base()
  {
scrDH = new ScreenDataHeader();
scrDD = new ScreenDataDetail();

this.WillHideViewController += .
this.WillShowViewController += ..
  }
 }


 ... then my button click event...

 ScreenStart.btnShowData_Click()
 {
  DataSplitView dsView = new DataSplitView();

 // How do display dsView from here?

 }

 Any pointers greatly appreciated!

 Chris


 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Help-displaying-UISplitViewController-from-UIViewController-tp4515952p4515952.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] Fwd: UIDevice.CurrentDevice.CheckSystemVersion

2012-03-26 Thread Jeff Stedfast
Hi,

Yes, Roy's interpretation of how this method is supposed to work is
correct. You can think of it as a check for = the version you pass in.

Hope that helps,

Jeff

On Sun, Mar 25, 2012 at 9:49 PM, Roy Goode r...@roygoode.com wrote:

 Hi Alex

 If you're running on an iOS 5.x device then it has the APIs for iOS 5, iOS
 4 and iOS 3, which I think is what MonoTouch is telling you with those
 return values.

 If you're running on an iOS 4.x device then I'd expect
 CheckSystemVersion(5, 0) to return false - which it does for me.

 Roy

 On 25 March 2012 19:58, Alex Soto dxdr...@gmail.com wrote:

 is UIDevice.CurrentDevice.CheckSystemVersion() broken?? it always
 returns true no matter what params I use

  Debug.WriteLine(UIDevice.CurrentDevice.CheckSystemVersion (5, 0));
 Debug.WriteLine(UIDevice.CurrentDevice.CheckSystemVersion (4, 0));
 Debug.WriteLine(UIDevice.CurrentDevice.CheckSystemVersion (3, 0));

 btw I'm using MonoTouch 5.3.2

 Alex


 ___
 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] [Monotouch] Using framework library

2012-03-25 Thread Jeff Stedfast
Hi Pavel,

Most Frameworks are really the same as statically linked libraries, so you
can just rename MyFramework.framework/MyFramework to libMyFramework.a and
then use them like a normal static library.

Hope that helps,

Jeff

On Sun, Mar 25, 2012 at 4:18 PM, Pavel Sich pavel.s...@me.com wrote:

  I have an objective C library that is distributed as Framework (not .a
 file), I have difficulties to link it with MonoTouch project. Using the
 -framework switch on gcc flags seems not picking it up.

 Any ideas/advices?

 Any help is much appreciated.

 -Pavel

 --
 Pavel Sich
 @sichy


 ___
 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] Sharing UIToolbar between ViewControllers?

2012-03-21 Thread Jeff Stedfast
Hi Chris,

You could always write a new UIToolbar subclass that adds all of the right
items to itself. That's probably how I would do it.

Hope that helps,

Jeff

On Wed, Mar 21, 2012 at 1:52 PM, Chris House chrisho...@proag.com wrote:

 I’m currently developing an iPad  app with MT.  The general UI layout
 consists of four screens, each with a UITabBarController at the bottom of
 the screen.  The UITabBarController will have four buttons each pointing to
 a different view controller.  At the top of each of these four view
 controllers will be a UIToolbar.  This UIToolbar will be essentially the
 same on all four view controllers.  It will have two UISegmentedControls
 and a label that will need to change slightly depending on the view
 controller currently being displayed.

 ** **

 My question is this:  Considering that there is so much common behavior
 and appearance to my UIToolbar, what is the best way to share this across
 my four view controllers?  Is the best option to just create some function
 that constructs my UIToolbar and its associated controls and then add that
 to the current view controller as a subview at runtime or is there a better
 approach?

 ** **

 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] Sharing UIToolbar between ViewControllers?

2012-03-21 Thread Jeff Stedfast
Hi Chris,

On Wed, Mar 21, 2012 at 2:21 PM, Chris House chrisho...@proag.com wrote:

 Thanks Jeff.  I actually came to that same conclusion shortly after I sent
 my email, but I’m glad to have some validation of my approach as I’m still
 quite new to MT.  So far it seems to be working just like I’d hoped it
 would.  I do have two follow up questions on the actual implementation:***
 *

 ** **

 First – right now in my UIToolbar subclass, I have a method that creates
 the necessary UISegmentedControls and UIBarButtonItems then adds them to
 the toolbar (this.SetItems(…)).  I’m calling this method from my UIToolbar
 subclass’ constructor.  Is that the right place to do this kind of setup?


As good as any, I suppose. You could also do it in the ViewDidLoad() method
if you prefer to only keep the views around when they are needed. For
something like this, it probably doesn't matter.


 

 ** **

 Second – Since my UISegmentedControls will need to respond to events, do
 these need to be class level fields or can I just declare/instantiate them
 in the method described above?


I would probably declare them as class level fields.


Hope that helps,

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


Re: [MonoTouch] Apple dev program - joining as part of someone else's team

2012-03-20 Thread Jeff Stedfast
I'm interested in knowing the answer to this as well (getting close to
publishing my own app, woo!).

Jeff

On Tue, Mar 20, 2012 at 10:07 AM, Nic Wise n...@fastchicken.co.nz wrote:

 Hi there

 I have my normal dev account, lets say the apple id is fastchicken.
 I pay the 99$ a year.

 I've been invited to someone else's dev account (lets call them
 earnest). (they pay the $99) This is 'cos I need to publish the app
 I've been writing in their account.

 I'm not sure if I need to make a new login (fc_earnest) for this, or I
 just login as my current one and its add their program into mine
 somehow.

 Anyone done this?

 Ta

 N

 --
 Nic Wise
 t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
 b. http://www.fastchicken.co.nz/

 Nearest Bus: find when the next bus is coming to your stop.
 http://goo.gl/Vcz1p
 mobileAgent (for FreeAgent): get your accounts in your pocket.
 http://goo.gl/IuBU
 Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
 London Bike App: Find the nearest Boris Bike, and get riding!
 http://goo.gl/Icp2
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

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


Re: [MonoTouch] SQLite iOS binding to UITableView

2012-03-16 Thread Jeff Stedfast
Hi Jon,

Most people seem to use Frank Krueger's SQLite-Net binding as opposed to
System.Data because it's a bit simpler for most people.

As luck would have it, I'm working on trying to make a very easy to use /
generic (literally!) MonoTouch library for displaying data from a sqlite
database in a UITableViewController. I was planning about blogging about it
this weekend when I had worked out some of the remaining kinks and such,
but I can point you at it and the source code for my own personal app that
uses it (I want to write a simpler showcase app before I blog this weekend).

The SQLiteTableViewController library is at
https://github.com/jstedfast/MonoTouch.SQLite

You can see how I'm using it at
https://github.com/jstedfast/FlightLog/blob/master/FlightLog/Flights/FlightViewController.cs

It's a bit on the advanced side since it allows adding/deleting/editing
logbook entries, but maybe that'll be helpful to you :-)

In the simple case, you could just subclass SQLiteTableViewControllerT
and get away with just implementing the following method:

*protected override UITableViewCell GetCell (UITableView tableView,
NSIndexPath path, T item)*

So... a very simple TableViewController might look like this:

// This represents an element in your sqlite database table named Task
public class Task {
[PrimaryKey][AutoIncrement]
public int TaskId { get; set; }

public string ToDo { get; set; }
}

public class TaskViewController : SQLiteViewControllerTask
{
static NSString key = new NSString (TaskCellKey);

public TaskViewController () : base (sqlitedb, 16)
{
}

protected override UITableViewCell GetCell (UITableView tableView,
NSIndexPath path, Task task)
{
var cell = tableView.DequeueReusableCell (key);
if (cell == null)
cell = new UITableViewCell (UITableViewCellStyle.Plain, key);

cell.TextLabel.Text = Task;
cell.DetailTextLabel.Text = task.ToDo;

return cell;
}
}

The SQLiteTableViewController would then handle all of the searching logic
for you...

Hope that helps,

Jeff

On Fri, Mar 16, 2012 at 12:52 PM, JonW j...@dialacab.co.uk wrote:

 Hi there. I've been playing with MonoTouch on a Mac for a few days and
 whilst
 I'm getting there with several things (web services, customising the view
 controllers etc) I am having real issues with SQLite. First off, there are
 several types of data consumption via SQLite referred to in samples and on
 other websites (SQLite-Net, Vici, MonoTouch.Data etc) - which is the
 simplest method? Basically, my app will contain UITableViews and text boxes
 and I want to be able to create my database (unless it already exists),
 create tables (unless they already exist) and populate them on button
 click,
 bind UITableViews to queries (like I would bind GridViews in .Net), update
 and delete from them by Id. Any suggestions of a good, fully working
 example
 of how to do this? I'm pulling my hair out here!

 Another example I need is how to bind UITableViews to the output from my
 consumed .Net web services.

 Thank you for any help :-)

 Jon

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/SQLite-iOS-binding-to-UITableView-tp4478704p4478704.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] Nib in library (dll)

2012-03-14 Thread Jeff Stedfast
Hi John,

You probably want to add yourself to the Cc on this bug:
https://bugzilla.xamarin.com/show_bug.cgi?id=3591

If you can provide any additional info, that would be great.

Thanks,

Jeff

On Wed, Mar 14, 2012 at 11:54 AM, johnHolmes francesco.colo...@gmail.comwrote:

 Hi,

 I'm facing the same issue. Currently using the last beta version of MD and
 MT. Any suggestion? It's a known bug? It will be fixed?

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Nib-in-library-dll-tp4206203p4472241.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] Retina iPad Graphics

2012-03-14 Thread Jeff Stedfast
Hey Andy,

Could you submit a bug report about this for MonoTouch (maybe it's a bug in
MonoTouch? I can't find anything that MonoDevelop is doing wrong) at
http://bugzilla.xamarin.com?

Let me know the bug # when you submit it so that I can Cc myself on it.

Thanks,

Jeff

On Wed, Mar 14, 2012 at 8:26 AM, AndyW andywh...@gmail.com wrote:

 Thanks for the update Jeff.

 I'm wondering if this could just be a simulator issue, and all might work
 as
 expected on the device.

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4471708.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] Retina iPad Graphics

2012-03-13 Thread Jeff Stedfast
Hi Andy,

I've got a few more things for you to check...

In your MonoTouch project's .xib, does it refer to the images as
ImageName.png or ImageName? It should be using the latter form, but it
sounds like it is maybe using the former.

How about for your working Xcode project? Which form does it use?

Jeff

On Tue, Mar 13, 2012 at 12:05 PM, AndyW andywh...@gmail.com wrote:


 Nic Wise wrote
 
  If it's only in IB, I'd suspect one of two things:
  1. IB 4.3.1 is getting it wrong (can you recreate in XCode only?)
 

 Done some more research

 * Using just XCode the 2x images are correctly used in the retina iPad
 simulator.
 * Starting a new project in MD and setting the image in IB, like Xcode does
 not work in iPad retina.



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4469453.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] linking dependency

2012-03-13 Thread Jeff Stedfast
Hi Josh,

If you are writing a binding to a native library, you probably want to take
advantage of LinkWithAttribute(s) instead of specifying gcc flags in
MonoDevelop.

The LinkWithAttribute is an assembly level attribute that you probably want
to either put in your AssemblyInfo.cs, or, if you are using monoDevelop's
MonoTouch Binding Library project template, in the code-behind file named
libMyLibrary.linkwith.cs that gets auto-generated when you add
libMyLibrary.a to your project[1].

This attribute will look something like this:

[assembly: LinkWith (libMyLibrary.a, LinkTarget.Simulator |
LinkTarget.ArmV6 | LinkTarget.ArmV7, ForceLoad = true)]

(MonoDevelop smartly auto-detects which architectures the .a is compatible
with, so it's probably safe to leave that field alone)

There are a few other properties for LinkWithAttributes that you can set:

* LinkerFlags: This is where you can list other linker flags you'd like to
pass, e.g. in your cause you'd set it to: -lz -lsqlite3

* Frameworks: This allows you to specify a list of frameworks that the
native library depends on, e.g.: Foundation UIKit

(in your case, you can leave it empty because both Foundation and UIKit
will be pulled in by the main application anyway, but it doesn't hurt to
add them)

* WeakFrameworks: Same idea as Frameworks, but for weak framework
references.

* IsCxx: This is a boolean property that specifies whether or not the
native library requires the use of the c++ linker. Defaults to false.

* NeedsGccExceptionHandling: Another boolean property which is sometimes
needed by c++ libraries (set to true if the native library requires linking
with -lgcc_eh).

* ForceLoad: This is a boolean hint for the compiler to use -force_load on
the native library (this usually needs to be set to true).


So, for your particular example, you'd probably want a LinkWith similar to
the following:

[assembly: LinkWith (libMyLibrary.a, LinkTarget.Simulator |
LinkTarget.ArmV6 | LinkTarget.ArmV7, LinkerFlags = -lz -lsqlite3,
ForceLoad = true)]


Hope that helps answer your question,

Jeff


1. Note: There's a bug in MonoDevelop 2.8.6.* that will cause MonoDevelop
to re-generate the *.linkwith.cs files every time you open the project
(sorry about that, it's my fault). Hopefully 2.8.8 stable will be going out
later this week or next week.


On Tue, Mar 13, 2012 at 1:32 PM, Josh Handel jhan...@gmail.com wrote:

 Howdy all,
   I am trying to wrap Localystics API and its dependent on a few
 libraries (like sqlite).. I have read thru the binding documentation
 but I am still confused where in MonoDevelop to put my extra GCC flags
 to link libraries.. I need to link the following libraries (I think,
 maybe more).

 * libz.dylib
 * UIKit.framework
 * libsqlite3.dylib

 It also uses Foundation.framework but I don't think thats an issue :-P

 Thanks
 Josh Handel
 PS: Thanks for making a Binding Library project.. Last time I did
 binding I had to do it all from commandline (ick).
 ___
 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] Retina iPad Graphics

2012-03-13 Thread Jeff Stedfast
Thanks Andy,

I can reproduce here. I'll try to figure out what the issue is...

Jeff

On Tue, Mar 13, 2012 at 1:38 PM, AndyW andywh...@gmail.com wrote:

 I've created a test project here using MonoTouch, if you look at the images
 and then run the simulator and then retina simulator, you'll see both use
 the 1x version.

 http://dl.dropbox.com/u/10852937/iPadMTRetinaTest.zip

 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Retina-iPad-Graphics-tp4466319p4469719.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


  1   2   3   4   >