Unrecognized selector sent to instance  ** plz help

I have a navigation controlled app that display's different table views as you navigate down the path. I decided that I wanted to show a CustomCell instead of the regular default cells provided for the grouped style table.
I created the CustomCell.h and CustomCell.m files along with the CustomCell.xib nib file.
I have done this MANY times before in other projects but this one will not let me set any of the fields on the CustomCell. I have stipped this cell down to just one data element called 'desc' and it is a UILabel I am trying to set.
Here is the CustomCell.h file and some of the .m file using the CustomCell class.
#import <UIKit/UIKit.h>
@interface CustomCell : UITableViewCell {
IBOutlet UILabel *desc;
@property (nonatomic, retain) IBOutlet UILabel *desc;
@end
- (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath
static NSString *CustomCellIdentifier = @"CustomCellIdentifier";
CustomCell *cell2 = (CustomCell *)[tableView dequeueReusableCellWithIdentifier:CustomCellIdentifier];
if (cell2 == nil)
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil];
cell2 = [nib objectAtIndex:0];
...do some logic
cell2.desc.text = [NSString stringWithFormat:@"%@", myText]; //ERROR OCCURS HERE
return cell2;
I receive the following error:
4/4/09 2:27:20 PM todo[1484] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSObject desc]: unrecognized selector sent to instance 0x5239b0'
The links are all set in IB and the CustomCell is set to be of Class "CustomCell"
Anyone have any idea why I cannot set the value of the UILabel for the cell2 object?
Thanks in advance

