<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Kommentare zu: Animate NSView&#8217;s scrollToVisible	</title>
	<atom:link href="https://fpposchmann.de/animate-nsviews-scrolltovisible/feed/" rel="self" type="application/rss+xml" />
	<link>https://fpposchmann.de/animate-nsviews-scrolltovisible/</link>
	<description>Consulting &#38; Software</description>
	<lastBuildDate>Tue, 28 Dec 2021 09:15:11 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>
	<item>
		<title>
		Von: Frank-Peter Poschmann		</title>
		<link>https://fpposchmann.de/animate-nsviews-scrolltovisible/#comment-8482</link>

		<dc:creator><![CDATA[Frank-Peter Poschmann]]></dc:creator>
		<pubDate>Tue, 28 Dec 2021 09:15:11 +0000</pubDate>
		<guid isPermaLink="false">https://www.fpposchmann.de/?p=449#comment-8482</guid>

					<description><![CDATA[Als Antwort auf &lt;a href=&quot;https://fpposchmann.de/animate-nsviews-scrolltovisible/#comment-8472&quot;&gt;Adam Nemeceek&lt;/a&gt;.

Yes, a very good idea. Thank you. I would do that if the origin actually changed (i.e. there was a scroll):
&lt;pre class=&quot;lang:swift decode:true &quot;&gt;
let oldOrigin = clipView.bounds.origin          // remember the old origin
...
if newOrigin != oldOrigin {                     // only if origin changed
    scrollView.flashScrollers()                 // and flash the scrollers to indicate position
}
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Yes, a very good idea. Thank you. I would do that if the origin actually changed (i.e. there was a scroll):</p><!-- Urvanov Syntax Highlighter v2.8.38 -->

		<div id="urvanov-syntax-highlighter-679a06afb0a34496808019" class="urvanov-syntax-highlighter-syntax crayon-theme-classic urvanov-syntax-highlighter-font-monaco urvanov-syntax-highlighter-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
		
			<div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><span class="crayon-title"></span>
			<div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><div class="crayon-button urvanov-syntax-highlighter-nums-button" title="Zeilennummern"><div class="urvanov-syntax-highlighter-button-icon"></div></div><div class="crayon-button urvanov-syntax-highlighter-plain-button" title="Unformatierte Code-Ansicht"><div class="urvanov-syntax-highlighter-button-icon"></div></div><div class="crayon-button urvanov-syntax-highlighter-wrap-button" title="Zeilenumbruch umschalten"><div class="urvanov-syntax-highlighter-button-icon"></div></div><div class="crayon-button urvanov-syntax-highlighter-expand-button" title="Code aufklappen"><div class="urvanov-syntax-highlighter-button-icon"></div></div><div class="crayon-button urvanov-syntax-highlighter-copy-button" title="Copy"><div class="urvanov-syntax-highlighter-button-icon"></div></div><div class="crayon-button urvanov-syntax-highlighter-popup-button" title="Code in einem neuen Fenster anzeigen"><div class="urvanov-syntax-highlighter-button-icon"></div></div><span class="crayon-language">Swift</span></div></div>
			<div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;"></div>
			<div class="urvanov-syntax-highlighter-plain-wrap"><textarea wrap="soft" class="urvanov-syntax-highlighter-plain print-no" data-settings="dblclick" readonly style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;">
let oldOrigin = clipView.bounds.origin          // remember the old origin
...
if newOrigin != oldOrigin {                     // only if origin changed
    scrollView.flashScrollers()                 // and flash the scrollers to indicate position
}</textarea></div>
			<div class="urvanov-syntax-highlighter-main" style="">
				<table class="crayon-table">
					<tr class="urvanov-syntax-highlighter-row">
				<td class="crayon-nums " data-settings="show">
					<div class="urvanov-syntax-highlighter-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="urvanov-syntax-highlighter-679a06afb0a34496808019-1">1</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-679a06afb0a34496808019-2">2</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-679a06afb0a34496808019-3">3</div><div class="crayon-num crayon-striped-num" data-line="urvanov-syntax-highlighter-679a06afb0a34496808019-4">4</div><div class="crayon-num" data-line="urvanov-syntax-highlighter-679a06afb0a34496808019-5">5</div></div>
				</td>
						<td class="urvanov-syntax-highlighter-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="urvanov-syntax-highlighter-679a06afb0a34496808019-1"><span class="crayon-r">let</span><span class="crayon-h"> </span><span class="crayon-v">oldOrigin</span><span class="crayon-h"> </span><span class="crayon-o">=</span><span class="crayon-h"> </span><span class="crayon-v">clipView</span><span class="crayon-sy">.</span><span class="crayon-v ">bounds</span><span class="crayon-sy">.</span><span class="crayon-v ">origin</span><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-c">// remember the old origin</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-679a06afb0a34496808019-2"><span class="crayon-o">...</span></div><div class="crayon-line" id="urvanov-syntax-highlighter-679a06afb0a34496808019-3"><span class="crayon-st">if</span><span class="crayon-h"> </span><span class="crayon-v">newOrigin</span><span class="crayon-h"> </span><span class="crayon-o">!=</span><span class="crayon-h"> </span><span class="crayon-e">oldOrigin</span><span class="crayon-h"> </span><span class="crayon-sy">{</span><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="crayon-c">// only if origin changed</span></div><div class="crayon-line crayon-striped-line" id="urvanov-syntax-highlighter-679a06afb0a34496808019-4"><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="crayon-v">scrollView</span><span class="crayon-sy">.</span><span class="crayon-v ">flashScrollers</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span><span class="crayon-h">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="crayon-c">// and flash the scrollers to indicate position</span></div><div class="crayon-line" id="urvanov-syntax-highlighter-679a06afb0a34496808019-5"><span class="crayon-sy">}</span></div></div></td>
					</tr>
				</table>
			</div>
		</div>
<!-- [Format Time: 0.0013 seconds] -->
<p></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Adam Nemeceek		</title>
		<link>https://fpposchmann.de/animate-nsviews-scrolltovisible/#comment-8472</link>

		<dc:creator><![CDATA[Adam Nemeceek]]></dc:creator>
		<pubDate>Mon, 27 Dec 2021 20:15:55 +0000</pubDate>
		<guid isPermaLink="false">https://www.fpposchmann.de/?p=449#comment-8472</guid>

					<description><![CDATA[Consider adding `scrollView.flashScrollers()` to the end of the function.]]></description>
			<content:encoded><![CDATA[<p>Consider adding <code>scrollView.flashScrollers()</code> to the end of the function.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Von: Bruno		</title>
		<link>https://fpposchmann.de/animate-nsviews-scrolltovisible/#comment-1858</link>

		<dc:creator><![CDATA[Bruno]]></dc:creator>
		<pubDate>Sun, 22 Nov 2020 11:31:28 +0000</pubDate>
		<guid isPermaLink="false">https://www.fpposchmann.de/?p=449#comment-1858</guid>

					<description><![CDATA[Thank you :) Just what I was looking for!]]></description>
			<content:encoded><![CDATA[<p>Thank you 🙂 Just what I was looking for!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
