Re: Displaying file contents in NSTextView
Re: Displaying file contents in NSTextView
- Subject: Re: Displaying file contents in NSTextView
- From: Rakesh Pandey <email@hidden>
- Date: Mon, 17 Feb 2003 18:15:05 +0530
NSString *fileData = [[NSString alloc] initWith
Data:[NSData
dataWithContentsOfFile:yourFilePath]
encoding:NSMacOSRomanStringEncoding];
[yourTextView insertText:fileData];
Regards
Rakesh
On Monday, February 17, 2003, at 06:04 PM, Vidya Nair wrote:
>
Hi All,
>
>
I want to read the contents of a text file and display into a
>
NSTextView.
>
How do i do this...??
>
The files contents are retrieved in form of NSData. How do i assign
>
this
>
NSData to TextView.
>
Any ideas or clues will be greatly welcome...
>
Waiting for suggestions ....
>
>
Warm Regards
>
Vidya Nair
>
>
Tata Consultancy Services
>
_______________________________________________
>
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.
>
Rakesh Pandey
C programmers never die - they're just cast into void.
_______________________________________________
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.