RayNewbie wrote:
I think the recommendation was to make sure the object you got from your nib was an instance of the class you expected. This sounds like an especially good idea given the difference in behavior on the two platforms. For example:
if (cell2 == nil)
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil];
cell2 = [nib objectAtIndex:0];
// debug code aka introspection
if ([cell2 isMemberOfClass:[CustomCell class]])
NSLog(@"%@ is CustomCell", cell2);
else {
NSLog (@"%@ is not CustomCell", cell2);
That is fairly limiting and isn't good practice. You see that approach more in C++, which isn't as strong an object-oriented language as Objective-C. Even in C++ though, there are better ways to handle it.
In Objective-C, it is pretty easy. Look at it from the perspective of what you want to do. Then, you ask the object if it can do what you want via "respondsToSelector:"

Similar Messages

  • Unrecognized selector sent to instance

    UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[IDECustomToolbar setFullScreenAccessoryView:]: unrecognized selector sent to instance 0x403a2ada0
    UserInfo: (null)
    Hints: None
    Backtrace:
      0  0x00007fff97615cfa __exceptionPreprocess (in CoreFoundation)
      1  0x00007fff993629ea objc_exception_throw (in libobjc.A.dylib)
      2  0x00007fff976a0cfe -[NSObject doesNotRecognizeSelector:] (in CoreFoundation)
      3  0x00007fff97603073 ___forwarding___ (in CoreFoundation)
      4  0x00007fff97602e88 _CF_forwarding_prep_0 (in CoreFoundation)
      5  0x000000010cc0bff3 -[IDEWorkspaceWindowController windowDidLoad] (in IDEKit)
      6  0x00007fff96996f6a -[NSWindowController _windowDidLoad] (in AppKit)
      7  0x00007fff9698e646 -[NSWindowController window] (in AppKit)
      8  0x000000010ce0972f -[IDEDocumentController _openUntitledWorkspaceDocumentAndDisplay:simpleFilesFocused:editorDocumentURLOr Nil:error:] (in IDEKit)
      9  0x000000010ccfc961 -[IDEApplicationCommands showTemplateChooserForTemplateKind:] (in IDEKit)
    10  0x00007fff9760598d -[NSObject performSelector:withObject:] (in CoreFoundation)
    11  0x000000010ccf4808 -[IDEApplicationController(IDECommandAdditions) forwardInvocation:] (in IDEKit)
    12  0x00007fff976031f4 ___forwarding___ (in CoreFoundation)
    13  0x00007fff97602e88 _CF_forwarding_prep_0 (in CoreFoundation)
    14  0x00007fff9760598d -[NSObject performSelector:withObject:] (in CoreFoundation)
    15  0x00007fff9689de66 -[NSApplication sendAction:to:from:] (in AppKit)
    16  0x000000010c52d222 -[DVTApplication sendAction:to:from:] (in DVTKit)
    17  0x000000010cc08ca2 -[IDEApplication sendAction:to:from:] (in IDEKit)
    18  0x00007fff9698a917 -[NSMenuItem _corePerformAction] (in AppKit)
    19  0x00007fff9698a66e -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] (in AppKit)
    20  0x00007fff96c24c54 -[NSMenu _internalPerformActionForItemAtIndex:] (in AppKit)
    21  0x00007fff96ab7fc9 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] (in AppKit)
    22  0x00007fff969040d3 NSSLMMenuEventHandler (in AppKit)
    23  0x00007fff9861b004 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec (in HIToolbox)
    24  0x00007fff9861a610 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14H andlerCallRec (in HIToolbox)
    25  0x00007fff986318e3 SendEventToEventTarget (in HIToolbox)
    26  0x00007fff98677a7d _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueE ventRef (in HIToolbox)
    27  0x00007fff9875e6b1 SendMenuCommandWithContextAndModifiers (in HIToolbox)
    28  0x00007fff987a49f3 SendMenuItemSelectedEvent (in HIToolbox)
    29  0x00007fff98670c15 _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ (in HIToolbox)
    30  0x00007fff98668355 _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt (in HIToolbox)
    31  0x00007fff9866789e _HandleMenuSelection2 (in HIToolbox)
    32  0x00007fff96803fdb _NSHandleCarbonMenuEvent (in AppKit)
    33  0x00007fff9679a91f _DPSNextEvent (in AppKit)
    34  0x00007fff96799cf0 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
    35  0x00007fff9679668d -[NSApplication run] (in AppKit)
    36  0x00007fff96a13cfb NSApplicationMain (in AppKit)
    37  0x000000010c33deec (in Xcode)
    38  0x0000000000000002
    Someone can help me please ? XCode crashes when i try to create new project. I am using Lion 10.7 and XCode4 B110 version. i tried reinstall it and logging in with a different user but no luck.

    Before installing the new copy of XCode, try to uninstall that previous copy first. After that try to install the new copy. May be it works.
    sudo /Developer/Library/uninstall-devtools --mode=all
    use this in terminal window to uninstall.
    Thanks & Regards,
    Rajesh Kumar Yandamuri.

  • After Effects CC 2014.2 Freezing and getting "After Effects[717]: -[NSMenu menuID]: unrecognized selector sent to instance" messages

    I’m having this same issue- it’s not crashing constantly but definitely freezes or chugs slowly along.
    Getting the "After Effects[717]: -[NSMenu menuID]: unrecognized selector sent to instance 0x610000263180"
    Thoughts?

    Hmmm.
    This thread seemed to find a solution, but you're not going to like it...
    I'd recommend being as aggressive as you can with other solutions first, such as fixing permissions problem that impedes start of Adobe applications on the off chance that they help.
    This thread on App Nap causing issues would also be worth a look.

  • I'm getting the following error when I want to put something in Mycloud : 6/02/12 21:00:14,689 Cloud: -[__NSCFDictionary name]: unrecognized selector sent to instance 0x1002d57c0

    I'm getting the following error when I want to put something in Mycloud : 6/02/12 21:00:14,689 Cloud: -[__NSCFDictionary name]: unrecognized selector sent to instance 0x1002d57c0

    I'm getting the following error when I want to put something in Mycloud : 6/02/12 21:00:14,689 Cloud: -[__NSCFDictionary name]: unrecognized selector sent to instance 0x1002d57c0

  • Cannot open files - errors with  "unrecognized selector sent to instance"

    I installed 10.5 on MBP and noticed that there is a problem with the file dialog box. Everytime I try to 'Open a file' from any app (Firefox, Word etc...) it does not bring up the file dialog. Instead it throws this error in the console:
    10/27/07 12:36:29 PM Microsoft Word[373] * -[NSNavSegmentSwitchControl initWithFrame:pullsDown:]: unrecognized selector sent to instance 0x1b9c5dd0
    10/27/07 12:36:29 PM Microsoft Word[373] Exception raised!: * -[NSNavSegmentSwitchControl initWithFrame:pullsDown:]: unrecognized selector sent to instance 0x1b9c5dd0
    10/27/07 12:44:17 PM firefox-bin[398] * -[NSNavSegmentSwitchControl initWithFrame:pullsDown:]: unrecognized selector sent to instance 0x17dcf430
    10/27/07 12:44:17 PM firefox-bin[398] Exception raised!: * -[NSNavSegmentSwitchControl initWithFrame:pullsDown:]: unrecognized selector sent to instance 0x17dcf430
    To test this, just launch Firefox and go to File->Open File... and if you don't see the File dialog then you have the problem. I have reinstalled from CD but same problem. I installed 10.5 on an iMac G5 and do not see this problem.
    Any thoughts on what can be done. Its a little difficult to use the computer if I can't open or save files
    Thanks,
    -- John Mac.

    RayNewbie wrote:
    I think the recommendation was to make sure the object you got from your nib was an instance of the class you expected. This sounds like an especially good idea given the difference in behavior on the two platforms. For example:
    if (cell2 == nil)
    NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil];
    cell2 = [nib objectAtIndex:0];
    // debug code aka introspection
    if ([cell2 isMemberOfClass:[CustomCell class]])
    NSLog(@"%@ is CustomCell", cell2);
    else {
    NSLog (@"%@ is not CustomCell", cell2);
    That is fairly limiting and isn't good practice. You see that approach more in C++, which isn't as strong an object-oriented language as Objective-C. Even in C++ though, there are better ways to handle it.
    In Objective-C, it is pretty easy. Look at it from the perspective of what you want to do. Then, you ask the object if it can do what you want via "respondsToSelector:"

  • IOS button press causes "unrecognized selector sent to instance"

    Newbie Obj-C / iOS programmer here.  I'm sure this is a common and simple newbie problem; nothing complicated here.
    I created a view-based application with the following files:
    MainWindow.xib
    PushbuttonAppDelegate.h & m
    PushbuttonViewController.h & m
    PushbuttonViewController.xib
    I put one button on PushbuttonViewController.xib.
    I want to drive an instance method ("pushed:") in PushbuttonViewController.m when it's pressed.  However, when I press it, the app crashes with the following log msg:
    [NSCFString pushed:]: unrecognized selector sent to instance 0x4e0bea0
    Various things that I have done:
    declared and defined - (IBAction)pushed:(id)sender; inside PushbuttonViewController.h&m
    implemented pushed: to call NSLog, (but that never gets called).
    added an Object to PushbuttonViewController.xib and set its identity to PushbuttonViewController.
    connected the button to thePushbuttonViewController object's pushed: IBAction.
    cleaned and rebuilt frequently.
    I have a feeling that maybe the PushbuttonViewController hasn't been instantiated or something?  I'm so new to Obj-C and iOS that I'm still very unclear about the whole chain of events, and what has to be connected to what.
    Don't know if I can post a 25K zip file containing a sample project illustrating the problem...
    Any thoughts?
    Thanks,
    Chap

    Okay, I think I solved my problem, and I'll describe it here in case anyone else comes looking...
    I should NOT have "added an Object to the PushbuttonViewController.xib..." and "connected the button to [that] PushbuttonViewController..."
    The PushbuttonViewController.xib came with a "File's Owner" of PushbuttonViewController.  I should have just created my IBAction "wires" from the button to the IBAction in the the "File's Owner."  By creating a second PushbuttonViewController object and wiring to that I apparently messed up the ability to send a message there.
    (xnav -- I had a breakpoint at the top of pushed: but it was never being reached.)
    So although I'm as yet unclear about all the magic the NIB performs, I'm past this one hurdle.
    About that "Unrecognized Selector Sent To Instance" error - I'm betting that's a very common, generic error, almost like "seg fault."  Can anyone offer more details on what can cause it?  In my case, I was misled because my class DID, in fact, have a pushed: method.

  • Aerendercore on OSX and [NSMenu menuID]: unrecognized selector sent to instance

    Hi,
    I'm trying to run aftereffects in background in OSX using NativeProcess in Adobe AIR. To do it, I need to run the aerendercore in /Contents/aerendercore.app/Contents/MacOS/aerendercore as I'm not able to call an .app directly.
    However, I always this error : aerendercore[3658:903] -[NSMenu menuID]: unrecognized selector sent to instance 0x12f5089e0.
    I also get this error if run directly in terminal, and on all computer having AEFX here at the office.
    Does anobody knows how to run it without getting this error ?
    Thanks

    I just tried running  After Effects CS5.app/Contents/After Effects and I still get the same error (plus some initialization messages).
    So I'm really unable to After Effects as a Native Process on OSX. On windows it was fast and easy. It is the .app folder thing that seems to mess everything.
    Does anybody have a clue, or maybe I'm better to ask on the Adobe Air forum ?

  • Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFBoolean transactionDate]: unrecognized selector sent to instance

    Hi,
    When I run the apps. Than apps crash on the point where data coming from the soap....like line,,
    YPWalletTransaction *transaction = (YPWalletTransaction*)[result.walletTransactionList objectAtIndex:i];.............meas data not coming properly.
    And here is the code.......
    #pragma mark Other Functions
    //Handle the Response of getTransactionForWallet
    -(void)getTransactionsForWalletHandlers:(id) value
        [waitIndicator stopAnimating];
        // Handle errors
        if([value isKindOfClass:[NSError class]]) {
            NSLog(@"%@", value);
            return;
        // Handle faults
        if([value isKindOfClass:[SoapFault class]]) {
            NSLog(@"%@", value);
            return;
        NSLog(@"getTransactionsForWalletHandlers.......start");
        // Do something with the YPLoginResponse* result
        YPGetTransactionsForWalletResponse* result = (YPGetTransactionsForWalletResponse*)value;
        if(result.statusCode == 0)
            NSLog(@"Number of Transaction is %d",[result.walletTransactionList count]);
            NSString *deleteQuery = @"delete from AllTransaction where userid = ";
            deleteQuery = [deleteQuery stringByAppendingString:appDelegate.userID];
            [DataBase deleteDataFromTable:deleteQuery];
            NSLog(@"result.walletTransactionList count %d",[result.walletTransactionList count]);
            NSMutableDictionary * transactionList=[[NSMutableDictionary alloc]init];
            NSMutableArray *theArray =[[NSMutableArray alloc] init] ;
            for (int i =0; i< [result.walletTransactionList count] - 2; i++)
                NSLog(@"in loop");           ///////// crash here
                YPWalletTransaction *transaction = (YPWalletTransaction*)[result.walletTransactionList objectAtIndex:i];
                NSString *date=(NSString *)[transaction transactionDate];
                NSLog(@"Transactionnnnnnn Date %@",date);
                [transactionList setValue:transaction.merchantName forKey:@"merchantName"];
                [theArray addObject:[transactionList copy]];
                NSMutableString *transactionDate = [NSMutableString stringWithFormat:@"%@",transaction.transactionDate];
                [transactionDate insertString:@"/" atIndex:2];
                [transactionDate insertString:@"/" atIndex:5];
                NSString *insertQuery = @"Insert into AllTransaction (cardnumber,transactiontype,transactiondate,totalamount,transactionnumber,useri d,merchantname,storename) values(";
                insertQuery = [insertQuery stringByAppendingString:[NSString stringWithFormat:@"'%@','%@','%@',%d,%d,%@,'%@','%@')",
                               transaction.cardNumber,transaction.transactionType,transactionDate,transaction. totalAmount,transaction.transactionNumber,appDelegate.userID,transaction.merchan tName,transaction.storeName]];
                //for Future when we get the updated WSDL
                     NSString *insertQuery = @"Insert into AllTransaction (cardnumber,transactiontype,transactiondate,totalamount,transactionnumber,updat edatetimestamp,userid,merchantname,storename,cardreferance) values(";
                     insertQuery = [insertQuery stringByAppendingString:[NSString stringWithFormat:@"'%@','%@','%@',%d,%d,'%@',%@,'%@','%@','%@')",
                     transaction.cardNumber,transaction.transactionType,transactionDate,transaction. totalAmount,transaction.transactionNumber,result.updateDatetimestamp,appDelegate .userID,transaction.merchantName,transaction.storeName,transaction.cardReference ]];
                //NSLog(@"Insert Transactions Query is %@",insertQuery);
                ///[DataBase InsertIntoTable:insertQuery];
            NSMutableDictionary *theDictionary = [[NSMutableDictionary alloc] init];
            //NSLog(@"COunttt%d",[theArray count]);
            for (int i=0; i<[theArray count]; i++) {
                theDictionary=[ theArray objectAtIndex:i];
                NSString *currCode=[theDictionary objectForKey:@"merchantName"];
                NSLog(@"Finalllyyyyyyyyy transaction Date====> %@",currCode);
            //Read Update Data From DataBase and Refresh Table
            if([DataBase getNumberOfRows:@"AllTransaction"] > 0)
                NSString *query = @"";
                if([cardreference isEqualToString:@"0"])
                    query = @"Select * from AllTransaction where userid = ";
                    query = [query stringByAppendingString:appDelegate.userID];
                else {
                    query = @"Select * from AllTransaction where userid = ";
                    query = [query stringByAppendingString:[NSString stringWithFormat:@"%@ and cardreferance = '%@'",appDelegate.userID,cardreference]];
                NSMutableArray *temp=[DataBase getTransactionTableData:query];
                [resultArray removeAllObjects];
                for (int i=0;i< [temp count]; i++) {
                    [resultArray addObject:[temp objectAtIndex:i]];
                [table reloadData];
        else {
            [Common ShowAlert:result.responseMessage alertTitle:@"Transaction Error"];

    Having the same issue with Numbers in iWork. Was on the phone with Apple Support and went through a variety of trouble shooting methods to no avail.
    Here is the message that occurs on every attempt to start Numbers. This is a user specific issue as I am able to run numbers in a Guest user mode.
    Application Specific Information:
    *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -getComponents: not valid for the NSColor NSNamedColorSpace System gridColor; need to first convert colorspace.'
    If anyone has any advice I am all ears.
    Thanks.

  • NSInvalidArgumentException: unrecognized selector sent to class

    I'm trying to find my way around Objective-C and Cocoa, and I've stumbled upon a problem I just can't figure out. I think I'm missing something fundamental here. Here's the issue:
    I have a subclass of UIView with a NSMutableArray *_balls declared in its interface. In its initWithFrame method, I write
    +_balls = [[NSMutableArray arrayWithCapacity:100] retain];+
    Somewhat later, I add an instance of Ball to the array:
    +Ball* ball = [[Ball init] retain];+
    +[_balls addObject:ball];+
    Ball has a method draw; here's how it looks in the interface:
    +- (void) draw;+
    However, when I try to call "draw" on all Balls, I get an exception. Here's how I call draw:
    +int arrayCount = [_balls count];+
    +NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];+
    +int i;+
    +for (i = 0; i < arrayCount; i++) {+
    +[[_balls objectAtIndex:i] draw];+
    +[pool release];+
    And here's the Exception I get:
    +2008-03-09 09:42:39.069 Foo[3203:60b] * +[Ball draw]: unrecognized selector sent to class 0x4160+
    +2008-03-09 09:42:39.073 Foo[3203:60b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* +[Ball draw]: unrecognized selector sent to class 0x4160'+
    +2008-03-09 09:42:39.074 Foo[3203:60b] Stack: (+
    2484785739,
    2502521083,
    This is running on the iPhone simulator.
    Any ideas what I'm doing wrong here? All help would be greatly appreciated.

    The problem is simple, when you do [Ball init] you don't instantiate Ball, but you send the message -init to a class whereas it's an instance method... Why does it work ? Well -init is defined in the root class so the Class object can execute it too... However it just returns self and does nothing else.
    So here, what you do, is just retaining the Class object, that is the object that represents your Ball class.
    What you want to do is to instantiate that class. You need, to do so, to use the factory methods. I think you misunderstood what +arrayWithCapacity: was doing. That method returns an allocated initialized and autoreleased objects. -init just returns an initialized objects, it doesn't allocate anything.
    So before sending the init message, you have to send the alloc message to the class object to get an allocated instance that you'll then initialize using -init message, it gives you that :
    Ball *ball = [[Ball alloc] init]; // no retain message
    ball will contain a reference to a newly allocated and initialized instance of Ball class. And that instance will accept the -draw message, you won't get that exception.
    What is important here is memory management. When you own an object you must release the object. There are 3 ways to be responsible of an object ::
    // 1. With the alloc/init technique :
    MyClass *obj = [[MyClass alloc] init];
    // Which can be done using +new message which just make alloc/init in the same message :
    MyClass *obj = [MyClass new]; // that technique is not recommanded
    // 2. With the copy message :
    obj = [anotherObj copy];
    // 3. With the retain message :
    obj = [anotherObj retain];
    Each use of one of this technique must be balanced by a release or an autorelease message :
    // 1. The object is deallocated immediately
    [obj release];
    // 2. The object is deallocated "later" (in AppKit apps lik your,
    // it's deallocated at the end of an event loop)
    [obj autorelease];
    In any other case, you're not responsible of releasing objects, which means that an object you get with another techniques than the 3 up there will be deallocated soon, that's why you do a -retain on your mutable array and that's why you do not have to do a retain on the ball objects for which you use alloc/init messages.
    By the way, an array (mutable or not) retains the objects that are being added to it, so if you don't need the reference outside of the array you can release it.
    So after adding the object to the array, release it :
    Ball *ball = [[Ball alloc] init];
    [_balls addObject:ball];
    [ball release];
    If you don't do that, you'll probably lose the reference to the ball object and you'll have a memory leak.
    Also, the autorelease pool is useless with your draw loop.
    PS : if you want to format the code beautifully like me, you simply have to use the markups :
    // your formatted code here
    becomes :
    // your formatted code here
    And if you want to avoid the format specifier like the or the [] to be transformed into what they mean (code formating, links, etc.) just put an anti-slash '\' before it.

  • Migration to an asm instance. plz help me urgent

    RMAN> BACKUP AS COPY DATABASE FORMAT '+DGROUP1';
    Starting backup at 20-AUG-07
    Starting implicit crosscheck backup at 20-AUG-07
    using target database controlfile instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=328 devtype=DISK
    ORA-19501: read error on file "+DGROUP1/sravan/backupset/2007_08_03/nnsnf0_ora_asm_migration_0.260.1", blockno 1 (blocksize=512)
    ORA-17507: I/O request size is not a multiple of logical block size
    Crosschecked 7 objects
    Finished implicit crosscheck backup at 20-AUG-07
    Starting implicit crosscheck copy at 20-AUG-07
    using channel ORA_DISK_1
    ORA-19587: error occurred reading 8192 bytes at block number 1
    ORA-17507: I/O request size 8192 is not a multiple of logical block size
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 08/20/2007 16:53:21
    ORA-19587: error occurred reading 8192 bytes at block number 1
    ORA-17507: I/O request size 8192 is not a multiple of logical block size

    > plz help me urgent
    Adjective
        * S: (adj) pressing, urgent (compelling immediate action) "too pressing to permit of longer delay";So you are saying that your problem is a lot more important than any other person's problem on this forum?
    And you're demanding a quick response from professionals that give you and others assistance here in their free time without getting a single cent compensation?
    Don't you think that this "it is urgent!" statement severely lacks manners?

  • SKProduct product.priceLocale unrecognized selector

    Hi,
    My Code hangs on one apple test device (iphone 3GS OS 3.0) but not on my iPad test device (3.2). Compiler Error:
    * -[NSCFString priceLocale]: unrecognized selector sent to instance 0x62258
    * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSCFString priceLocale]: unrecognized selector sent to instance 0x62258'
    why should priceLocal be an unrecognized selector?!!
    - (NSString * ) stringFromLocalPrice:(SKProduct *) product{
    NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
    [formatter setFormatterBehavior:NSNumberFormatterBehavior10_4];
    [formatter setNumberStyle:NSNumberFormatterCurrencyStyle];
    [formatter setLocale:product.priceLocale];
    NSString *str = [formatter stringFromNumber:product.price];
    [formatter release];
    return str;
    thanks for any help..

    sorry; i tested it again and it also does not work on the ipad and crashes with the same error.

  • Unrecognized selector ???

    I new to objective c and I am working through Aaron Hillegass Cocoa Programming for Mac OS X 3rd Edition.
    I am working in chapter 3 and I started to mess around with writing my own classes for testing purposes. I am writing a console app using the Foundation classes. My files are
    CardTest.m
    Card.h
    Card.m
    Deck.h
    Deck.m
    When I "build and go" I get the following message:
    [Session started at 2008-07-29 14:06:21 -0400.]
    2008-07-29 14:06:21.088 CardTest[6003:10b] * -[NSCFArray someNum]: unrecognized selector sent to instance 0x104b40
    2008-07-29 14:06:21.096 CardTest[6003:10b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSCFArray someNum]: unrecognized selector sent to instance 0x104b40'
    2008-07-29 14:06:21.097 CardTest[6003:10b] Stack: (
    2502619467,
    2527531259,
    2502648650,
    2502641996,
    2502642194
    The Debugger has exited due to signal 5 (SIGTRAP).The Debugger has exited due to signal 5 (SIGTRAP).
    I was just playing around with methods but I can't get the someNum method to be called from my Deck class. Thanks in advance for any help.

    Here are my files
    CardTest.m
    #import <Foundation/Foundation.h>
    #import "Card.h"
    #import "Deck.h"
    int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    Deck *warDeck = [[Deck alloc] initDeck];
    int k = [warDeck someNum];
    //NSLog(@"Tester");
    [pool drain];
    return 0;
    Deck.h
    #import <Foundation/Foundation.h>
    @interface Deck : NSObject {
    NSMutableArray *myDeck;
    -(id)initDeck;
    -(int)someNum;
    @end
    Deck.m
    #import "Deck.h"
    #import "Card.h"
    @implementation Deck
    -(id)initDeck
    myDeck = [[NSMutableArray alloc] init];
    int i;
    int j;
    for (i=2; i<15; i++){
    for (j=1; j<5; j++){
    Card *myCard = [[Card alloc] setSuit:j setFace:i];
    [myDeck addObject:myCard];
    //NSLog(@"%@", myCard);
    //NSLog(@"%@", [myDeck objectAtIndex:(i-2)]);
    return myDeck;
    -(int)someNum
    return 8;
    @end

  • IPhone SDK: unrecognized selector

    I'm relatively new to Objective-C/iPhone SDK development. I have an issue that really seems to produce random (or at least nondeterministic) errors, all of which are "unrecognized selector" errors.
    I have a UITableViewController that is populated with table names from a MySQL database. When I select a table name, a second UITableViewController is created to display detailed data. I thought this was working just fine, but I discovered I have problems when I select a certain table name, (detailed results are displayed in second UITableViewController), go back, select the same table name, (...), go back, and select the same table name a third time. The Simulator explodes and gives me an error like:
    * -[UICGColor length]: unrecognized selector sent to instance 0x1050810
    Sometimes it's related to UICGColor, sometimes it's related to CALayerArray. Sometimes it doesn't produce any error at all and just terminates.
    What's also weird is that only some of the table names cause this to happen. Also, if I cycle through several table names (i.e., not select the same table over and over), the app is fine. I would tend to think that maybe something is wrong with my database or MySQL C API usage, but the fact that things are perfectly fine the first and second (and third and fourth and ... and nth for some tables) time baffles me. I'm not using any dynamic method calling either -- just straight
    [ object method: ] syntax, so I'm not sure how it suddenly can "lose" the selector reference that it was perfectly happy to use earlier. As far as I can tell, I'm releasing memory as necessary.
    Any clues why this seems to be so weird and unpredictable? I can provide source if it would help.

    Ugh. Problem solved. I was tampering with autorelease, and it got me into trouble. I had this:
    query = [ [ [ NSString alloc ] initWithFormat:@"...%@", [ [ tableView cellForRowAtIndexPath:indexPath ] text ] ] autorelease ];
    I thought that I should autorelease the "anonymous" object I created. It made sense at the time, but upon thinking about retain/release more closely, it's so clear now.

  • AE 12.0 -[NSMenu menuID]: unrecognized selector...

    I think this is an old problem, but I'm wondering why it hasn't been fixed yet.
    While running AE, the Mac OS console is absolutely flooded with this error message:
    After Effects: -[NSMenu menuID]: unrecognized selector sent to instance 0x116915050
    Not sure if it's a problem but it doesn't seem right to me.  We are troubleshooting some freezing issues we're having but we're not sure it's related to AE or this in particular.

    I just tried running  After Effects CS5.app/Contents/After Effects and I still get the same error (plus some initialization messages).
    So I'm really unable to After Effects as a Native Process on OSX. On windows it was fast and easy. It is the .app folder thing that seems to mess everything.
    Does anybody have a clue, or maybe I'm better to ask on the Adobe Air forum ?

  • Enumerating NSDictionary causing an unrecognized selector problem..

    Hi All!
    I am really confused and trying to solve this problem since hours, but I have no clue at all..
    The code I am using works with one json-filled nsdictionary, but not with another..
    NSEnumerator *enumerator = [newDict objectEnumerator]
    terminates my app.. with [NSCFString objectEnumerator] but what the **** does this mean??
    thankx..
    2009-11-12 21:41:21.377 ViewPusher[1814:207] * -[NSCFString objectEnumerator]: unrecognized selector sent to instance 0x43348e0
    2009-11-12 21:41:21.377 ViewPusher[1814:207] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSCFString objectEnumerator]: unrecognized selector sent to instance 0x43348e0'
    2009-11-12 21:41:21.379 ViewPusher[1814:207] Stack: (
    30901339,
    2443654409,
    31283259,
    30852726,
    30705346,
    60688,
    70291,
    70137,
    647025,
    36015901,
    36019690,
    36020450,
    36022934,
    35682261,
    30685409,
    30682184,
    38991757,
    38991954,
    2957315,
    8968,
    8822
    )

    It means that what you think is an NSDictionary is actually an NSString.

Maybe you are looking for

  • HTML DB application using table in a different schema

    I need to create a new HTML DB application. The table is in a different schema than mine. The DBA granted me rights to see it and I can see it from iSQL. HTML DB does not give the alternative of selecting this table.

  • Best practise in SAP BW master data management and transport

    Hi sap bw gurus, I like to know what is the best practise in sap bw master data transport. For example, if I updated my attributes in development, what are the 'required only' bw objects should I transport? Appreciate advice. Thank you, Eric

  • Acrobat Pro XI isn't detecting a scanner

    I'm running Adobe Acrobat Pro XI on Windows 7 Enterprise SP1 machine.  When I go to File, Create, PDF from Scanner and choose either Color Image or Custom Scan it's not showing any scanners available (custom scan shows "Please Select a Device") if I

  • What is Error 0xE8000001?

    Hello all Lately I've been *having problems when docking my iPhone to the Universal Dock* connected to my iMac: (See also http://discussions.apple.com/thread.jspa?threadID=2309428) - When dock in, the '*dock chime' will not sound* - There will be pop

  • Powershell script for average message size and message sent

    Regarding this script from a Technet blog: #mjolinor #02/24/2011 #requires -version 2.0 $today = get-date $rundate = $($today.adddays(-1)).toshortdatestring() $outfile_date = ([datetime]$rundate).tostring("yyyy_MM_dd") $outfile = "email_stats_" + $ou