Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Welcome, Guest. Please login or register.
November 24, 2017, 03:12:21 PM
Home Help Search Login Register
News: Please DM @puremvc on Twitter to gain forum access. Spambots are why we can't have nice things.
  Show Posts
Pages: [1]
1  PureMVC Manifold / Demos and Utils / Re: EmployeeAdmin - A PureMVC ObjectiveC / UIKit Demo on: July 17, 2009, 11:47:21 AM
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 PM
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 Smiley

Best,

Brian
3  PureMVC Manifold / Standard Version / Re: Documentation up to date? on: January 25, 2009, 12:28:16 PM
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]