<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Gregor,<div><br></div><div>Are you able to get a stack trace so we can see the loop and what is calling setString?</div><div><br></div><div>Scot</div><div><br><div><div>On Jul 31, 2011, at 4:22 PM, Gregor Hageluken wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi,
<div><br>
</div>
<div>I am trying to bind the 'value' property of a BCSequenceView to a TreeController that is again bound to my CoreData model. When I start my app it gets stuck in an infinite loop in the setString: method of BCSequenceView.</div>
<div><br>
</div>
<div>I did not change anything in the code of the class.</div>
<div><br>
</div>
<div>The app works fine when I remove this binding or when I bind it to a normal TextView instead.</div>
<div><br>
</div>
<div>Any idea what's wrong? I am not using the whole BioCocoa framework by the way, just the BCSequenceView class and the BCAppKitDefines.h file.</div>
<div><br>
</div>
<div>Also I get a couple of compiler warnings for this line of code:</div>
<div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(96, 127, 135); ">
<span style="color: #a13fa1">id</span><span style="color: #000000"> <</span>BCSequenceViewDelegate<span style="color: #000000">> delegate = [</span><span style="color: #a13fa1">self</span><span style="color: #000000">
</span><span style="color: #352380">delegate</span><span style="color: #000000">];</span></div>
</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">
<span style="color: rgb(0, 0, 0); ">The warning is: </span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">
Semantic Issue: Initializing 'id<BCSequenceViewDelegate>' with an expression of incompatible type 'id<NSTextViewDelegate>'</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">
Can I do something about that?</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">
<br>
</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">
I am using Xcode 4.1 on OSX Lion.</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Gregor</div>
<div><br>
</div>
<div><br>
</div>
<br>
<br>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; font-family: Cambria; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>
<div>-----</div>
<div>Gregor Hagelueken</div>
<div>Postdoctoral Research Fellow, Naismith Group</div>
<div>Biomedical Sciences Research Complex</div>
<div>University of St Andrews</div>
<div>Purdie Building, North Haugh, St Andrews, Fife, KY16 9ST</div>
<div>Email:<span class="Apple-tab-span" style="white-space: pre; "> </span><a href="mailto:gh50@st-andrews.ac.uk">gh50@st-andrews.ac.uk</a></div>
</div>
<div>Tel:<span class="Apple-converted-space"> </span><span class="Apple-tab-span" style="white-space: pre; ">
</span>+44 1334 467247</div>
<div>-----</div>
</div>
</span></div>
</div>
</div>
<br>
</div>

_______________________________________________<br>Biococoa-dev mailing list<br><a href="mailto:Biococoa-dev@bioinformatics.org">Biococoa-dev@bioinformatics.org</a><br>http://www.bioinformatics.org/mailman/listinfo/biococoa-dev<br></blockquote></div><br></div></body></html>