Re: How to update all views when underlying data changes?
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