Re: NSArrayController question
Re: NSArrayController question
- Subject: Re: NSArrayController question
- From: "Clint Shryock" <email@hidden>
- Date: Mon, 24 Sep 2007 08:36:23 -0500
>
> The first one that is
> defined in attributes inspector for the NSArrayController, and the second
> one defined in the NSArrayController's contentArray binding?
>
there is no "first one that is defined in attributes inspector". you're
telling the array controller what kind of objects are being controlled. in
the bindings (contentArray), you tell it which specific array to control.
it's like me telling you "you will drive A honda accord" and then telling
you "you will drive THIS car".
maybe you are confused about NSArrayController... it is not an array. it
can control one however, and in his example, he is: the array in
MyDocument.
NSArrayControllers do a lot of lifting for you, you don't have to implement
key methods for KVO or KVC, it handles this for you. KVO and KVC are
extremely useful, so anything that helps me utilize that with very little
code is awesome.
Apple's reference docs have Cocoa-savvy people as their target audience
do they? i've never seen "cocoa-savvy people" listed under "Who Should Read
This Document" which is at the beginning of just about every reference doc.
some of the docs are advanced yes, but so is driving on the highway for
someone who just got their learners permit. that's why they usually don't
start learning on the highway, they start in open fields or large parking
lots. if you don't understand a document, try reading one of it's
prerequisites. follow that chain until you do understand. i've found
myself reading docs to understand a doc which will explain a doc that
details something i really want to learn. it sucks sometimes, reading 5
things to get to the one i really want, but it builds a strong base of
understanding. i'm better in the long run.
the cocoa bindings programming guide (linked above) suggest you read *Key-Value
Coding Programming
Guide<http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/index.html#//apple_ref/doc/uid/10000107i>
*, *Key-Value Observing Programming
Guide<http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueObserving/index.html#//apple_ref/doc/uid/10000177i>
**Value Transformer Programming
Guide<http://developer.apple.com/documentation/Cocoa/Conceptual/ValueTransformers/index.html#//apple_ref/doc/uid/10000175i>
* before you try to read the bindings guide. after reading them i'm sure it
will make more sense.
Traditionally a newbie could always turn to a forum and get some relevant
> help, because there always seem to be some helpful souls
there are more helpful people on the forum than i can count, and i can count
to like 100. mmalc specifically is very helpful, although if you read the
threads you'll find him repeating himself often. always search
http://www.cocoabuilder.com for you question before posting to the list,
odds are your question has been asked before.
Cocoa-savvy people get irritated at newbies
this is not cocoa specific :)
hope some of this helps
+Clint
On 9/23/07, Frank Bettger <email@hidden> wrote:
>
> Thanks for the link, but it's no help to me. Apple's reference docs have
> Cocoa-savvy people as their target audience, not newbies like me. I've
> tried
> to read the one you pointed at, but it was the same frustration as with
> some
> other refdocs I tried before. They are simply not aimed at newbies like
> me.
> So where should a newbie get some help. I'm hoping at the forum like this.
> Sure there are books and tutorials but they can't answer a specific
> question
> that a newbie has. Traditionally a newbie could always turn to a forum and
> get some relevant help, because there always seem to be some helpful
> souls.
> I know that some Cocoa-savvy people get irritated at newbies because they
> can't formulate their questions succinctly enough or because they ask
> questions that from the experts point of view is only noise and bandwidth
> waste. But I think that a forum like this should allow the full spectrum,
> from novices to experts, to participate.
>
> Frank
>
>
>
> On 9/23/07, mmalc crawford <email@hidden> wrote:
> >
> >
> > On Sep 23, 2007, at 5:50 AM, Frank Bettger wrote:
> >
> > > Does our NSArrayController have two arrays to keep track of.
> > >
> > No. <
> > http://developer.apple.com/documentation/Cocoa/Conceptua
> l/CocoaBindings/Concepts/CntrlContent.html
> > >.
> >
> > 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
>
_______________________________________________
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