NSBox subclass hangs IB when attempting to add view to the box.
NSBox subclass hangs IB when attempting to add view to the box.
- Subject: NSBox subclass hangs IB when attempting to add view to the box.
- From: Shawn Erickson <email@hidden>
- Date: Fri, 27 Jan 2006 10:37:33 -0800
I am working on a bug report for this but...
I have an NSBox subclass that does more advanced drawing then the
built-in NSBox (gradients, etc.), lets call this subclass FancyBox for
this email. I built a IB palette that contains FancyBox as a palette
item as well as provided an IB inspector panel for FancyBox. All of
that works... I can drag one or more FancyBox instances off of the
palette into views, resize them as needed, and use the inspector panel
to configure the FancyBox. It displays and reacts as expected
(including in IB's run UI mode).
Now if I attempt to drag another view object into an instance of
FancyBox so that it is contained by that instance of FancyBox I see
the "+" mouse cursor and the FancyBox is highlighted as expected. If I
then release the mouse causing the drop operation to finish IB hangs
with the "+" mouse cursor (until the spinning ball of death comes
shows up). While IB is hung it burns 100% of one CPU.
If I sample IB while hung I get the following which appears to not
involve my FancyBox directly (all I really override from NSBox is
drawRect:) but appears to involves IB attempting to understand what
editor that should be used. Not sure what I am doing wrong, what
additional configuration information/api I need to provide to make IB
happy, or if this is even possible (sure hope it is...).
-Shawn
4112 -[NSApplication sendEvent:]
4112 -[NSWindow sendEvent:]
4112 -[IBPaletteView mouseDown:]
4112 -[NSView(NSDrag)
dragImage:at:offset:event:pasteboard:source:slideBack:]
4112 -[NSWindow(NSDrag)
dragImage:at:offset:event:pasteboard:source:slideBack:]
4112 -[NSCoreDragManager
dragImage:fromWindow:at:offset:event:pasteboard:source:slideBack:]
4112 -[NSCoreDragManager
_dragUntilMouseUp:accepted:]
4112 CoreDragStartDragging
4112 DragLoop
4112 DragInApplication
4112 SendDropMessage
4112 DoDropMessage
4112 NSCoreDragReceiveProc
4112 0x28cb4
4112 0x28e40
4112 0x29478
4112 0x29a54
1907 0x29e00
719 CFDictionaryGetValue
479
__CFDictionaryFindBuckets1b
260 objc_msgSend_rtp
260 objc_msgSend_rtp
175
__CFDictionaryFindBuckets1b
30 __NSMapTableHash
30 __NSMapTableHash
14 hashObjectMT
14 hashObjectMT
222 CFDictionaryGetValue
7 0x100000
7
__CFDictionaryFindBuckets1b
7
__CFDictionaryFindBuckets1b
6 hashObjectMT
6 hashObjectMT
5 0x0
5 __NSMapTableHash
5 __NSMapTableHash
395 -[__IBDocument
parentOfObject:]
225 objc_msgSend_rtp
225 objc_msgSend_rtp
106
-[__IBDocument parentOfObject:]
64
-[__IBDocument objectData]
64
-[__IBDocument objectData]
362 objc_msgSend_rtp
362 objc_msgSend_rtp
151 dyld_stub_NSMapGet
151 dyld_stub_NSMapGet
118 objc_msgSend
118 objc_msgSend
104
__CFDictionaryFindBuckets1b
104
__CFDictionaryFindBuckets1b
31
dyld_stub_CFDictionaryGetValue
31
dyld_stub_CFDictionaryGetValue
23 dyld_stub_objc_msgSend
23 dyld_stub_objc_msgSend
4 0x29e00
1499 0x29de8
665
-[IBEditorManager editorForObject:create:]
472 CFDictionaryGetValue
319 CFDictionaryGetValue
153
__CFDictionaryFindBuckets1a
153
__CFDictionaryFindBuckets1a
124
-[IBEditorManager editorForObject:create:]
69
dyld_stub_CFDictionaryGetValue
69
dyld_stub_CFDictionaryGetValue
334 -[__IBDocument
editorForObject:create:]
213 objc_msgSend_rtp
213 objc_msgSend_rtp
121
-[__IBDocument editorForObject:create:]
210 objc_msgSend_rtp
210 objc_msgSend_rtp
181 objc_msgSend
181 objc_msgSend
62 CFDictionaryGetValue
62 CFDictionaryGetValue
17 -[__IBDocument
editorManager]
17
-[__IBDocument editorManager]
16 dyld_stub_objc_msgSend
16 dyld_stub_objc_msgSend
9 0x29de8
5 0x15532c20
5
-[IBEditorManager editorForObject:create:]
5
-[IBEditorManager editorForObject:create:]
108 0x29e24
69 objc_msgSend
69 objc_msgSend
20 dyld_stub_objc_msgSend
20 dyld_stub_objc_msgSend
19 0x29e24
94 objc_msgSend
94 objc_msgSend
94 objc_msgSend
85 -[__IBDocument
parentOfObject:]
85 -[__IBDocument
parentOfObject:]
82 -[__IBDocument
editorForObject:create:]
82 -[__IBDocument
editorForObject:create:]
74 0x4e9ed8
74
-[NSIBObjectData(NSIBObjectDataFrameworkPrivate) parentOfObject:]
74
-[NSIBObjectData(NSIBObjectDataFrameworkPrivate) parentOfObject:]
70 CFDictionaryGetValue
70 CFDictionaryGetValue
62 -[IBEditorManager
editorForObject:create:]
62
-[IBEditorManager editorForObject:create:]
50 0x29de0
50 0x29de0
38 0x29df8
38 0x29df8
20 NSMapGet
20 NSMapGet
14 0x29e0c
14 0x29e0c
6 0x29e14
6 0x29e14
3 0x29dd4
3 0x29dd4
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden