Re: assertion failure from NSScrollView

2013-06-14 Thread James Walker

On 6/12/2013 6:51 PM, James Walker wrote:

In Lion 10.7.4, if the General preference pane has set Show scroll
bars to Automatically based on input device, then when my window
appears I see the following mess in the log.  The other two preference
alternatives don't cause this.  Any idea what's going on?  (The input
device is a mouse, by the way.)


Never mind, I found the problem.  It was code equivalent to

[[NSScrollView new] initWithFrame: someRect]

thus initializing the object twice.

--
  James W. Walker, Innoventive Software LLC
  http://www.frameforge3d.com/
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


assertion failure from NSScrollView

2013-06-12 Thread James Walker
In Lion 10.7.4, if the General preference pane has set Show scroll 
bars to Automatically based on input device, then when my window 
appears I see the following mess in the log.  The other two preference 
alternatives don't cause this.  Any idea what's going on?  (The input 
device is a mouse, by the way.)



2013-06-12 18:43:26.049 XEditorDemo[2074:903] *** Assertion failure in 
-[NSScrollView 
scrollerImpPair:updateScrollerStyleForNewRecommendedScrollerStyle:], 
/SourceCache/AppKit/AppKit-1138.51/AppKit.subproj/NSScrollView.m:4344
2013-06-12 18:43:31.549 CrossPlatformRTFEditorDemo[2074:903] Invalid 
parameter not satisfying: scrollerImpPair == SCROLLER_IMP_PAIR

2013-06-12 18:43:31.553 CrossPlatformRTFEditorDemo[2074:903] (
0   CoreFoundation  0x9772ea67 __raiseError + 231
	1   libobjc.A.dylib 0x995a3149 objc_exception_throw 
+ 155
	2   CoreFoundation  0x97696289 +[NSException 
raise:format:arguments:] + 137
	3   Foundation  0x9cc34233 -[NSAssertionHandler 
handleFailureInMethod:object:file:lineNumber:description:] + 116
	4   AppKit  0x915f1d2e 
-[NSScrollView(NSPrivate) 
scrollerImpPair:updateScrollerStyleForNewRecommendedScrollerStyle:] + 152
	5   AppKit  0x9170a3a0 +[NSScrollerImpPair 
_updateAllScrollerImpPairsForNewRecommendedScrollerStyle:] + 446
	6   AppKit  0x9170a131 +[NSScrollerImpPair 
_scrollerStyleRecommendationChanged:] + 159
	7   Foundation  0x9cb70df1 
__-[NSNotificationCenter 
addObserver:selector:name:object:]_block_invoke_1 + 49
	8   CoreFoundation  0x9766e903 
___CFXNotificationPost_block_invoke_1 + 275
	9   CoreFoundation  0x97639688 _CFXNotificationPost 
+ 2776
	10  Foundation  0x9cb5bfde 
-[NSNotificationCenter postNotificationName:object:userInfo:] + 92
	11  AppKit  0x9101bf9b 
-[_NSScrollerStyleRecommender setRecommendedScrollerStyleAndNotify:] + 260
	12  AppKit  0x9101be92 
__-[_NSScrollerStyleRecommender 
scrollerStyleRecommendationUpdateTimerFired:]_block_invoke_1 + 43
	13  AppKit  0x9101be62 
___NSDetectScrollDevicesThenInvokeOnMainQueue_block_invoke_3 + 32
	14  libdispatch.dylib   0x974a3fbd 
_dispatch_call_block_and_release + 15
	15  libdispatch.dylib   0x974a5f4d 
_dispatch_main_queue_callback_4CF + 260

16  CoreFoundation  0x97624d43 __CFRunLoopRun + 2003
	17  CoreFoundation  0x976241dc CFRunLoopRunSpecific 
+ 332

18  CoreFoundation  0x97624088 CFRunLoopRunInMode + 
120
	19  HIToolbox   0x92b20543 
RunCurrentEventLoopInMode + 318
	20  HIToolbox   0x92b278ab 
ReceiveNextEventCommon + 381
	21  HIToolbox   0x92b2771a 
BlockUntilNextEventMatchingListInMode + 88

22  AppKit  0x90dd1ee8 _DPSNextEvent + 678
	23  AppKit  0x90dd1752 -[NSApplication 
nextEventMatchingMask:untilDate:inMode:dequeue:] + 113
	24  AppKit  0x90dcdac1 -[NSApplication run] 
+ 911


--
  James W. Walker, Innoventive Software LLC
  http://www.frameforge3d.com/
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com