Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified src/org/puremvc/objectivec/core/Controller.h
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions src/org/puremvc/objectivec/core/Controller.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ -(void)executeCommand:(id<INotification>)notification {
if (commandClassRef == nil) {
return;
}
[(id<ICommand>)[[[commandClassRef alloc] init] autorelease] execute:notification];
[(id<ICommand>)[[commandClassRef alloc] init] execute:notification];
}

/**
Expand Down Expand Up @@ -137,9 +137,9 @@ -(void)removeCommand:(NSString *)notificationName {
-(void)dealloc {
self.commandMap = nil;
self.view = nil;
[(id)instance release];
// [(id)instance release];
instance = nil;
[super dealloc];
// [super dealloc];
}

@end
Empty file modified src/org/puremvc/objectivec/core/Model.h
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions src/org/puremvc/objectivec/core/Model.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ -(void)registerProxy:(id<IProxy>)proxy {

-(void)dealloc {
self.proxyMap = nil;
[(id)instance release];
// [(id)instance release];
instance = nil;
[super dealloc];
// [super dealloc];
}

@end
Empty file modified src/org/puremvc/objectivec/core/View.h
100644 → 100755
Empty file.
2 changes: 0 additions & 2 deletions src/org/puremvc/objectivec/core/View.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,7 @@ -(void)removeObserver:(NSString *)notificationName notifyContext:(id)notifyConte
-(void)dealloc {
self.mediatorMap = nil;
self.observerMap = nil;
[(id)instance release];
instance = nil;
[super dealloc];
}

@end
Empty file modified src/org/puremvc/objectivec/interfaces/ICommand.h
100644 → 100755
Empty file.
Empty file modified src/org/puremvc/objectivec/interfaces/IController.h
100644 → 100755
Empty file.
Empty file modified src/org/puremvc/objectivec/interfaces/IFacade.h
100644 → 100755
Empty file.
Empty file modified src/org/puremvc/objectivec/interfaces/IMediator.h
100644 → 100755
Empty file.
Empty file modified src/org/puremvc/objectivec/interfaces/IModel.h
100644 → 100755
Empty file.
Empty file modified src/org/puremvc/objectivec/interfaces/INotification.h
100644 → 100755
Empty file.
Empty file modified src/org/puremvc/objectivec/interfaces/INotifier.h
100644 → 100755
Empty file.
Empty file modified src/org/puremvc/objectivec/interfaces/IObserver.h
100644 → 100755
Empty file.
Empty file modified src/org/puremvc/objectivec/interfaces/IProxy.h
100644 → 100755
Empty file.
Empty file modified src/org/puremvc/objectivec/interfaces/IView.h
100644 → 100755
Empty file.
Empty file modified src/org/puremvc/objectivec/patterns/command/MacroCommand.h
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions src/org/puremvc/objectivec/patterns/command/MacroCommand.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ @implementation MacroCommand
* Static Convenience Constructor.
*/
+(id)command {
return [[[self alloc] init] autorelease];
return [[self alloc] init];
}

/**
Expand Down Expand Up @@ -89,13 +89,13 @@ -(void)addSubCommand:(Class)commandClassRef {
*/
-(void)execute:(id<INotification>)notification {
for (Class commandClassRef in subCommands) {
[[[[commandClassRef alloc] init] autorelease] execute:notification];
[[[commandClassRef alloc] init] execute:notification];
}
}

-(void)dealloc {
self.subCommands = nil;
[super dealloc];
// [super dealloc];
}

@end
Empty file modified src/org/puremvc/objectivec/patterns/command/SimpleCommand.h
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/org/puremvc/objectivec/patterns/command/SimpleCommand.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ @implementation SimpleCommand
* Static Convenience Constructor.
*/
+(id)command {
return [[[self alloc] init] autorelease];
return [[self alloc] init];
}

