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 783137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:29:58+00:00 2026-05-14T20:29:58+00:00

Using the documentation provided by Apple to create an application preferences window that doesn’t

  • 0

Using the documentation provided by Apple to create an application preferences window that doesn’t require any extra code, I seem to have triggered a crash that I cannot trace.

While the stuff from Apple is older, I believe I have the settings pretty much the same as shown here:

When I run my application (Hcode) and go to the preferences menu item, it brings up the proper window with the defaults I specified in the bindings with the exception of the Spaces per tab is blank (no idea how to fix this).

When the window is closed, the application crashes with a backtrace similar to this:

(gdb) bt
#0  0x00007fff800cb1d4 in objc_msgSend_vtable5 ()
#1  0x00007fff80447cf3 in -[NSMenu _enableItem:] ()
#2  0x00007fff80447ad8 in -[NSCarbonMenuImpl _carbonUpdateStatusEvent:handlerCallRef:] ()
#3  0x00007fff8042b3b0 in NSSLMMenuEventHandler ()
#4  0x00007fff80e06b57 in DispatchEventToHandlers ()
#5  0x00007fff80e060a6 in SendEventToEventTargetInternal ()
#6  0x00007fff80e23d85 in SendEventToEventTarget ()
#7  0x00007fff80e52e61 in SendHICommandEvent ()
#8  0x00007fff80e66357 in UpdateHICommandStatusWithCachedEvent ()
#9  0x00007fff80e02a6d in HIApplication::EventHandler ()
#10 0x00007fff80e06b57 in DispatchEventToHandlers ()
#11 0x00007fff80e060a6 in SendEventToEventTargetInternal ()
#12 0x00007fff80e23d85 in SendEventToEventTarget ()
#13 0x00007fff80e6599b in SendMenuOpening ()
#14 0x00007fff80e65388 in DrawTheMenu ()
#15 0x00007fff80e65149 in MenuChanged ()
#16 0x00007fff80e643d4 in TrackMenuCommon ()
#17 0x00007fff80e60dbe in MenuSelectCore ()
#18 0x00007fff80e60596 in _HandleMenuSelection2 ()
#19 0x00007fff802fc3b9 in _NSHandleCarbonMenuEvent ()
#20 0x00007fff802cfeda in _DPSNextEvent ()
#21 0x00007fff802cf379 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#22 0x00007fff8029505b in -[NSApplication run] ()
#23 0x00007fff8028dd7c in NSApplicationMain ()
#24 0x0000000100001cac in main (argc=1, argv=0x7fff5fbff5e0) at /Users/iaefai/Projects/Hcode/Source/main.m:13

I am at a complete loss as to what the problem is. Is there potentially a better way of doing this?

  • 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-14T20:29:58+00:00Added an answer on May 14, 2026 at 8:29 pm

    Your stack trace shows a crash in updating/drawing a menu item. This seems to have nothing to do with your bound checkbox.

    Run your app in Instruments with its Zombies template; it’ll probably tell you that you (or Cocoa) sent a message to a deallocated object. Find out what the object was, and fix the under-retention or over-release that caused it to die prematurely.

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

Sidebar

Related Questions

I'm using the Reverse Geocoding provided by Apple (Linked to the dev documentation at
The Apple Developer Documentation (link is dead now) explains that if you place a
I am using XML documentation headers on my c# files to pass the StyleCop
I am currently writing some extensive documentation using Sphinx for a rather complex Django
Our company publishes our software product's documentation using a custom-built content management system using
I am currently in the process of creating API documentation using Microsoft Word 2007
I'm totally new to django, and I'm using its documentation to get help on
I am using reading the documentation for app domains in .net 3.5 and came
we are using the Flowplayer ( Documentation ) in one of our webprojects. I
How to document methods with parameters using Python's documentation strings? PEP 257 gives this

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.