• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Replacing a NSTextView's contents with NSDATA
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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] initWithData:[[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.

  • Follow-Ups:
    • Re: Replacing a NSTextView's contents with NSDATA
      • From: Daryn <email@hidden>
  • Prev by Date: Re: Help for Help
  • Next by Date: Re: Replacing a NSTextView's contents with NSDATA
  • Previous by thread: Newbie EXE_BAD_ACCESS Resolved
  • Next by thread: Re: Replacing a NSTextView's contents with NSDATA
  • Index(es):
    • Date
    • Thread