Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Who Calls Accessors in Bookmarks?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Who Calls Accessors in Bookmarks?



    Thank you Shawn and mmalc.  I would have never figured this out without
that direct reference.  Even if I had read that reference previously, I
wouldn't have made the connection and understood what was going on.

    So apparently, NSArrayController uses these methods if they are
available -- otherwise directly accesses the array -- which my code is
doing?  Does NSTreeController do the same?

    As far as I can tell, there is not one word about this in the
documentation for NSArray, NSMutableArray, or NSArrayController.  There
should be.

    I can see the value of having it.  In fact, this may be what I need to
intercept array changes to implement item number resequencing for line
numbering and for Core Data array retrieval.  (I don't allow resorting by
user.  My data has a definite order.)

> The controller is managing the document's array.  Why wouldn't it use
> those methods?
>
> 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: 
 >Re: Who Calls Accessors in Bookmarks? (From: mmalc crawford <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.