Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

* | |

  Show Posts
Pages: [1]
1  PureMVC Manifold / Demos and Utils / Re: EmployeeAdmin - A PureMVC ObjectiveC / UIKit Demo on: July 17, 2009, 11:47:21
I have updated the source in trunk to comply with the new syntax rules in 3.0 (this actually may be a bug on Apple's part).  If you want you can get the latest from trunk or wait for a new release hopefully this week.

Best,

Brian
2  PureMVC Manifold / Demos and Utils / Re: EmployeeAdmin - A PureMVC ObjectiveC / UIKit Demo on: February 25, 2009, 01:26:19
In a UIViewController you can implement viewDidLoad and publish a message containing the uiview or the uiviewcontroller (depends on what you want to mediate).  Have a mediator listening for this message and then register the appropriate mediator.

In our iphone app we wrapped the NSNotificationCenter into a custom event dispatcher like you would find in a typical UI framework.  This is how the UIKit components dispatch events that our mediators listen too.  Then of course our mediators talk to the rest of the PureMVC system through Notifications.

Hope this helps :)

Best,

Brian
3  PureMVC Manifold / Standard Version / Re: Documentation up to date? on: January 25, 2009, 12:28:16
Hey there,

Just to clarify any confusion...the withViewComponent method is a static convenience method for creating a Mediator - this is standard ObjectiveC convention.  Also all the instance setter and getter methods follow the standard ObjectiveC conventions as well, for example:

myMediator.viewComponent = someViewComponet;
//or
[myMediator setViewComponent:someViewComponent];

someViewComponent = myMediator.viewComponent;
//or
someViewComponent = [myMediator viewComponent];

Hope this helps:)

Best,

Brian
Pages: [1]