Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6713903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:26:03+00:00 2026-05-26T08:26:03+00:00

I have a WebView in a NSWindow and when I close the window and

  • 0

I have a WebView in a NSWindow and when I close the window and open it again the app crashes ;(

The window is called by a menu item button.

Here is the output:

2011-10-22 15:55:32.440 Textis[17176:903] -[__NSCFType mainFrame]: unrecognized selector sent to instance 0x100514e90 
2011-10-22 15:55:32.544 Textis[17176:903] HIToolbox: ignoring exception '-[__NSCFType mainFrame]: unrecognized selector sent to instance 0x100514e90' that raised inside Carbon event dispatch 
( 
    0 CoreFoundation 0x00007fff838b17b4 __exceptionPreprocess + 180 
    1 libobjc.A.dylib 0x00007fff8127af03 objc_exception_throw + 45 
    2 CoreFoundation 0x00007fff8390b110 +[NSObject(NSObject) doesNotRecognizeSelector:] + 0 
    3 CoreFoundation 0x00007fff8388391f ___forwarding___ + 751 
    4 CoreFoundation 0x00007fff8387fa68 _CF_forwarding_prep_0 + 232 
    5 Textis 0x0000000100003722 -[Share tweet:] + 210 
    6 AppKit 0x00007fff84b3eeda -[NSApplication sendAction:to:from:] + 95 
    7 AppKit 0x00007fff84b6346a -[NSMenuItem _corePerformAction] + 365 
    8 AppKit 0x00007fff84b631d4 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 121 
    9 AppKit 0x00007fff84de8cf4 -[NSMenu _internalPerformActionForItemAtIndex:] + 35 
    10 AppKit 0x00007fff84c9a9e9 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 136 
    11 AppKit 0x00007fff84b4599c NSSLMMenuEventHandler + 321 
    12 HIToolbox 0x00007fff8665d7f7 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1002 
    13 HIToolbox 0x00007fff8665cd46 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 395 
    14 HIToolbox 0x00007fff8667aa81 SendEventToEventTarget + 45 
    15 HIToolbox 0x00007fff866a9c35 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 387 
    16 HIToolbox 0x00007fff866d6a0a SendMenuCommandWithContextAndModifiers + 56 
    17 HIToolbox 0x00007fff866d69c2 SendMenuItemSelectedEvent + 101 
    18 HIToolbox 0x00007fff866d68d2 _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 150 
    19 HIToolbox 0x00007fff867dfa69 _ZL19PopUpMenuSelectCoreP8MenuData5PointdS1_tjPK4RecttjS4_S4_PK10__CFStringPP13OpaqueMenuRefPt + 1618 
    20 HIToolbox 0x00007fff867dfdc2 _HandlePopUpMenuSelection7 + 665 
    21 AppKit 0x00007fff84c9799b _NSSLMPopUpCarbonMenu3 + 3720 
    22 AppKit 0x00007fff84ec76f9 -[NSStatusBarButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 162 
    23 AppKit 0x00007fff84bc92f5 -[NSControl mouseDown:] + 624 
    24 AppKit 0x00007fff84ae33a7 -[NSWindow sendEvent:] + 5409 
    25 AppKit 0x00007fff84ec8498 -[NSStatusBarWindow sendEvent:] + 68 
    26 AppKit 0x00007fff84a18afa -[NSApplication sendEvent:] + 4719 
    27 AppKit 0x00007fff849af6de -[NSApplication run] + 474 
    28 AppKit 0x00007fff849a83b0 NSApplicationMain + 364 
    29 Textis 0x00000001000010c2 main + 34 
    30 Textis 0x0000000100001094 start + 52 
    31 ??? 0x0000000000000001 0x0 + 1 
) 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:26:04+00:00Added an answer on May 26, 2026 at 8:26 am

    mainFrame is a method on WebView

    so

    2011-10-22 15:55:32.544 Textis[17176:903] HIToolbox: ignoring exception '-[__NSCFType mainFrame]: unrecognized selector sent to instance 0x100514e90' that raised inside Carbon event dispatch

    points to your WebView being released either by you explicitly or implicitly by the OS when the window is shut. You are hitting a dead pointer.

    Not sure how you are setting up your window but you are probably assuming that the original WebView is still a valid object at a reopen.

    Have a look in that direction.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a NSWindow that hosts a WebView that Ive hooked up to a
In my project (iPhone app) I have a nice webview to allow users to
I have a Cocoa app that uses a WebView to display an HTML interface.
I have a WebView wherein I would like anchor tags with rel=external to open
I have a webview in an iOS App. I have a select box with
I have a webview that loads a webpage. I also have a reload button.
I have a WebView that I'm using to open some files stored in the
I have an Android app that uses a WebView to enable users to install
I have a WebView. I want to load a local HTML file called helloworld.html.
I have a WebView in a TabView. The webView has a button. When the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.