Replacing a NSTextView's contents with NSDATA
Replacing a NSTextView's contents with NSDATA
- Subject: Replacing a NSTextView's contents with NSDATA
- From: Nebagakid <email@hidden>
- Date: Tue, 1 Apr 2003 19:19:41 -0500
Ohkay, so, I got this going on. Where it gets this incoming data from
a Rendezvous source. Then I want it to set the string value of this
text view (aptly named "textView" to the data...
- (void)readAllTheData:(NSNotification *)aNotification {
NSData * data = [[NSData alloc] initWith
Data:[[aNotification
userInfo] objectForKey:NSFileHandleNotificationDataItem]];
[textView setString:[[NSString alloc] initwithString:[NSData data]]];
[data release];
}
but then it tells me this, what is going on?:
Exception raised during posting of notification. Ignored. exception:
*** -[NSPlaceholderString initwithString:]: selector not recognized
Thanks y'all!
--DCohen
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.