From gh50 at st-andrews.ac.uk Tue Sep 13 15:17:17 2011 From: gh50 at st-andrews.ac.uk (Gregor Hageluken) Date: Tue, 13 Sep 2011 19:17:17 +0000 Subject: [Biococoa-dev] BCSequenceView In-Reply-To: References: <4DAC1A0A-C2DC-4C83-B566-DA3107851EE6@st-andrews.ac.uk> <550371CF-898E-459F-97AC-D414A06EA9B6@mac.com> <09D4A5DC-AD75-4C04-9F79-A12E71CF3396@st-andrews.ac.uk> <3436BBA1-36C4-4C03-9016-8A1D1FE2D60E@mac.com> Message-ID: <6C7440A9-10FE-4901-97B7-293B0BDEDC0B@st-andrews.ac.uk> Hi, I finally found a way around that BCSequenceView problem that I posted a while ago. As I said, it always got caught in an infinite loop calling the setString method. This only happened when I bound the value property of the BCSequenceView to my CoreData model. Turns out I could just delete the setString method from the BCSequenceView class and everything works just fine. I have been using the version of my app without the BCSequenceView for a year now and I use it almost every day for my lab work. I figured it might be quite useful and thus it is now on the Mac App Store: https://sites.google.com/site/proteinsapp/ Cheers, Gregor On 3 Aug 2011, at 15:53, Koen van der Drift wrote: > To me, adding frameworks in Xcode sucks... It is not very intuitive, > and takes several steps. I will try to build the Peptides app tonight > with Xcode 4/Lion and see how it works. > > Cheers, > > - Koen. > > ps, Gregor, when you reply could you reply to the list and not just to > Scott, so we can all see your posts? Thanks :) > > > On Tue, Aug 2, 2011 at 6:15 PM, Scott Christley wrote: >> Hi Gregor, >> Somebody mentioned this not too long ago on the mailing list, but I forgot >> what the solution was though, maybe they will chime in. I tend to always >> copy BioCocoa.framework into /Library/Frameworks, so you can see if that >> works, otherwise it is something like deleting and re-adding the framework >> into the xcode project or something like that. >> Scott >> On Aug 2, 2011, at 4:55 PM, Gregor Hageluken wrote: >> >> Hi Scott, >> I am trying to compile the Peptides app, but I am having problems with >> linking the framework to it. I always get the error below. Before that, I >> compiled the framework and added it to the Biococoa samples Xcode project >> via 'Link Binaries with library' and I also added a 'copy bundle resources' >> build phase. That is why I only added the BCSequenceView class to my app. I >> couldn't get the whole Framework linked to it. >> However, I tried if the EnzymeX app still works on Lion because I think it >> also uses BCSequenceView. And that works without any problems. >> Here is the error when I try to compile the Peptides.app: >> GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul 1 10:50:06 UTC >> 2011) >> Copyright 2004 Free Software Foundation, Inc. >> GDB is free software, covered by the GNU General Public License, and you are >> welcome to change it and/or distribute copies of it under certain >> conditions. >> Type "show copying" to see the conditions. >> There is absolutely no warranty for GDB. Type "show warranty" for details. >> This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys000 >> warning: Unable to read symbols for >> @executable_path/../Frameworks/BioCocoa.framework/Versions/A/BioCocoa (file >> not found). >> warning: Unable to read symbols from "BioCocoa" (not yet mapped into >> memory). >> [Switching to process 40114 thread 0x0] >> dyld: Library not loaded: >> @executable_path/../Frameworks/BioCocoa.framework/Versions/A/BioCocoa >> Referenced from: >> /Users/gha/Library/Developer/Xcode/DerivedData/BioCocoaDemos-edqepdxbqxxpskctncdqmziaeyjr/Build/Products/Debug/Peptides.app/Contents/MacOS/Peptides >> Reason: image not found >> sharedlibrary apply-load-rules all >> (gdb) >> Cheers, >> Gregor >> On 2 Aug 2011, at 00:57, Scott Christley wrote: >> >> Nope, I highly doubt it as that is a simple casting warning about a protocol >> and shouldn't affect runtime behavior. >> Scott >> On Aug 1, 2011, at 5:50 PM, Gregor Hageluken wrote: >> >> Hi Scott, >> I will let you know if the peptides app works. In the meantime, could it >> have anything to do with this warning that I get: >> >> >> it appears at several places in the BCSequenceView class. >> Cheers, >> Gregor >> ----- >> Gregor Hagelueken >> Postdoctoral Research Fellow, Naismith Group >> Biomedical Sciences Research Complex >> University of St Andrews >> Purdie Building, North Haugh, St Andrews, Fife, KY16 9ST >> Email: gh50 at st-andrews.ac.uk >> Tel: +44 1334 467247 >> ----- >> >> >> ----- >> Gregor Hagelueken >> Postdoctoral Research Fellow, Naismith Group >> Biomedical Sciences Research Complex >> University of St Andrews >> Purdie Building, North Haugh, St Andrews, Fife, KY16 9ST >> Email: gh50 at st-andrews.ac.uk >> Tel: +44 1334 467247 >> ----- >> >> >> _______________________________________________ >> Biococoa-dev mailing list >> Biococoa-dev at bioinformatics.org >> http://www.bioinformatics.org/mailman/listinfo/biococoa-dev >> >> > > _______________________________________________ > Biococoa-dev mailing list > Biococoa-dev at bioinformatics.org > http://www.bioinformatics.org/mailman/listinfo/biococoa-dev ----- Gregor Hagelueken Postdoctoral Research Fellow, Naismith Group Biomedical Sciences Research Complex University of St Andrews Purdie Building, North Haugh, St Andrews, Fife, KY16 9ST Email: gh50 at st-andrews.ac.uk Tel: +44 1334 467247 ----- From sweetcocoa at mac.com Tue Sep 13 15:24:46 2011 From: sweetcocoa at mac.com (Peter Schols) Date: Tue, 13 Sep 2011 21:24:46 +0200 Subject: [Biococoa-dev] BCSequenceView In-Reply-To: <6C7440A9-10FE-4901-97B7-293B0BDEDC0B@st-andrews.ac.uk> References: <4DAC1A0A-C2DC-4C83-B566-DA3107851EE6@st-andrews.ac.uk> <550371CF-898E-459F-97AC-D414A06EA9B6@mac.com> <09D4A5DC-AD75-4C04-9F79-A12E71CF3396@st-andrews.ac.uk> <3436BBA1-36C4-4C03-9016-8A1D1FE2D60E@mac.com> <6C7440A9-10FE-4901-97B7-293B0BDEDC0B@st-andrews.ac.uk> Message-ID: <0569B4EA-82AC-4D14-BC38-94333F489E6C@mac.com> Hi Gregor, Congratulations! It's really great to see a shipping app based on BioCocoa! Best wishes, Peter Let your Macs watch your house while you are away http://orbicule.com/witness On 13 Sep 2011, at 21:17, Gregor Hageluken wrote: > Hi, > > I finally found a way around that BCSequenceView problem that I posted a while ago. As I said, it always got caught in an infinite loop calling the setString method. This only happened when I bound the value property of the BCSequenceView to my CoreData model. > Turns out I could just delete the setString method from the BCSequenceView class and everything works just fine. > > I have been using the version of my app without the BCSequenceView for a year now and I use it almost every day for my lab work. I figured it might be quite useful and thus it is now on the Mac App Store: > https://sites.google.com/site/proteinsapp/ > > Cheers, > Gregor > > > > > On 3 Aug 2011, at 15:53, Koen van der Drift wrote: > >> To me, adding frameworks in Xcode sucks... It is not very intuitive, >> and takes several steps. I will try to build the Peptides app tonight >> with Xcode 4/Lion and see how it works. >> >> Cheers, >> >> - Koen. >> >> ps, Gregor, when you reply could you reply to the list and not just to >> Scott, so we can all see your posts? Thanks :) >> >> >> On Tue, Aug 2, 2011 at 6:15 PM, Scott Christley wrote: >>> Hi Gregor, >>> Somebody mentioned this not too long ago on the mailing list, but I forgot >>> what the solution was though, maybe they will chime in. I tend to always >>> copy BioCocoa.framework into /Library/Frameworks, so you can see if that >>> works, otherwise it is something like deleting and re-adding the framework >>> into the xcode project or something like that. >>> Scott >>> On Aug 2, 2011, at 4:55 PM, Gregor Hageluken wrote: >>> >>> Hi Scott, >>> I am trying to compile the Peptides app, but I am having problems with >>> linking the framework to it. I always get the error below. Before that, I >>> compiled the framework and added it to the Biococoa samples Xcode project >>> via 'Link Binaries with library' and I also added a 'copy bundle resources' >>> build phase. That is why I only added the BCSequenceView class to my app. I >>> couldn't get the whole Framework linked to it. >>> However, I tried if the EnzymeX app still works on Lion because I think it >>> also uses BCSequenceView. And that works without any problems. >>> Here is the error when I try to compile the Peptides.app: >>> GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul 1 10:50:06 UTC >>> 2011) >>> Copyright 2004 Free Software Foundation, Inc. >>> GDB is free software, covered by the GNU General Public License, and you are >>> welcome to change it and/or distribute copies of it under certain >>> conditions. >>> Type "show copying" to see the conditions. >>> There is absolutely no warranty for GDB. Type "show warranty" for details. >>> This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys000 >>> warning: Unable to read symbols for >>> @executable_path/../Frameworks/BioCocoa.framework/Versions/A/BioCocoa (file >>> not found). >>> warning: Unable to read symbols from "BioCocoa" (not yet mapped into >>> memory). >>> [Switching to process 40114 thread 0x0] >>> dyld: Library not loaded: >>> @executable_path/../Frameworks/BioCocoa.framework/Versions/A/BioCocoa >>> Referenced from: >>> /Users/gha/Library/Developer/Xcode/DerivedData/BioCocoaDemos-edqepdxbqxxpskctncdqmziaeyjr/Build/Products/Debug/Peptides.app/Contents/MacOS/Peptides >>> Reason: image not found >>> sharedlibrary apply-load-rules all >>> (gdb) >>> Cheers, >>> Gregor >>> On 2 Aug 2011, at 00:57, Scott Christley wrote: >>> >>> Nope, I highly doubt it as that is a simple casting warning about a protocol >>> and shouldn't affect runtime behavior. >>> Scott >>> On Aug 1, 2011, at 5:50 PM, Gregor Hageluken wrote: >>> >>> Hi Scott, >>> I will let you know if the peptides app works. In the meantime, could it >>> have anything to do with this warning that I get: >>> >>> >>> it appears at several places in the BCSequenceView class. >>> Cheers, >>> Gregor >>> ----- >>> Gregor Hagelueken >>> Postdoctoral Research Fellow, Naismith Group >>> Biomedical Sciences Research Complex >>> University of St Andrews >>> Purdie Building, North Haugh, St Andrews, Fife, KY16 9ST >>> Email: gh50 at st-andrews.ac.uk >>> Tel: +44 1334 467247 >>> ----- >>> >>> >>> ----- >>> Gregor Hagelueken >>> Postdoctoral Research Fellow, Naismith Group >>> Biomedical Sciences Research Complex >>> University of St Andrews >>> Purdie Building, North Haugh, St Andrews, Fife, KY16 9ST >>> Email: gh50 at st-andrews.ac.uk >>> Tel: +44 1334 467247 >>> ----- >>> >>> >>> _______________________________________________ >>> Biococoa-dev mailing list >>> Biococoa-dev at bioinformatics.org >>> http://www.bioinformatics.org/mailman/listinfo/biococoa-dev >>> >>> >> >> _______________________________________________ >> Biococoa-dev mailing list >> Biococoa-dev at bioinformatics.org >> http://www.bioinformatics.org/mailman/listinfo/biococoa-dev > > ----- > Gregor Hagelueken > Postdoctoral Research Fellow, Naismith Group > Biomedical Sciences Research Complex > University of St Andrews > Purdie Building, North Haugh, St Andrews, Fife, KY16 9ST > Email: gh50 at st-andrews.ac.uk > Tel: +44 1334 467247 > ----- > > > _______________________________________________ > Biococoa-dev mailing list > Biococoa-dev at bioinformatics.org > http://www.bioinformatics.org/mailman/listinfo/biococoa-dev From koenvanderdrift at gmail.com Tue Sep 13 15:33:42 2011 From: koenvanderdrift at gmail.com (Koen van der Drift) Date: Tue, 13 Sep 2011 15:33:42 -0400 Subject: [Biococoa-dev] BCSequenceView In-Reply-To: <6C7440A9-10FE-4901-97B7-293B0BDEDC0B@st-andrews.ac.uk> References: <4DAC1A0A-C2DC-4C83-B566-DA3107851EE6@st-andrews.ac.uk> <550371CF-898E-459F-97AC-D414A06EA9B6@mac.com> <09D4A5DC-AD75-4C04-9F79-A12E71CF3396@st-andrews.ac.uk> <3436BBA1-36C4-4C03-9016-8A1D1FE2D60E@mac.com> <6C7440A9-10FE-4901-97B7-293B0BDEDC0B@st-andrews.ac.uk> Message-ID: Hi Gregor, Glad you figured out what was wrong with BCSequenceView. Your app looks great, actuallly a lot similar to one I was working on for a bit, but then got distracted by other aspects of life :) I'm interested to learn how you are using CoreData with BioCocoa, do you think this could be added to the project? Cheers, - Koen. On Tue, Sep 13, 2011 at 3:17 PM, Gregor Hageluken wrote: > Hi, > > I finally found a way around that BCSequenceView problem that I posted a while ago. As I said, it always got caught in an infinite loop calling the setString method. This only happened when I bound the value property of the BCSequenceView to my CoreData model. > Turns out I could just delete the setString method from the BCSequenceView class and everything works just fine. > > I have been using the version of my app without the BCSequenceView for a year now and I use it almost every day for my lab work. I figured it might be quite useful and thus it is now on the Mac App Store: > https://sites.google.com/site/proteinsapp/ > > Cheers, > Gregor From charles.parnot at gmail.com Tue Sep 13 19:22:35 2011 From: charles.parnot at gmail.com (Charles Parnot) Date: Tue, 13 Sep 2011 16:22:35 -0700 Subject: [Biococoa-dev] BCSequenceView In-Reply-To: <6C7440A9-10FE-4901-97B7-293B0BDEDC0B@st-andrews.ac.uk> References: <4DAC1A0A-C2DC-4C83-B566-DA3107851EE6@st-andrews.ac.uk> <550371CF-898E-459F-97AC-D414A06EA9B6@mac.com> <09D4A5DC-AD75-4C04-9F79-A12E71CF3396@st-andrews.ac.uk> <3436BBA1-36C4-4C03-9016-8A1D1FE2D60E@mac.com> <6C7440A9-10FE-4901-97B7-293B0BDEDC0B@st-andrews.ac.uk> Message-ID: <5D6830F5-6C3A-4175-9451-9AC1FDC0A4E7@gmail.com> Thanks for the heads-up and congrats on the move, Gregor. It's nice to see some biochemistry / molecular biology stuff on the Mac App Store! charles On Sep 13, 2011, at 12:17 PM, Gregor Hageluken wrote: > Hi, > > I finally found a way around that BCSequenceView problem that I posted a while ago. As I said, it always got caught in an infinite loop calling the setString method. This only happened when I bound the value property of the BCSequenceView to my CoreData model. > Turns out I could just delete the setString method from the BCSequenceView class and everything works just fine. > > I have been using the version of my app without the BCSequenceView for a year now and I use it almost every day for my lab work. I figured it might be quite useful and thus it is now on the Mac App Store: > https://sites.google.com/site/proteinsapp/ > > Cheers, > Gregor > > > > > On 3 Aug 2011, at 15:53, Koen van der Drift wrote: > >> To me, adding frameworks in Xcode sucks... It is not very intuitive, >> and takes several steps. I will try to build the Peptides app tonight >> with Xcode 4/Lion and see how it works. >> >> Cheers, >> >> - Koen. >> >> ps, Gregor, when you reply could you reply to the list and not just to >> Scott, so we can all see your posts? Thanks :) >> >> >> On Tue, Aug 2, 2011 at 6:15 PM, Scott Christley wrote: >>> Hi Gregor, >>> Somebody mentioned this not too long ago on the mailing list, but I forgot >>> what the solution was though, maybe they will chime in. I tend to always >>> copy BioCocoa.framework into /Library/Frameworks, so you can see if that >>> works, otherwise it is something like deleting and re-adding the framework >>> into the xcode project or something like that. >>> Scott >>> On Aug 2, 2011, at 4:55 PM, Gregor Hageluken wrote: >>> >>> Hi Scott, >>> I am trying to compile the Peptides app, but I am having problems with >>> linking the framework to it. I always get the error below. Before that, I >>> compiled the framework and added it to the Biococoa samples Xcode project >>> via 'Link Binaries with library' and I also added a 'copy bundle resources' >>> build phase. That is why I only added the BCSequenceView class to my app. I >>> couldn't get the whole Framework linked to it. >>> However, I tried if the EnzymeX app still works on Lion because I think it >>> also uses BCSequenceView. And that works without any problems. >>> Here is the error when I try to compile the Peptides.app: >>> GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul 1 10:50:06 UTC >>> 2011) >>> Copyright 2004 Free Software Foundation, Inc. >>> GDB is free software, covered by the GNU General Public License, and you are >>> welcome to change it and/or distribute copies of it under certain >>> conditions. >>> Type "show copying" to see the conditions. >>> There is absolutely no warranty for GDB. Type "show warranty" for details. >>> This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys000 >>> warning: Unable to read symbols for >>> @executable_path/../Frameworks/BioCocoa.framework/Versions/A/BioCocoa (file >>> not found). >>> warning: Unable to read symbols from "BioCocoa" (not yet mapped into >>> memory). >>> [Switching to process 40114 thread 0x0] >>> dyld: Library not loaded: >>> @executable_path/../Frameworks/BioCocoa.framework/Versions/A/BioCocoa >>> Referenced from: >>> /Users/gha/Library/Developer/Xcode/DerivedData/BioCocoaDemos-edqepdxbqxxpskctncdqmziaeyjr/Build/Products/Debug/Peptides.app/Contents/MacOS/Peptides >>> Reason: image not found >>> sharedlibrary apply-load-rules all >>> (gdb) >>> Cheers, >>> Gregor >>> On 2 Aug 2011, at 00:57, Scott Christley wrote: >>> >>> Nope, I highly doubt it as that is a simple casting warning about a protocol >>> and shouldn't affect runtime behavior. >>> Scott >>> On Aug 1, 2011, at 5:50 PM, Gregor Hageluken wrote: >>> >>> Hi Scott, >>> I will let you know if the peptides app works. In the meantime, could it >>> have anything to do with this warning that I get: >>> >>> >>> it appears at several places in the BCSequenceView class. >>> Cheers, >>> Gregor >>> ----- >>> Gregor Hagelueken >>> Postdoctoral Research Fellow, Naismith Group >>> Biomedical Sciences Research Complex >>> University of St Andrews >>> Purdie Building, North Haugh, St Andrews, Fife, KY16 9ST >>> Email: gh50 at st-andrews.ac.uk >>> Tel: +44 1334 467247 >>> ----- >>> >>> >>> ----- >>> Gregor Hagelueken >>> Postdoctoral Research Fellow, Naismith Group >>> Biomedical Sciences Research Complex >>> University of St Andrews >>> Purdie Building, North Haugh, St Andrews, Fife, KY16 9ST >>> Email: gh50 at st-andrews.ac.uk >>> Tel: +44 1334 467247 >>> ----- >>> >>> >>> _______________________________________________ >>> Biococoa-dev mailing list >>> Biococoa-dev at bioinformatics.org >>> http://www.bioinformatics.org/mailman/listinfo/biococoa-dev >>> >>> >> >> _______________________________________________ >> Biococoa-dev mailing list >> Biococoa-dev at bioinformatics.org >> http://www.bioinformatics.org/mailman/listinfo/biococoa-dev > > ----- > Gregor Hagelueken > Postdoctoral Research Fellow, Naismith Group > Biomedical Sciences Research Complex > University of St Andrews > Purdie Building, North Haugh, St Andrews, Fife, KY16 9ST > Email: gh50 at st-andrews.ac.uk > Tel: +44 1334 467247 > ----- > > > _______________________________________________ > Biococoa-dev mailing list > Biococoa-dev at bioinformatics.org > http://www.bioinformatics.org/mailman/listinfo/biococoa-dev -- Charles Parnot charles.parnot at gmail.com twitter: @cparnot http://mekentosj.com From koenvanderdrift at gmail.com Sun Sep 18 13:12:32 2011 From: koenvanderdrift at gmail.com (Koen van der Drift) Date: Sun, 18 Sep 2011 13:12:32 -0400 Subject: [Biococoa-dev] BCSequenceView In-Reply-To: <6C7440A9-10FE-4901-97B7-293B0BDEDC0B@st-andrews.ac.uk> References: <4DAC1A0A-C2DC-4C83-B566-DA3107851EE6@st-andrews.ac.uk> <550371CF-898E-459F-97AC-D414A06EA9B6@mac.com> <09D4A5DC-AD75-4C04-9F79-A12E71CF3396@st-andrews.ac.uk> <3436BBA1-36C4-4C03-9016-8A1D1FE2D60E@mac.com> <6C7440A9-10FE-4901-97B7-293B0BDEDC0B@st-andrews.ac.uk> Message-ID: <09164BCE-ED36-475B-B93F-A661C3041BC5@gmail.com> On Sep 13, 2011, at 3:17 PM, Gregor Hageluken wrote: > Hi, > > I finally found a way around that BCSequenceView problem that I posted a while ago. As I said, it always got caught in an infinite loop calling the setString method. This only happened when I bound the value property of the BCSequenceView to my CoreData model. > Turns out I could just delete the setString method from the BCSequenceView class and everything works just fine. Gregor, I think this is a bug in BCSequenceView in the switch case section of the setString method. It calls [super insertText], but it should call [super setString] instead. Probably s copy-paste error form the insertText method above. Could you confirm this in your app and post back here? If it works for you too, I'll make the change in the framework and commit it. Thanks, - Koen. From gh50 at st-andrews.ac.uk Sun Sep 18 16:28:28 2011 From: gh50 at st-andrews.ac.uk (Gregor Hageluken) Date: Sun, 18 Sep 2011 20:28:28 +0000 Subject: [Biococoa-dev] BCSequenceView In-Reply-To: <09164BCE-ED36-475B-B93F-A661C3041BC5@gmail.com> References: <4DAC1A0A-C2DC-4C83-B566-DA3107851EE6@st-andrews.ac.uk> <550371CF-898E-459F-97AC-D414A06EA9B6@mac.com> <09D4A5DC-AD75-4C04-9F79-A12E71CF3396@st-andrews.ac.uk> <3436BBA1-36C4-4C03-9016-8A1D1FE2D60E@mac.com> <6C7440A9-10FE-4901-97B7-293B0BDEDC0B@st-andrews.ac.uk> <09164BCE-ED36-475B-B93F-A661C3041BC5@gmail.com> Message-ID: <2455544F-7827-461C-A376-FA4587D823F5@st-andrews.ac.uk> Koen, yep, that solved the problem! Thanks! Cheers, Gregor On 18 Sep 2011, at 18:12, Koen van der Drift wrote: > > On Sep 13, 2011, at 3:17 PM, Gregor Hageluken wrote: > >> Hi, >> >> I finally found a way around that BCSequenceView problem that I posted a while ago. As I said, it always got caught in an infinite loop calling the setString method. This only happened when I bound the value property of the BCSequenceView to my CoreData model. >> Turns out I could just delete the setString method from the BCSequenceView class and everything works just fine. > > Gregor, > > I think this is a bug in BCSequenceView in the switch case section of the setString method. It calls [super insertText], but it should call [super setString] instead. Probably s copy-paste error form the insertText method above. Could you confirm this in your app and post back here? If it works for you too, I'll make the change in the framework and commit it. > > Thanks, > > - Koen. > > > _______________________________________________ > Biococoa-dev mailing list > Biococoa-dev at bioinformatics.org > http://www.bioinformatics.org/mailman/listinfo/biococoa-dev ----- Gregor Hagelueken Postdoctoral Research Fellow, Naismith Group Biomedical Sciences Research Complex University of St Andrews Purdie Building, North Haugh, St Andrews, Fife, KY16 9ST Email: gh50 at st-andrews.ac.uk Tel: +44 1334 467247 ----- From koenvanderdrift at gmail.com Mon Sep 19 19:24:18 2011 From: koenvanderdrift at gmail.com (Koen van der Drift) Date: Mon, 19 Sep 2011 19:24:18 -0400 Subject: [Biococoa-dev] BCSequenceView In-Reply-To: <2455544F-7827-461C-A376-FA4587D823F5@st-andrews.ac.uk> References: <4DAC1A0A-C2DC-4C83-B566-DA3107851EE6@st-andrews.ac.uk> <550371CF-898E-459F-97AC-D414A06EA9B6@mac.com> <09D4A5DC-AD75-4C04-9F79-A12E71CF3396@st-andrews.ac.uk> <3436BBA1-36C4-4C03-9016-8A1D1FE2D60E@mac.com> <6C7440A9-10FE-4901-97B7-293B0BDEDC0B@st-andrews.ac.uk> <09164BCE-ED36-475B-B93F-A661C3041BC5@gmail.com> <2455544F-7827-461C-A376-FA4587D823F5@st-andrews.ac.uk> Message-ID: <99D4C4DC-77D8-4063-B432-F3A519058137@gmail.com> Ok, another BCSequenceView question... In my app, BCSequenceView displays a string from my CoreData model. I am using MyAppDelegate (non-document based) as the delegate of the sequenceView. What happens when the app starts is that setString is called for the sequenceView, but when I step through the code, the delegate at that point is still nil, and thus no filtering is done. I am trying to understand why the delegate at this point is still nil, I used both IB and awakeFromNib in the MyAppDelegate to set the delegate for the sequenceView. Maybe the CoreData model loaded *before* the delegate is set? If I turn off filtering, the sequenceView works just fine and displays the sequences of my model. But of course it doesn't filter the input, which is not what I want. I looked at the Peptides demo, and it builds and runs as expected on my system, Xcode 4 and Lion. The only difference is that the Peptides demo has a theController class that acts as the delegate, in my app, I'm using MyAppDelegate. Anyone has an idea how I an get this to work? Thanks, - Koen.