• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Who Calls Accessors in Bookmarks?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Who Calls Accessors in Bookmarks?


  • Subject: Re: Who Calls Accessors in Bookmarks?
  • From: Gordon Apple <email@hidden>
  • Date: Thu, 30 Aug 2007 21:06:11 -0500

    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>)

  • Prev by Date: Re: How to programatically close a user opened NSPopUpButton...
  • Next by Date: Re: Line Numbers in Tables
  • Previous by thread: Re: Who Calls Accessors in Bookmarks?
  • Next by thread: Re: Who Calls Accessors in Bookmarks?
  • Index(es):
    • Date
    • Thread