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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:41:24+00:00 2026-06-01T11:41:24+00:00

I’m trying to change the current selection of a NSTableView with the following code:

  • 0

I’m trying to change the current selection of a NSTableView with the following code:

[self.modesTable selectRowIndexes:indexSet byExtendingSelection:NO];

and I’m getting the following error:

-[__NSCFDictionary setObject:forKey:]: mutating method sent to immutable object

I’m not using any dictionary at all. Anybody knows where this might come from?

Here’s the stack trace:

2012-04-03 18:14:00.598 TurnMode[7130:403] An uncaught exception was raised
2012-04-03 18:14:00.599 TurnMode[7130:403] -[__NSCFDictionary setObject:forKey:]: mutating method sent to immutable object
2012-04-03 18:14:00.603 TurnMode[7130:403] (
    0   CoreFoundation                      0x00007fff8ac44fc6 __exceptionPreprocess + 198
    1   libobjc.A.dylib                     0x00007fff8644cd5e objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff8ac44dfa +[NSException raise:format:arguments:] + 106
    3   CoreFoundation                      0x00007fff8ac44d84 +[NSException raise:format:] + 116
    4   CoreFoundation                      0x00007fff8ac01ec0 -[__NSCFDictionary setObject:forKey:] + 96
    5   TurnMode                            0x0000000100009722 -[FRRMode saveObject:named:] + 210
    6   TurnMode                            0x0000000100008f20 -[FRRMode saveToUserDefaults] + 192
    7   TurnMode                            0x000000010000701d -[FRRPreferencesController tableViewSelectionDidChange:] + 125
    8   Foundation                          0x00007fff877b7d32 __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 47
    9   CoreFoundation                      0x00007fff8abedaaa _CFXNotificationPost + 2634
    10  Foundation                          0x00007fff877a3fe7 -[NSNotificationCenter postNotificationName:object:userInfo:] + 65
    11  AppKit                              0x00007fff8bcd51d9 -[NSTableView _sendSelectionChangedNotificationForRows:columns:] + 203
    12  AppKit                              0x00007fff8bcabbfe -[NSTableView _enableSelectionPostingAndPost] + 425
    13  AppKit                              0x00007fff8bcd4045 -[NSTableView _doSelectIndexes:byExtendingSelection:indexType:funnelThroughSingleIndexVersion:] + 2915
    14  TurnMode                            0x0000000100006662 -[FRRPreferencesController syncViewWithTempModel] + 914
    15  TurnMode                            0x0000000100006c76 -[FRRPreferencesController showPreferencesView:] + 438
    16  CoreFoundation                      0x00007fff8ac3475d -[NSObject performSelector:withObject:] + 61
    17  AppKit                              0x00007fff8bc6ecb2 -[NSApplication sendAction:to:from:] + 139
    18  AppKit                              0x00007fff8bd5bfe7 -[NSMenuItem _corePerformAction] + 399
    19  AppKit                              0x00007fff8bd5bd1e -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 125
    20  AppKit                              0x00007fff8bff9dd4 -[NSMenu _internalPerformActionForItemAtIndex:] + 38
    21  AppKit                              0x00007fff8be8a3a9 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 138
    22  AppKit                              0x00007fff8bcd5b4b NSSLMMenuEventHandler + 339
    23  HIToolbox                           0x00007fff8d6f4294 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1263
    24  HIToolbox                           0x00007fff8d6f38a0 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 446
    25  HIToolbox                           0x00007fff8d70a677 SendEventToEventTarget + 76
    26  HIToolbox                           0x00007fff8d7506c1 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 398
    27  HIToolbox                           0x00007fff8d837c59 SendMenuCommandWithContextAndModifiers + 56
    28  HIToolbox                           0x00007fff8d87e73d SendMenuItemSelectedEvent + 253
    29  HIToolbox                           0x00007fff8d7497bb _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 101
    30  HIToolbox                           0x00007fff8d877175 _ZL19PopUpMenuSelectCoreP8MenuData5PointdS1_tjPK4RecttjS4_S4_PK10__CFStringPP13OpaqueMenuRefPt + 1660
    31  HIToolbox                           0x00007fff8d877434 _HandlePopUpMenuSelection7 + 621
    32  AppKit                              0x00007fff8be8d075 _NSSLMPopUpCarbonMenu3 + 3860
    33  AppKit                              0x00007fff8c2386b6 _NSPopUpCarbonMenu3 + 39
    34  AppKit                              0x00007fff8be8b1da -[NSCarbonMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:] + 322
    35  AppKit                              0x00007fff8c0eb8da +[NSStatusBarButtonCell popupStatusBarMenu:inRect:ofView:withEvent:] + 673
    36  AppKit                              0x00007fff8c0ebb85 -[NSStatusBarButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 147
    37  AppKit                              0x00007fff8bc6cbde -[NSControl mouseDown:] + 786
    38  AppKit                              0x00007fff8bc376e0 -[NSWindow sendEvent:] + 6306
    39  AppKit                              0x00007fff8c0ec598 -[NSStatusBarWindow sendEvent:] + 66
    40  AppKit                              0x00007fff8bbd016d -[NSApplication sendEvent:] + 5593
    41  AppKit                              0x00007fff8bb661f2 -[NSApplication run] + 555
    42  AppKit                              0x00007fff8bde4b88 NSApplicationMain + 867
    43  TurnMode                            0x0000000100001ab2 main + 34
    44  TurnMode                            0x0000000100001a84 start + 52
)
  • 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-06-01T11:41:24+00:00Added an answer on June 1, 2026 at 11:41 am

    The exception is definitely caused by calling -[NSDictionary setObject:forKey:] in -[FRRMode saveObject:named:].

    If you are indeed not using any dictionaries in this method, you should still look for setObject:forKey:. If you over-release an object, its memory address may be occupied by an NSDictionary which obviously does not respond to the selector.

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

Sidebar

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

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.