Re: An Excursus
Re: An Excursus
- Subject: Re: An Excursus
- From: mmalc crawford <email@hidden>
- Date: Tue, 4 Mar 2008 13:15:04 -0800
On Mar 4, 2008, at 12:47 PM, Jamie Phelps wrote:
In talking off-list with another list member, he mentioned that I
needed to bind the Selection Indexes and Sort Descriptors of one of
my NSTableViews to the same for the controller for that table view,
in this case MessagesController. That's fine and I appreciate the
tip. (I'm not entirely sure I understand why, but at least I know I
need to investigate this aspect of bindings more.)
What I find frustrating is that when I have a problem with Cocoa, it
seems to frequently be because there was something I was supposed to
do that was not mentioned in whatever tutorial I'm working with,
whether online (including from Apple!) or in my text (Hillegass,
2ed). Is there some way that I should have known to bind up the
Selection Indexes and Sort Descriptors? These kinds of "you're
supposed to..." things are frustrating and make learning Cocoa seem
more like a linear progression than a geometric one for me.
If you find missed steps in the tutorials, please file bugs.
That said, the search field bindings etc. would normally be set up
correctly for you if you create your interface using the "Entity
Wizard". The content, selection indexes and sort descriptors bindings
should normally be set up for you automatically when you bind a table
column (see <http://developer.apple.com/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsText/NSTableView.html
>). If they're not bound, it's typically because you've done
something to unbind them.
Along the lines of a previous reply, though, if you want to follow a
Core Data tutorial I would make the following recommendations:
(a) Per the documentation, learn Cocoa Bindings *or* Core Data first.
Learning both simultaneously is generally counter-productive.
(b) When learning Core Data, start with the Low Level tutorial (<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreDataUtilityTutorial/00_Introduction/chapter_1_section_1.html
>).
(c) Follow the NSPersistentDocument Core Data Tutorial (<http://developer.apple.com/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/00_Introduction/chapter_1_section_1.html
>) instead of the video-based one since it provides complete source
code.
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
References: | |
| >An Excursus (From: Jamie Phelps <email@hidden>) |