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:"

Similar Messages

  • Cannot Open File error - tried what I know

    I have received the dreaded Cannot Open File error. Usually I can manage to recover the file by deleting the lock file or recovering from a backup. This time, nothing is working.
    I've searched the forum, and while many people have this issue I cannot find a solution.
    Any suggestions?
    Thanks!

    Hi,
    Have you checked this article for steps to recover a project from Cache. (Adobe Captivate Cache Projects folder from My Documents)
    http://blogs.adobe.com/captivate/2010/09/recovering-the-project.html
    For Future, make sure you have the option to create project Backup on save automatically at the same location where your project is saved. (Edit--Preferences--General-- Generate Project backup)
    Thanks,
    Anjaneai

  • 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

  • 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:"

  • 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.

  • 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.

  • 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 ?

  • Captivate Cannot Open File Error

    VERY simple project is generating error above.
    Menu screen with some buttons linked to F4V files inserted as "slide Videos".  The videos are large files and run in 1024 x 768. It saves properly after  a looong time compressing and will not open. This only happens after I've inserted the slide videos and linked to the buttons.
    The error says " Cannot open file XXXXX. Ensure that file is not open already etc....."
    I've done this a tonne of times before and can't figure out what is happening.

    I'll presume you're using windows, but it should be similar with Mac.
    1) ensure your files are all stored locally.  Saving on network drives will cause some significant delays opening/saving/closing.
    2) look in the folder whre the file is saved and enable viewing hidden files, if it isn't already.  Tools > Folder Options > View > Hidden files and folders > Show hidden files and folders
    3) look for a file names something like ~cp_prj_name_of_project.cptx_lock   If you are confident the file is not open somewhere, delete that _lock file and try to open the project.
    That lock file keeps 2 people from opening the project at once.  Sometimes the _lock file is not cleaned up properly when the project is closed (usually when there's a crash).  Hopefully that fixes it for you.  If not there is a way to try and retrieve the file from backup (if you have backups turned on) or from the cache.
    Any luck?

  • Cannot open file error message

    Whenever I go to open a PDF file for university I cannot open it, it comes up with an error message of opening Adobe Acrobat and accepting the End user license agreement?

    Do exactly what the message says: open Adobe Reader (as a separate application, not inside the browser) and accept the EULA.

  • "Cannot Open File" error when generating CHM

    Hello,
    We have a small help file that we have in our source control
    (StarTeam), and it's built on a daily basis. It hasn't been updated
    in quite a while, so it was a surprise that it suddenly generated
    the following error during the weekend build:
    Cannot open the file
    "b:\Document\HelpFile\!SSL!\Microsoft_HTML_Help\!chm_tmp_folder_0\HelpFile.hhc".
    The CHM is normally built by running RH 7 via a command line
    in StarTeam. I tested it today by running it manually and received
    the same error. When I click "OK" on the error message, it
    continues building and finishes with the normal "view/close"
    message.
    Anyone have an idea as to what may have caused this issue?
    The immediate puzzle is to what changed that would have caused this
    error, as we haven't updated this help file in several months (so
    there shouldn't be any changes within the help file).
    And to pre-empt the usual first response, we have a copy of
    RH 7 on the build machine itself, so it shouldn't be a "running
    over a network" issue. ;*)

    Quick update: I had the chance today to check out the files
    and build them locally on my machine with my copy of RH7.
    It appears to build normally for me, and I'm not getting the
    error message being generated on the build machine.
    This leads me to think something on the machine has changed,
    but I'm still at a loss as to what it might possibly be.

  • PDF created in CS6 now produces a "Cannot Open File" error when I try to reopen it :(

    I created a file in Illustrator CS6 (v. 16.0.0), and saved it as an (editable) PDF. When I try to reopen that same PDF inside Illustrator CS6, however, I get a "Could Not Open The File" error. 
    The file opens in Acrobat just fine, but I need to continue editing/working on it.  Opening it in 5.1 works but it's all flat and not ideal for editing.  Renaming the extension to .eps or .ai didn't work, either. I also looked into potential font conflicts (none) and restarted my Mac (OS 10.7.5) to no avail.
    Thoughts/suggestions most welcome!

    Illustrator is not designed to be a pdf editor, so save a .ai file backup always.
    A restart, as you did, of Illustrator or your mac will allow you to open the .pdf, or resetting your font cache with fontnuke.
    Update to 16.04, and especially check if acrobat needs updating.
    I have had and so have others problems with making .pdfs if you do not have a printer chosen, usually you get an error could not save .pdf but check you have a printer chosen in system preferences >> Print & Scan .

  • CS5 - Cannot Open File Error

    Hi everyone! I'm getting the attached error when I open up a file, supposedly a CS5 document. I own CS5. Are there plugins I need to install?

    That is NOT a CS5 file. It’s either CS5.5 or CS6.
    Bob

  • Cannot open file, even with updates- help please!

    Every time I try to open/download this file, http://www.sba.gov/sites/default/files/forms/SBA%20413_0.pdf , I get this message:
    Warning: This form is not supported with the current version of Acrobat or Adobe Reader.
    Upgrade to the latest version for full support
    I have upgraded, and still no luck.
    I need to get this resolved today! Thank you

    You are either using Google Chrome with their PDF viewer or Mozilla Firefox with their PDF viewer.  This file is a LiveCycle Designer XFA document and those two viewers don't have a clue on how to render an XFA form.  Follow Bernd's advice and you should be good.

  • Cannot Open File error CS4 upgrade plug-ins

    My business partner has been working on an indesign file and when I try to open it on my system running CS4 i get the following error message.
    "upgrade your plug-ins to their latest versions or upgrade to the latest version"
    Am I missing something here?  Excuse my ignorance : He's working in CS4 as well version 6.
    Thanks

    simple_photo wrote:He's working in CS4 as well version 6.
    And what version are you working in? If Version 6 (CS4 -- version 4 is CS2), is ir patched to AT LEAST 6.0.5

Maybe you are looking for

  • Multiple copies in sequence

    Hi, I need to print multiple copies (3) of documents in sequence. So for example of we are printing a 2 page shipping note the customer would like page 1 printed 3 times first and then page 2 printed 3 times. I know we can print  multiple copies by m

  • Incorrect value for global variable

    Hi, I am facing an issue in a query. In the query there is a Global variable 'Volume type'. In the default value tab of the variable it is given Default value as Litre. In the table RSZGLOBV also i have checked the global variable and there also the

  • Has anybody implemented FBEAN with dispatchCustomEvent?

    Have successfully implemented a lot of Beans without custom event handling, now I need this. So I have defined following test.java: import oracle.forms.handler.IHandler; import oracle.forms.properties.ID; import oracle.forms.ui.CustomEvent; import or

  • Udated to 1.1.4 Mail app crashes

    I just updated my iPod Touch to 1.1.4 now every time I tap the Mail.App it comes up with a blank white screen then crashes. I tried deleting all the mail accounts from the touch but when I close the settings app they all come back, So the mail accoun

  • New MPEG-Streamclip v1.9.1

    http://www.squared5.com/