Here is my code snippit:
- (void) getData: (NSNotification *)aNotification{
NSData *data = [[aNotification userInfo] objectForKey:NSFileHandleNotificationDataItem];
if ([data length])
{
return [[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding] autorelease];
} else {
[self stopProcess];
}
[[aNotification object] readInBackgroundAndNotify];
}
Ok, so how do I set an NSString to the value of getData anywhere else in my application?
Thanks, Elijah