User Profile

Collapse

Profile Sidebar

Collapse
robertybob
robertybob
Last Activity: Jul 6 '16, 04:22 PM
Joined: Feb 8 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • robertybob
    replied to SWIFT: Trigger function from TableCell
    I solved this using NSNotificationC enter - not sure that this is really the best method but anything that works when it comes to Swift is ok with me.

    Main Controller

    Added the following to the ViewDidLoad where 'addButtonPress ed' deals with the processing
    Code:
    NSNotificationCenter.defaultCenter().addObserver(self, selector: "addButtonPressed", name: "addToList", object: nil)
    ...
    See more | Go to post

    Leave a comment:


  • robertybob
    started a topic SWIFT: Trigger function from TableCell

    SWIFT: Trigger function from TableCell

    Hi.

    I have a ViewController, say HomeView.
    It contains a TableView, say MyTable.
    The table has a custom cell of class MyCell.

    How can I assign delegates, protocol or whatever is needed to get a button click (addTarget method) within MyCell to trigger a function in main ViewController, HomeView?

    I can't seem to use self, ParentViewContr oller, HomeView() to get error free code.

    ...
    See more | Go to post

  • robertybob
    started a topic RestKit.h never found in xCode project

    RestKit.h never found in xCode project

    Hi.

    My project was working and building just fine until I had to install a pod via Cocoapods which required so many attempts involving different versions, cleans, builds etc.

    Now RestKit.h is never found by the bridging header file no matter what I try to do.

    I note that this is seemingly a known issue with RestKit but I've spent 3 days already trying to get my project back and none of the following have...
    See more | Go to post

  • robertybob
    replied to Importing 3rd party menu
    I used the CocoaPods method to install this and seemed ok
    See more | Go to post

    Leave a comment:


  • robertybob
    started a topic Importing 3rd party menu

    Importing 3rd party menu

    Hi.

    I'm trying to make use of the menu at https://github.com/kitasuke/PagingMenuContr oller. It all seems to be ok (no errors during coding) until i try to build the project.

    It throws an error 'import PagingMenuContr oller' - No such module.

    I've copied the files from Pod/Classes into my project as suggested by the docs. I put them amongst the project Swift files. I have also made sure the paths etc are...
    See more | Go to post

  • robertybob
    replied to xCode Swift NSString problem
    Nothing seems to fix this. It's a bit ridiculous as you would think this is pretty basic usage - just trying to get a specific file from the web.

    Is there really no code that works in xCode 7 Swift 2.0?
    See more | Go to post

    Leave a comment:


  • Many thanks for the reply zmbd - appreciate the help despite the lack of Swift experience.

    Unfortunately the asterisk issue had been tried earlier and makes no difference - the part of the code underlined in red is the :@ as it seems to want to insert a ; in there but the line seems to be written exactly as code snippets suggest.

    Even if I paste in the examples from the documentation I have the same issue so maybe this...
    See more | Go to post

    Leave a comment:


  • robertybob
    started a topic xCode Swift NSString problem

    xCode Swift NSString problem

    Hi.

    I'm learning Swift and struggling with a process for obtaining an image from the web via passing a parameter to a URL.

    The code is as follows

    Code:
    NSString* myURLString = [NSString stringWithFormat:@"http://mydomain.com/uploads/%@", userimg];
    NSURL* imageURL = [NSURL URLWithString:myURLString];
    NSData* imageData = [NSData dataWithContentsOfURL:imageURL];
    UIImage* image
    ...
    See more | Go to post

  • Sorry - had to work on something else for a while and forgot all about this!

    For my needs I managed to get good enough stability using the generic keep-alive functionality and tweaks to the requests but Chaarmann's method seems to be decent solution for more complex requirements.

    Many thanks.
    See more | Go to post

    Leave a comment:


  • Many thanks Chaarmann - I'm investigating this and will let you know.
    See more | Go to post

    Leave a comment:


  • Using Keep-Alive to retain connection for duration

    Hi.

    I am building an app that acquires data from a web service via HttpURLConnecti on. The app requests data every minute continuously whilst it is open and activated.

    At the moment I am opening and closing the connection each time it is required but is it better practise to have a single connection that persists?

    The current code is

    Code:
    URL url = new URL(tradeURL);
    connection
    ...
    See more | Go to post

  • Android Studio: Copy textbox entry to webview page form

    Hi.

    I am trying to write a basic app in Android Studio (my first attempt).

    I have an EditText field for a username and one for a password plus a button. I also have a WebView which will contain a webpage with a login form.

    Since I'd like to keep the actual webpage hidden (as it is a mess on a phone device), I'd like to be able to type into the app form and have the app button transfer the data to the web...
    See more | Go to post

  • VS2010 for Windows Phone without Marketplace

    Hi.

    I am looking to write a personal application that I would like to run from a Windows Phone.

    Is it possible to install the program to my phone without putting it in the Windows Phone Marketplace? This is not intended for public use, just for me.

    I know Apple allow this sort of thing but there's a fee etc.

    All I'd like to do is write a phone application in VS2010 and then install it on my personal...
    See more | Go to post

  • robertybob
    started a topic Double value 0.0 classed as Nothing?

    Double value 0.0 classed as Nothing?

    Hi.

    I am retrieving JSON data. Not all parameters are returned each time and some that are returned might be a double value of 0.0.

    The problem is, I thought that I could just check if the parameter was returned by using the following....

    Code:
    'mydata is the parsed JSON response, value1 is a double value
    If Not mydata.value1 Is Nothing Then
    ' process
    Else
    'ignore
    End
    ...
    See more | Go to post

  • robertybob
    replied to Excel file locked for editing
    I've now added the following line to the closing process but still cant get access to the xlsm file after form closed.

    Code:
    If Not xlWorkBook Is Nothing Then xlWorkBook.Close()
    See more | Go to post

    Leave a comment:


  • robertybob
    started a topic Excel file locked for editing

    Excel file locked for editing

    Hi,

    I am making use of an Excel file in a form via the following process (edited for brevity).

    Code:
    Imports Excel = Microsoft.Office.Interop.Excel
    Imports Microsoft.Office
    xlApp = New Excel.Application
    xlApp = CreateObject("Excel.Application")
    xlWorkBook = xlApp.Workbooks.Open(....)
    When the form is disposed the following code should, I thought, release...
    See more | Go to post

  • robertybob
    replied to Decimal formatting
    Thanks Gabe.

    At the moment this seems to be eliminating the crashes so seems ok. Was a simpler solution than expected from reading the MSDN docs.

    I have read somewhere that this will need adding to any threads opened by the main thread so will add there too. Not sure about backgroundWorke r threads.

    Thanks for the assistance!
    See more | Go to post

    Leave a comment:


  • robertybob
    replied to Decimal formatting
    Ok - seems the answer to the above is 'no' so I'm back to trying to force the culture :)
    See more | Go to post

    Leave a comment:


  • robertybob
    replied to Decimal formatting
    This might be a stupid observation, but would simply changing the Language on the form to English(United Kingdom) force the culture on the form to en-GB for all users irrespective of their machine settings?
    See more | Go to post

    Leave a comment:


  • HttpWebRequest - can I store the endpoint URL for faster access?

    Hi,

    I am using the following method to access a server-based file.

    Code:
    Dim myURL As HttpWebRequest
    myURL = WebRequest.Create("https://www.abc.efg/data")
    myURL.Method = "POST"
    myURL.ContentType = "application/json"
    etc...
    I'm wondering if it is possible to store the HttpWebRequest on load and use it for all future requirements? I get...
    See more | Go to post
No activity results to display
Show More
Working...