/**
Expand Down
Empty file modified src/org/puremvc/objectivec/patterns/facade/Facade.h
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions src/org/puremvc/objectivec/patterns/facade/Facade.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ -(void)dealloc {
self.model = nil;
self.controller = nil;
self.view = nil;
[(id)instance release];
// [(id)instance release];
instance = nil;
[super dealloc];
// [super dealloc];
}

@end
Empty file modified src/org/puremvc/objectivec/patterns/mediator/Mediator.h
100644 → 100755
Empty file.
9 changes: 4 additions & 5 deletions src/org/puremvc/objectivec/patterns/mediator/Mediator.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ @implementation Mediator
@synthesize mediatorName, viewComponent;

+(id)mediator {
return [[[self alloc] initWithMediatorName:nil viewComponent:nil] autorelease];
return [[self alloc] initWithMediatorName:nil viewComponent:nil];
}

+(id)withMediatorName:(NSString *)mediatorName {
return [[[self alloc] initWithMediatorName:mediatorName viewComponent:nil] autorelease];
return [[self alloc] initWithMediatorName:mediatorName viewComponent:nil];
}

+(id)withMediatorName:(NSString *)mediatorName viewComponent:(id)viewComponent {
return [[[self alloc] initWithMediatorName:mediatorName viewComponent:viewComponent] autorelease];
return [[self alloc] initWithMediatorName:mediatorName viewComponent:viewComponent];
}

+(id)withViewComponent:(id)viewComponent {
return [[[self alloc] initWithMediatorName:nil viewComponent:viewComponent] autorelease];
return [[self alloc] initWithMediatorName:nil viewComponent:viewComponent];
}

-(id)initWithMediatorName:(NSString *)_mediatorName viewComponent:(id)_viewComponent {
Expand Down Expand Up @@ -95,7 +95,6 @@ -(void)onRemove {}
-(void)dealloc {
self.mediatorName = nil;
self.viewComponent = nil;
[super dealloc];
}

@end
Empty file modified src/org/puremvc/objectivec/patterns/observer/Notification.h
100644 → 100755
Empty file.
9 changes: 4 additions & 5 deletions src/org/puremvc/objectivec/patterns/observer/Notification.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ @implementation Notification
* @param type the type of the <code>Notification</code>
*/
+(id)withName:(NSString *)name body:(id)body type:(NSString *)type {
return [[[self alloc] initWithName:name body:body type:type] autorelease];
return [[self alloc] initWithName:name body:body type:type];
}

+(id)withName:(NSString *)name {
return [[[self alloc] initWithName:name body:nil type:nil] autorelease];
return [[self alloc] initWithName:name body:nil type:nil];
}

+(id)withName:(NSString *)name body:(id)body {
return [[[self alloc] initWithName:name body:body type:nil] autorelease];
return [[self alloc] initWithName:name body:body type:nil];
}

+(id)withName:(NSString *)name type:(NSString *)type {
return [[[self alloc] initWithName:name body:nil type:type] autorelease];
return [[self alloc] initWithName:name body:nil type:type];
}

/**
Expand Down Expand Up @@ -65,7 +65,6 @@ -(void)dealloc {
self.name = nil;
self.body = nil;
self.type = nil;
[super dealloc];
}

@end
Empty file modified src/org/puremvc/objectivec/patterns/observer/Notifier.h
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/org/puremvc/objectivec/patterns/observer/Notifier.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ -(void)sendNotification:(NSString *)notificationName type:(NSString *)type {

-(void)dealloc {
self.facade = nil;
[super dealloc];
// [super dealloc];
}

@end
Empty file modified src/org/puremvc/objectivec/patterns/observer/Observer.h
100644 → 100755
Empty file.
3 changes: 1 addition & 2 deletions src/org/puremvc/objectivec/patterns/observer/Observer.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ @implementation Observer
* Static Convienence Constructor.
*/
+(id)withNotifyMethod:(SEL)notifyMethod notifyContext:(id)notifyContext {
return [[[self alloc] initWithNotifyMethod:notifyMethod notifyContext:notifyContext] autorelease];
return [[self alloc] initWithNotifyMethod:notifyMethod notifyContext:notifyContext];
}

/**
Expand Down Expand Up @@ -60,7 +60,6 @@ -(void)notifyObserver:(id<INotification>)notification {
-(void)dealloc {
self.notifyMethod = nil;
self.notifyContext = nil;
[super dealloc];
}


Expand Down
Empty file modified src/org/puremvc/objectivec/patterns/proxy/Proxy.h
100644 → 100755
Empty file.
9 changes: 4 additions & 5 deletions src/org/puremvc/objectivec/patterns/proxy/Proxy.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ @implementation Proxy
@synthesize data, proxyName;

+(id)proxy {
return [[[self alloc] initWithProxyName:nil data:nil] autorelease];
return [[self alloc] initWithProxyName:nil data:nil];
}

+(id)withProxyName:(NSString *)proxyName {
return [[[self alloc] initWithProxyName:proxyName data:nil] autorelease];
return [[self alloc] initWithProxyName:proxyName data:nil];
}

+(id)withProxyName:(NSString *)proxyName data:(id)data {
return [[[self alloc] initWithProxyName:proxyName data:data] autorelease];
return [[self alloc] initWithProxyName:proxyName data:data];
}

+(id)withData:(id)data {
return [[[self alloc] initWithProxyName:nil data:data] autorelease];
return [[self alloc] initWithProxyName:nil data:data];
}

-(id)initWithProxyName:(NSString *)_proxyName data:(id)_data {
Expand Down Expand Up @@ -67,7 +67,6 @@ -(void)onRemove {}
-(void)dealloc {
self.data = nil;
self.proxyName = nil;
[super dealloc];
}

@end