I am having trouble trying to and an event handler for a delete button that
is on a custom UITableCell
Currently the delegate seems to get called several times for each click on
the delete button. I am using an anonymous method as I need the indexPath to
work out which message to delete.
Can
Personally, I pass in the parameters/object it needs to act on to the
constructor of the custom cell, and have the event code in the cell perform the
required action.
Dino
-Original Message-
From: monotouch-boun...@lists.ximian.com
[mailto:monotouch-boun...@lists.ximian.com] On Behalf
Sorry - not the constructor of the cell as that's only called once. I have
properties on the cell that are set during GetCell and the values for that
might have been passed in to the constructor of the DataSource.
Dino
-Original Message-
From: monotouch-boun...@lists.ximian.com
Hi guys,
Im using AVPlayer for the audio in my app. I have it playing audio, setting
up its audio session correctly (I think, the play icon appears in the status
bar when I play audio tracks within my app, and my app icon appears beside
the player transport controls in the multitasking dock).
Hi,
I am trying to convert the following code to .Net
NSString *urlAddress = @http://www.amazon.com;;
//Create a URL object.
NSURL *url = [NSURL URLWithString:urlAddress];
//URL Requst Object
NSMutableURLRequest *requestObj = [NSMutableURLRequest requestWithURL:url];
[requestObj
Hi,
I am trying to convert the following code to .Net
NSString *urlAddress = @http://www.amazon.com;;
//Create a URL object.
NSURL *url = [NSURL URLWithString:urlAddress];
//URL Requst Object
NSMutableURLRequest *requestObj = [NSMutableURLRequest requestWithURL:url];
[requestObj
Hello,
The 'forHTTPHeaderField' selector is mapped to the indexer of the
NSMutableUrlRequest type, so
requestObj [User_Agent] = Foobat/1.0;
should do what you want.
Sebastien
On Mon, Sep 12, 2011 at 10:46 AM, dotnet projects
coderproje...@gmail.com wrote:
Hi,
I am trying to convert the
Yes
Thank you
Art
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/seting-UIWebview-user-agent-objectiveC-question-tp3807602p3807638.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
NSUrl url =new NSUrl(@http://www.amazon.com;);
NSUrlRequest req = new NSUrlRequest(url);
req.SetValueForKey(???,Foobar/1.0);
req.SetValueOfKey(User_Agent, Foobar/1.0);
check the params, tho. Its
Hi
I tried it and getting the following
Error CS0200: Property or indexer
`MonoTouch.Foundation.NSUrlRequest.this[string]' cannot be assigned to (it
is read-only)
I am trying to convert the code in the following URL
Hey,
The original (objectivec) code was using NSMutableUrlRequest, not
NSUrlRequest (it was also part of my previous answer ;-). FWIW you
cannot change it if it's not mutable.
Sebastien
On Mon, Sep 12, 2011 at 11:20 AM, coderprojects coderproje...@gmail.com wrote:
Hi
I tried it and getting
Just looked at the documentation, and there's a Headers property - can you
enumerate that, see if there's a User_Agent in there, and change the value?
Dino
-Original Message-
From: monotouch-boun...@lists.ximian.com
[mailto:monotouch-boun...@lists.ximian.com] On Behalf Of coderprojects
Thanks for the reply
I tried it but header is null
setValue:@Foobar/1.0 forHTTPHeaderField:@User_Agent];
is it possible to convert forHTTPHeaderField:@User_Agent to NSObject?
Thanks
Art
--
View this message in context:
I missed the NSMutableUrlRequest
NSMutableUrlRequest req = new NSMutableUrlRequest(url1);
req[User_Agent] =Mozilla/5.0
(Windows; U; Windows NT 6.0; en-US)
AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.38 Safari/532.0;
That worked.
Thanks
Cocoa uses objects, as it can key off anything (unlike C# which has generics)
Just just put a string in there. NSString is an NSObject
On Mon, Sep 12, 2011 at 16:55, coderprojects coderproje...@gmail.com wrote:
Thanks for the reply
I tried it but header is null
setValue:@Foobar/1.0
Sorry I accidentally posted two times.
Sebastian answer the question.
I should have used NSMutableUrlRequest.
THe following worked.
NSMutableUrlRequest req = new NSMutableUrlRequest(url1);
req[User_Agent] =Mozilla/5.0
(Windows; U; Windows NT 6.0; en-US)
Thats a gotcha for new players (and old ones)
Anything in Cocoa which isn't NSMutable is NOT Mutable (it can't
be mutated - changed, altered etc)
And, generally, if there is a NS, there is an NSMutable as
well, if it makes sense to change it.
On Mon, Sep 12, 2011 at 16:59,
Have you ever considered using NSNotifications? There are scenarios where using
notification-type eventing is better than using C# events and delegates
handlers. This is probably one of those times.
Advantages:
Using notifications don't up (ref++) the object reference counts like C# events
do.
Hi all,
getting the above error all of a sudden from code that used to work fine.
The line that is triggering the error is:
this.mapView.Delegate = new MKMapViewDelegate();
where mapView is a MonoTouch.MapKit.MKMapView that is embedded in a view via
InterfaceBuilder.
The full error and
I am trying, unsuccessfully so far, to make a simple 2 view app in which the
views (UIViewController) can be switched by the UISegmentControl in the nav
bar. Does anyone has a quick example for it? Thanks in advance.
--
View this message in context:
Hello Dennis,
Could you fill a bug report at http://bugzilla.xamarin.com and include
a small, self-contained, test case. I'll look to see if this works
with 4.2 and if it could be a linking issue.
Thanks
Sebastien
On Mon, Sep 12, 2011 at 8:55 PM, technohead dj_technoh...@yahoo.com wrote:
Looks
This may be a REALLY stupid question, but I'm trying to show more info in a
UITableViewCell/row when selected. The issue I'm having, is resizing it
since the height is controlled by GetHeightForRow, instead of a .Height
type property that could be set on the RowSelected override.
And there may be
22 matches
Mail list logo