• 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
Possible to bind file contents to a view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Possible to bind file contents to a view?
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: sorting on multiple columns of a table
  • Next by Date: Re: Apple's Code Level Support
  • Previous by thread: reset font settings
  • Next by thread: Re: Possible to bind file contents to a view?
  • Index(es):
    • Date
    • Thread