• 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: Binding Tableviews (newbie) problems/questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding Tableviews (newbie) problems/questions


  • Subject: Re: Binding Tableviews (newbie) problems/questions
  • From: Vince Ackerman <email@hidden>
  • Date: Tue, 11 Jan 2005 08:28:53 -0800

Scott, mmalc and others:

I've read all the Apple Docs under Manual / Automatic KeyValue notifications and still can't seem to get two tableviews to update correctly. I've basically modified Scott's email example to fit my project, but want programmatically use the addEmail method rather than the binding "add:", so I can set the row number value to the new email. The tableview bindings all work fine when hooked up as per Scotts example, but when I disconnect the add: binding (and use the addEmail method in the controller object) I still don't see the email tableview update itself. It will finally update when I select any other mailbox or blank row in the mailbox tableview then select the new mailbox row again.

I've added the following which doesn't seem to work:
    [self willChangeValueForKey:@"emails"];
    [emails addObject: newEmail];
    [self didChangeValueForKey:@"emails"]

Looking at Scott's example, the key @"emails" is the NSMutableArray that contains the pointer to the mailbox array of the currently selected row in the mailbox tableview. I'm confused how this pointer is a "key" and how this will send a notification that I've modified the mailbox array? Do I have to turn off Automatic KVO notification prior to using this?


TIA

Vince Ackerman

_______________________________________________
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


  • Follow-Ups:
    • Re: Binding Tableviews (newbie) problems/questions
      • From: Scott Stevenson <email@hidden>
    • Re: Binding Tableviews (newbie) problems/questions
      • From: Vince Ackerman <email@hidden>
References: 
 >Re: Binding Tableviews (newbie) problems/questions (From: Vince Ackerman <email@hidden>)

  • Prev by Date: Re: Zip-files
  • Next by Date: Bindings Book !!!!!
  • Previous by thread: Re: Binding Tableviews (newbie) problems/questions
  • Next by thread: Re: Binding Tableviews (newbie) problems/questions
  • Index(es):
    • Date
    • Thread