Re: about my previous question
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.