Pregunta

Ok, aquí hay un ejemplo de lo que estoy tratando en este momento:

@implementation ECHOAppDelegate
 ...
 @end

 @interface PtyView (PtyPrivate)
 -(void)startTask;
 -(void) didRead: (NSNotification *)fileNoty;
 @end

 @implementation PtyView
 ...
 -(void)startTask {
 //starts task
 }
 @end

Ahora, si quería "activar" startTask De la implementación de echoappdelegate, ¿cómo lo haría? Ahora, dice que no fue declarado.

¿Fue útil?

Solución

Primero, asegúrese de importar el PtyView encabezamiento. En ECHOAppDelegate.m:

#import "PtyView.h"

Luego, suponiendo que tenga una instancia de PtyView:

[myPtyViewObj startTask];
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top