• 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
Re: about my previous question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: about my previous question


  • Subject: Re: about my previous question
  • From: Dan Wood <email@hidden>
  • Date: Thu, 15 Aug 2002 21:27:17 -0700

The only thing I can imagine would be to see if you can use AppleEvents. Check TextEdit's dictionary and see if there is a method to set the default encoding for opening a file, or at least for setting the default encoding first.

The source code to TextEdit is also available in /Developer/Examples....

Regards,
Dan Wood

On Thursday, August 15, 2002, at 08:08 PM, Chong Hiu Pun wrote:

Dear all experts,

I am sorry to bother you. However, for my previous question:
///////////////
I can open textedit with the following cocoa command:

[[NSWorkspace sharedWorkspace] openFile:@"test.txt"
withApplication:@"TextEdit"];

However, how can I tell TextEdit to use UTF8 encoding to open that
file?Thanks!
///////////////
I think it is not an easy question.......I've searched the archieve and read
the documentation, but still cannot find the solution. May anyone give me a
hand?Thank you very much!
_______________________________________________
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.



--
Dan Wood
Karelia Software, LLC
email@hidden
http://www.karelia.com/
Watson for Mac OS X: http://www.karelia.com/watson/
_______________________________________________
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.

References: 
 >about my previous question (From: "Chong Hiu Pun" <email@hidden>)

  • Prev by Date: Re: Useless function or possible BUG?
  • Next by Date: Contextual Menu like the Dock's
  • Previous by thread: about my previous question
  • Next by thread: RE: Programming style (was Accessors) revisited ; de-compiler ???
  • Index(es):
    • Date
    • Thread