• 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: Has anyone any experience with NSTableView and NSArrayController ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Has anyone any experience with NSTableView and NSArrayController ?


  • Subject: Re: Has anyone any experience with NSTableView and NSArrayController ?
  • From: Scott Anguish <email@hidden>
  • Date: Sat, 9 Oct 2004 02:02:12 -0400


On Oct 8, 2004, at 10:07 AM, Jeff Gilbert wrote:

Look for the section titled "Programmatic modifications to arrays not noticed by table view". Basically, calling [array addObjects:someObjects] will not cause the array controller to be notified of the change to array. The technique I use is to call:

    [[self mutableArrayValueForKey:@"array"] addObjects:someObjects]

On Oct 8, 2004, at 10:07 AM, Jeff Gilbert wrote:

Look for the section titled "Programmatic modifications to arrays not noticed by table view". Basically, calling [array addObjects:someObjects] will not cause the array controller to be notified of the change to array. The technique I use is to call:

    [[self mutableArrayValueForKey:@"array"] addObjects:someObjects]

    The other option is to implement the indexed accessors for the array in your model.

    then you can insert/delete, etc.. using those accessors and changes are noticed.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Has anyone any experience with NSTableView and NSArrayController ? (From: Vincent Coetzee <email@hidden>)
 >Re: Has anyone any experience with NSTableView and NSArrayController ? (From: Jeff Gilbert <email@hidden>)

  • Prev by Date: I can't change the size value of NSBitmapImageRep
  • Next by Date: Re: make a player with "output to portable mp3 audio player"
  • Previous by thread: Re: Has anyone any experience with NSTableView and NSArrayController ?
  • Next by thread: [SOLVED] Has anyone any experience with NSTableView and NSArrayController ?
  • Index(es):
    • Date
    • Thread