Advertise here




Advertise here
Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Badges

MatthewM @

About

Username
MatthewM
Location
West London, UK
Joined
Visits
73
Last Active
Roles
New Users
Points
47
Posts
44
Location
West London, UK
Website
www.dstarcomms.com
Twitter
@mrfreakybwoy
Badges
9

Replies

  • Hi Brian, Thanks for the reply. I think the easiest way to explain what I’m trying to achieve is to suggest looking at the Spotify app. The Spotify app has a tab bar, above it is where the play button and currently playing track is s…
  • Brian, Thanks again for your help. Now I understand why it was happening I have now used a different approach to trigger the method in VC B. Quite simply I am now using NSNotificationCenter to tell VC B when to fire the required method! …
  • BTW, Thank you so much for pointing me in the right direction! I will now endeavour to learn how to do this properly. Thanks again Brian! Your comments were a great help towards me understanding the problem. Matt
  • This is from when VC A calls the method: >>> Entering <0x7feafcc27100> -[msgView ListMessages:] <<< <<< Leaving <0x7feafcc27100> -[msgView ListMessages:] >>> This is from when I press the butto…
  • BrianSlick wrote: » Is this the only place that msgView is created? Is there a Storyboard here? How does msgView get put onto the screen? Class names should begin with capital letters, btw. msgView was created using Storyboard and the us…
  • BrianSlick wrote: » How have you established the connection between VC A and B? Yep, as below: #import "msgView.h" @property (nonatomic,strong) msgView *msgViewV; msgView *vcb; vcb = [[msgView alloc] init]; …
  • Sorted it: NSData *imageData = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil]; UIImage *image = [UIImage imageWithData:imageData]; imgView.image = image;
  • Hi guys, I just thought I would put an update to this thread. I just could not get the incoming stream to work correctly on another thread, it caused lots of issues when trying to read the database at the same time. Anyhow, I fixed my issue of pe…
  • Here is what I am using that rotates the bubble too... if (TrackCharmp == NULL) { MKAnnotationView *av = [mapView viewForAnnotation:annotation]; av.image = [UII…
  • Hi Duncan, Thanks for the reply. At the moment I add a new Plane Image to the map, then as "bearing" data comes in I change the image of the pin to another image that is close the to "bearing" degree value. For example I have 9 images to give me 3…
  • Ok, so above is the code I use to parse the incoming data and then save it to the database depending on whether it is an update to an insert. Hexcode is the primary key. This is definately the part that is slowing my app. I did wrap the above code …
  • if ([strHi isEqualToString:@"STA"]) { NSString *strSTAHex = [arr objectAtIndex:4]; NSString *strSTAtimeout = [arr objectAtIndex:10]; if ([strSTAtimeout rangeOfStr…
  • - (void)ParseMessage:(NSString*)messaged { NSString *message = [messaged stringByTrimmingCharactersInSet:[NSCharacterSet newlineCharacterSet]]; databaseName = @"Database.sql"; NSArray *arr = [message comp…
  • for (id ann in mapView.annotations) { if ([ann.title isEqualToString:@"User1"]) { ann.coordinate = theNewCoordinate; break; } }
  • I found a solution to my issue:
  • Thanks for your replies guys, gave me alot to think about..
  • I'm not entirely sure what they are using, but I am assuming they are not using SQL lite for the stream processing because i cannot see any sql files in their shared documents folder available through iTunes.
  • The problem is with that question is that I do not know the answer, let me explain why. Ok, this app is basically an app that will track aircraft. It connects to a device that receives data from planes that are on the local area. The device outputs…
  • I think it's that fact that the stream can send around (not timed exactly) 20 lines per second, if not more, on every line received I have to parse each line and then pick out the data I need from that line, then update or insert into the database. …
  • potentially it could be hundreds, it really depends on how many (lets say objects that are moving) the device that provides the data stream picks up. It could be as little as 5 or 6, which is why my original sqlite method worked ok, it was only unti…
  • Ok, I think that "the background thread" is causing the main thread to lag now. I have so much data coming in from the telnet stream that the whole process that strips out the data I need and then save it to an sqlite db is draining the resources of…
  • Thanks for the replies guys.. One quick question, can a dispatch thread effect the performance of the main thread?
  • Thanks for the reply. I think I was mentioning the ARC because some of the threading examples I have seen was not compatible with ARC due to the retain and release of the POOL. But I do understand now. Ok, so if I was to do this: - (void)ParseMess…
  • Thanks for the reply, I am sure you are right. The problem is, even though I have been developing for about 3 years, I have never really had to use threads before. Below is a "snippet" from the Method which processes the incoming packets. The funct…
  • Thanks so much, I will def ready up on this... Once I get my test gear back thats pushing these 500 pin locations to my app back, I'll be able to do some further testing. Thanks again..
  • Thanks for the reply. Using NSLog I can see the data coming in very fast when it's receiving 500 lines of updates, so I think the issue is with the processing as the logic works. you're right, it is all on the main thread. I have ARC enabled, but …
  • Thanks so much Brian..! Adding the floatValue after the string made it all spring to life!! CLLocationCoordinate2D coord = {latitude: [rLatd floatValue], longitude: [rLongd floatValue]}; I already had all the globals working so it was just…
  • BrianSlick wrote: » What are you actually attempting to do? Because there are numerous things wrong if you are attempting to create the coordinate. So are you just trying to make a log statement, or what? Thanks for the reply... The be…
  • Robert Paulson wrote: » Hi, I am currently stuck with a problem very similar to this... could you explain what you mean with "I used extern"? Thanks! Cheers, Bob Hi Bob, No problem.. Take a look here: I used NSMutab…
  • ok guys I figured this out, I used extern and worked perfect.. I have another question but will start a new thread. Thanks,