• 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
KVC and arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

KVC and arrays


  • Subject: KVC and arrays
  • From: "Daniel Angermeier" <email@hidden>
  • Date: Fri, 22 Jun 2007 16:46:59 +0200

Hi,

I have an array controller that is bound to a property of someObject
that returns an array.
-(NSMutableArray *)items
{
    return myItems;
}

That array controller is bound to the table columns of a table view.

when I modify myItems, e.g. [myItmes removeLastObject];
the arrayController / the table view are not updated,
unless I call [self setItems:myItems]; after any modification to myItems.
Is this the correct way to do this, or is there something else I am
missing that would cause the bound objects to be updated if I modifiy
my mutable array ?

Any help appreciated!

Thanks!

Daniel
_______________________________________________

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


  • Follow-Ups:
    • Re: KVC and arrays
      • From: mmalc Crawford <email@hidden>
    • Re: KVC and arrays
      • From: m <email@hidden>
    • Re: KVC and arrays
      • From: Brian Smith <email@hidden>
  • Prev by Date: Re: Protocol Handling?
  • Next by Date: Re: NSBitmapImageRep
  • Previous by thread: Re: Using sudo in NSTask
  • Next by thread: Re: KVC and arrays
  • Index(es):
    • Date
    • Thread