• 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: How to update all views when underlying data changes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to update all views when underlying data changes?


  • Subject: Re: How to update all views when underlying data changes?
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 29 Nov 2010 11:40:39 +0000

On 29 Nov 2010, at 11:27, G S wrote:

> Hi all.
>
> I'm writing an iPhone app that interacts with a database over the Web
> using XML, and PHP on the server side.
>
> Obviously, delays in downloading data are frequent, so I'm using Grand
> Central Dispatch to do a bunch of it asynchronously.  This brings up a
> basic question: How do I notify all concerned views that the
> underlying data store has changed?  I could create some kind of
> multi-delegate or "subscriber" system where view controllers join a
> list to be notified.  Is that how people are doing it, or is there
> some Cocoa mechanism that I should be using?
>
> Thanks for any insight.

Try the notifications system.

http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Notifications/Introduction/introNotifications.html#//apple_ref/doc/uid/10000043i

Regards

Jonathan Mitchell

Developer
Mugginsoft LLP
http://www.mugginsoft.com

_______________________________________________

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: 
 >How to update all views when underlying data changes? (From: G S <email@hidden>)

  • Prev by Date: How to update all views when underlying data changes?
  • Next by Date: bindings via file's owner don't update
  • Previous by thread: How to update all views when underlying data changes?
  • Next by thread: Re: How to update all views when underlying data changes?
  • Index(es):
    • Date
    • Thread