Sha256: cbb6d1d830098b97889ade60a8035f4945b4b768bd9b6187f9905a9bfff29fdd
Contents?: true
Size: 1021 Bytes
Versions: 2
Compression:
Stored size: 1021 Bytes
Contents
// // ApplicationFacade.m // PureMVC_ObjectiveC // // Created by <%= @developer.capitalize %> on <%= @created_on %> // Copyright(c) <%= Time.now.year %>, All rights reserved. // #import "ApplicationFacade.h" #import "StartupCommand.h" #import "Create<%= @class_name %>Command.h" #import "Update<%= @class_name %>Command.h" #import "Get<%= @class_name %>sCommand.h" @implementation ApplicationFacade -(void)startup:(id)app { [self sendNotification:Startup body:app]; } +(ApplicationFacade *)getInstance { return (ApplicationFacade *)[super getInstance]; } -(void)initializeController { [super initializeController]; [self registerCommand:Startup commandClassRef:[StartupCommand class]]; [self registerCommand:Create<%= @class_name %> commandClassRef:[Create<%= @class_name %>Command class]]; [self registerCommand:Update<%= @class_name %> commandClassRef:[Update<%= @class_name %>Command class]]; [self registerCommand:Get<%= @class_name %>s commandClassRef:[Get<%= @class_name %>sCommand class]]; } @end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
appjam-0.1.2 | lib/appjam/generators/project/Classes/contacts/ApplicationFacade.m.tt |
appjam-0.1.1 | lib/appjam/generators/project/Classes/contacts/ApplicationFacade.m.tt |