Possible to bind file contents to a view?
Possible to bind file contents to a view?
- Subject: Possible to bind file contents to a view?
- From: Julian Dreißig <email@hidden>
- Date: Sun, 27 Mar 2005 21:21:35 +0200
Hi,
is it possible to bind the contents of a (text) file to a NSTextView? I
would like to have a window which reflects the current contents of a
text file (a log file).
I tried it with a NSFileWrapper, binding its -regularFileContents to
the NSTextView. And yes, the view shows the contents of the file but
does not update on changes to the file, even with "updates continually"
set.
I also tried to load the file with a NSFileWrapper and -initWithPath:
and displayed its contents using -regularFileContents. When I do some
changes to the text file and then try to update with -updateFromPath:,
-regularFileContents does not reflect changes made to the file. I have
to release the wrapper and create a new one.
Has anybody a solution to this problem?
Thanks a lot,
- Julian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden