• 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
Crash with NSToolbarItem containing custom view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash with NSToolbarItem containing custom view


  • Subject: Crash with NSToolbarItem containing custom view
  • From: Glen Simmons <email@hidden>
  • Date: Mon, 9 Apr 2007 11:42:26 -0500

I'm getting a crash when dragging my custom NSToolbarItem off of the customize sheet. It contains an NSView which contains an NSPopupButton subclass. I have several other toolbar items that are very similar, but aren't crashing. Anyone have any ideas? The backtrace looks like this:

#0 0xfffeff18 in objc_msgSend_rtp
#1 0x92c46d3c in _encodeObject
#2 0x93b24a10 in -[NSMenuItem encodeWithCoder:]
#3 0x92c47058 in _encodeObject
#4 0x92c476a4 in -[NSKeyedArchiver _encodeArrayOfObjects:forKey:]
#5 0x92c4154c in -[NSArray encodeWithCoder:]
#6 0x92c47058 in _encodeObject
#7 0x93b22d24 in -[NSMenu encodeWithCoder:]
#8 0x92c47058 in _encodeObject
#9 0x93b4512c in -[NSPopUpButtonCell encodeWithCoder:]
#10 0x92c47058 in _encodeObject
#11 0x93902fcc in -[NSControl encodeWithCoder:]
#12 0x92c47058 in _encodeObject
#13 0x92c476a4 in -[NSKeyedArchiver _encodeArrayOfObjects:forKey:]
#14 0x92c4154c in -[NSArray encodeWithCoder:]
#15 0x92c47058 in _encodeObject
#16 0x93902a10 in -[NSView encodeWithCoder:]
#17 0x92c47058 in _encodeObject
#18 0x92c48060 in +[NSKeyedArchiver archivedDataWithRootObject:]
#19 0x93bdb654 in -[NSToolbarItem _copyOfCustomView]
#20 0x93bdb72c in -[NSToolbarItem copyWithZone:]
#21 0x93be31c4 in -[NSToolbarView(_ItemDragAndDropSupport) _beginSrcDragItemWithEvent:]
#22 0x93be00f8 in -[NSToolbarView mouseDown:]
#23 0x937fd890 in -[NSWindow sendEvent:]
#24 0x937a68d4 in -[NSApplication sendEvent:]
#25 0x0041bd58 in -[OmjApplication sendEvent:] at OmjApplication.mm:44
#26 0x9379dd10 in -[NSApplication run]
#27 0x9388e87c in NSApplicationMain
#28 0x00004a44 in main at main.mm:29



Thanks, Glen Simmons _______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: How to make NSWindow redraw vacated rects "ifNeeded"?
  • Next by Date: Re: How to make NSWindow redraw vacated rects "ifNeeded"?
  • Previous by thread: Re: [SOLVED] Retrieving URL from NSImage
  • Next by thread: Using Carbon printing in Cocoa app; page setup and print sheets detached!
  • Index(es):
    • Date
    • Thread