• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Things that go bmp in the night...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Things that go bmp in the night...


  • Subject: Re: Things that go bmp in the night...
  • From: Andrew Platzer <email@hidden>
  • Date: Wed, 29 Oct 2003 11:30:40 -0800

On Oct 29, 2003, at 9:33 AM, Ali Ozer wrote:
Later I had a stab at writing a smaller app to use as a test case for submitting a bug to Apple, with no effect. So before submitting a bug report without any way of reproducing it (short of sending my entire source to Apple) I thought of asking you folks to see if anybody's ever run into setMnemonicLocation... or even heard of it.

The setting of the NSNotFound mnemonic location is normal; however the crash indicates that something had at some point been assigned a mnemonic, then freed without being removed from the table, somehow.

Do you have an old nib file where some item might have a mnemonic?

In the AppKit, there is a mnemonic table that links an NSCell with an mnemonic location. The reference to the NSCell is not retained when added to the table. Looking at the code, it looks like it may be possible to have a cell deallocated but not clear out the table. The crash is not directly related to NSMenuItemCell but it just happens that the drawing code does call -setMnemonicLocation:.

I would put a NSLog message in your override of -setMnemonicLocation: and see which cell is setting a mnemonic location. Probably an old nib file and you can clear it out. Please file a bug (or if you aren't a developer contact me and I'll fix it.)

Andrew
_______________________________
Andrew Platzer
Application Frameworks
Apple Computer, Inc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Things that go bmp in the night... (From: Rainer Brockerhoff <email@hidden>)
 >Re: Things that go bmp in the night... (From: Ali Ozer <email@hidden>)

  • Prev by Date: Re: Checking NSTextFields stringValue
  • Next by Date: Re: Sharing frameworks between applications
  • Previous by thread: Re: Things that go bmp in the night...
  • Next by thread: WebKit headers?
  • Index(es):
    • Date
    • Thread