• 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: Dan Saul <email@hidden>
  • Date: Thu, 13 Jan 2005 10:40:52 -0600

I'd advise to you to learn how to write this in code without bindings
first, it will aide quite a bit with your understanding.


On Thu, 13 Jan 2005 04:32:55 -0800, Vince Ackerman <email@hidden> wrote:
>
> Anyone???
>
>
> On Jan 11, 2005, at 08:28, Vince Ackerman wrote:
>
> > 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
> >
>
> _______________________________________________
> 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
>
 _______________________________________________
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: 
 >Re: Binding Tableviews (newbie) problems/questions (From: Vince Ackerman <email@hidden>)
 >Re: Binding Tableviews (newbie) problems/questions (From: Vince Ackerman <email@hidden>)
 >Re: Binding Tableviews (newbie) problems/questions (From: Vince Ackerman <email@hidden>)

  • Prev by Date: Re: Why is NULL used sometimes when documentation specifies nil?
  • Next by Date: Re: How do you set an image's background color to CLEAR?
  • Previous by thread: Re: Binding Tableviews (newbie) problems/questions
  • Next by thread: Re: Binding Tableviews (newbie) problems/questions
  • Index(es):
    • Date
    • Thread