Re: Help modifying picture sharing example
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com On Sep 29, 2005, at 11:37 AM, Matt Shepherd wrote: Thanks in advance. This email sent to mshepherd@premieragendas.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... To help things out, here is the piece of code that looks like it needs to be changed: // This object is also listening for notifications from its NSFileHandle. // When an incoming connection is seen by the listeningSocket object, we get the NSFileHandle representing the near end of the connection. We write the thumbnail image to this NSFileHandle instance. - (void)connectionReceived:(NSNotification *)aNotification { NSFileHandle * incomingConnection = [[aNotification userInfo] objectForKey:NSFileHandleNotificationFileHandleItem]; NSData * representationToSend = [[imageView image] TIFFRepresentation]; [[aNotification object] acceptConnectionInBackgroundAndNotify]; [incomingConnection writeData:representationToSend]; [incomingConnection closeFile]; numberOfDownloads++; [longerStatusText setStringValue:[NSString stringWithFormat:@"Click Stop to turn off Picture Sharing. Number of downloads this session: %d.", numberOfDownloads]]; } I am trying to modify the picture sharing example located in foundation folder of apple's developer examples. I would like it to pass a text string back instead of a picture. I am trying to do this so I can use it as scripting monitor for our scripting servers. I know very little about cocoa and objective C so any helps or examples would be much appreciated. What I was hoping for in the end would just be a text box instead of an image box that you could type a string in for the status of the server. The browser app would just display a list of servers and if you clicked on it it would show the string that that server was publishing. Maybe it would refresh every so often while that server was selected. _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/ mshepherd%40premieragendas.com ======================================================================= = This e-mail message has been scanned for Viruses and Content and cleared by School Specialty's email filtering solution. This email sent to site_archiver@lists.apple.com
participants (1)
-
Matt Shepherd