Very small rect in drawRect:
Very small rect in drawRect:
- Subject: Very small rect in drawRect:
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sat, 28 Sep 2013 12:05:36 +0700
I have a CustomView inside a ScrollView. Works fine.
But sometimes (don't know what causes this, or how to reproduce it) my drawRect: method gets called with a very small rect:
-[DriftView drawRect:] Ignore very small rect {{0, 0}, {1, 1}}; visibleRect {{0, 0}, {1393, 189}}
I just ignore these 1-pixel draw requests.
But I am curious: what might cause this? Is this normal, or something to be worried about?
The backtrace does offer me no clues:
#1: 0x00007fff8d0f2140 AppKit`-[NSView _drawRect:clip:] + 4437
#2: 0x00007fff8d0eefb3 AppKit`-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3058
#3: 0x00007fff8d0efa44 AppKit`-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 5763
#4: 0x00007fff8d0efa44 AppKit`-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 5763
#5: 0x00007fff8d0efa44 AppKit`-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 5763
#6: 0x00007fff8d0efa44 AppKit`-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 5763
#7: 0x00007fff8d0ee143 AppKit`-[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 314
#8: 0x00007fff8d0e9d6d AppKit`-[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 4675
#9: 0x00007fff8d0b3c93 AppKit`-[NSView displayIfNeeded] + 1830
#10: 0x00007fff8d0b31cc AppKit`_handleWindowNeedsDisplayOrLayoutOrUpdateConstraints + 738
#11: 0x00007fff8d67e901 AppKit`__83-[NSWindow _postWindowNeedsDisplayOrLayoutOrUpdateConstraintsUnlessPostingDisabled]_block_invoke_01208 + 46
#12: 0x00007fff8c7bb417 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
#13: 0x00007fff8c7bb381 CoreFoundation`__CFRunLoopDoObservers + 369
#14: 0x00007fff8c7967b8 CoreFoundation`__CFRunLoopRun + 728
#15: 0x00007fff8c7960e2 CoreFoundation`CFRunLoopRunSpecific + 290
#16: 0x00007fff8b88eeb4 HIToolbox`RunCurrentEventLoopInMode + 209
#17: 0x00007fff8b88eb94 HIToolbox`ReceiveNextEventCommon + 166
#18: 0x00007fff8b88eae3 HIToolbox`BlockUntilNextEventMatchingListInMode + 62
#19: 0x00007fff8d0b0533 AppKit`_DPSNextEvent + 685
#20: 0x00007fff8d0afdf2 AppKit`-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
#21: 0x00007fff8d0a71a3 AppKit`-[NSApplication run] + 517
#22: 0x00007fff8d04bbd6 AppKit`NSApplicationMain + 869
#23: 0x0000000100036eb2 EnTeP`main(argc=3, argv=0x00007fff5fbff870) + 34 at main.m:13
#24: 0x00000001000019e4 EnTeP`start + 52
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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