Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread Display Modes
Old Sep 3, 2008, 02:06 PM   #1
macrumors newbie
Join Date: Sep 2006
Location: Northern California
CLLocationManager NSInvalidArgumentException

I'm getting the following error:

'NSInvalidArgumentException', reason: '*** -[CLLocationManager <ignored selector>]: unrecognized selector sent to instance 0x148eb0'

in this code:

    // turn on the network activity spinner in the menu bar and set up the location manager
   [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
   locationManager = [[CLLocationManager alloc] init];
   // set the delegate to us, set the accuracy and start updating
   locationManager.delegate = self;
   locationManager.distanceFilter = 500;  
   locationManager.desiredAccuracy = kCLLocationAccuracyKilometer;
   [locationManager startUpdatingLocation];
A bit of noodling with GDB indicates that the problem is the line:

locationManager.desiredAccuracy = kCLLocationAccuracyKilometer;

(i.e. if I set a breakpoint at that line the program runs up to that point. pressing the GDB Continue button throws the error and the program counter continues to point at that line.)

So the question is: Is this really the problem? ...and if not where else should I be looking?
RAMilewski is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
NSInvalidArgumentException : unrecognized selector fergusjk iPhone/iPad Programming 4 Sep 5, 2010 12:16 PM
CLLocationManager MACloop iPhone/iPad Programming 3 Dec 23, 2009 08:13 AM
NSInvalidArgumentException when trying to edit object properties fiskah iPhone/iPad Programming 4 May 26, 2009 12:10 PM
To retrieve a particular location using CLLocationManager on iPhone. Amit Jain iPhone/iPad Programming 3 Dec 29, 2008 11:18 PM
CLLocationManager need to call twice walty iPhone/iPad Programming 7 Nov 15, 2008 12:07 AM

All times are GMT -5. The time now is 02:00 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC