Problem with NSSearchField in Apple's Core Data Tutorial

  • I am trying to follow Apple's Core Data tutorial <http://moourl.com/x5xbg> and I am stuck on getting the NSSearchField to actually work.
    Another list member was helping me off-list and sent me a working nib
    file. When I dropped it into my project, however, it did not work; the
    search field accepts input but the filter is apparently not applied to
    my NSTableView.

    At this point, I'm not sure where I might be going wrong, so I
    uploaded my project to the web. If anyone can take a look and help me
    decipher where I'm off track I'd greatly appreciate it. <http://jamiephelps.com/CheckIn.zip>

    Thanks,
    Jamie
  • Dear Jamie,
      I am also just starting learning Cocoa and Core Data and coming from the
    C#/NET group I find also find it frustrating and than very elegant at the
    same time - I believe the frustrating part will just disappear with time to
    get used to it all.
      I just looked at your posted source code and I could make search work
    after disabling the Search Predicate Binding for the Search Field and
    defining the Search Predicate Binding on the Search Field Cell (click
    2-times on the NSSearchField). DonĀ“t ask me why (yet) I need to click two
    times...:)

    Best regards
    Meik

    On 3/4/08 8:41 PM, "Jamie Phelps" <jrphelps...> wrote:

    > I am trying to follow Apple's Core Data tutorial <http://moourl.com/x5xbg
    >> and I am stuck on getting the NSSearchField to actually work.
    > Another list member was helping me off-list and sent me a working nib
    > file. When I dropped it into my project, however, it did not work; the
    > search field accepts input but the filter is apparently not applied to
    > my NSTableView.
    >
    > At this point, I'm not sure where I might be going wrong, so I
    > uploaded my project to the web. If anyone can take a look and help me
    > decipher where I'm off track I'd greatly appreciate it.
    > <http://jamiephelps.com/CheckIn.zip
    >>
    >
    > Thanks,
    > Jamie
  • On Mar 4, 2008, at 1:18 PM, Meik Schuetz wrote:

    > I am also just starting learning Cocoa and Core Data
    >
    Just for the sake of repeating it...
    *Don't*.

    > I find also find it frustrating
    >
    This is not surprising.  The documentation makes clear that Core Data
    is not a beginner technology:

    Before You Start
    Core Data is not an entry-level technology. It leverages many other
    Cocoa technologies, including memory management, key-value coding, and
    key-value observing. You must understand these technologies to use
    Core Data effectively. You also need a solid understanding of data
    modeling and the model-view-controller design pattern as it pertains
    to Cocoa.

    <http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles
    /cdBeforeYouStart.html#//apple_ref/doc/uid/TP40004318
    >

    mmalc
  • Dear mmalc,
    Thanks for your concerns - I confess that I was not very specific about my
    "frustrations": They are more related to IB than Core Data or MVC. Having a
    first look at Core Data and looking back to 20 years in this business and
    various programming languages and frameworks I believe I won't see anything
    too arqward :)

    Best regards and thanks again
    Meik

    On 3/4/08 9:38 PM, "mmalc crawford" <mmalc_lists...> wrote:

    >
    > On Mar 4, 2008, at 1:18 PM, Meik Schuetz wrote:
    >
    >> I am also just starting learning Cocoa and Core Data
    >>
    > Just for the sake of repeating it...
    > *Don't*.
    >
    >> I find also find it frustrating
    >>
    > This is not surprising.  The documentation makes clear that Core Data
    > is not a beginner technology:
    >
    > Before You Start
    > Core Data is not an entry-level technology. It leverages many other
    > Cocoa technologies, including memory management, key-value coding, and
    > key-value observing. You must understand these technologies to use
    > Core Data effectively. You also need a solid understanding of data
    > modeling and the model-view-controller design pattern as it pertains
    > to Cocoa.
    >
    > <http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles
    /c
    > dBeforeYouStart.html#//apple_ref/doc/uid/TP40004318
    >>
    >
    >
    >
    > mmalc
    >
    >
  • On Tue, Mar 4, 2008 at 4:58 PM, Meik Schuetz <cocoa...> wrote:
    > Dear mmalc,
    > Thanks for your concerns - I confess that I was not very specific about my
    > "frustrations": They are more related to IB than Core Data or MVC. Having a
    > first look at Core Data and looking back to 20 years in this business and
    > various programming languages and frameworks I believe I won't see anything
    > too arqward :)

    I'm pretty sure mmalc would say the same thing to Alan Turing, and
    he's only looking out for your sanity.  Unless you have significant
    Cocoa experience, Core Data is a confusing mother of a framework.

    *Please* reconsider delving into Core Data as your first Cocoa
    technology.  Get basic things working first, and don't move on to Core
    Data until you really grok it, particularly the ins and outs of
    bindings (and by extension, KVC/KVO).

    --Kyle Sluder
previous month march 2008 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today