Re: Save option For NSTextview.
Re: Save option For NSTextview.
- Subject: Re: Save option For NSTextview.
- From: Graham Cox <email@hidden>
- Date: Sat, 23 May 2009 12:13:12 +1000
On 23/05/2009, at 11:16 AM, archana udupa wrote:
I m a new to cocoa.Thanks in advance, for the ppl who can help me...:)
We hav to develop an application similar to file merge with more added
features to it in cocoa.We hav 2 NSTextview subclass,where we
display the
files.We can edit it both the files. I wanna save the changes made
to the
file. In simple i hav to create a save option for both the files.
How can i
do tat?
Well, what have you tried so far? Saving a file can be done in many
different ways, so maybe focus your question a bit tighter. It's not
clear what you're asking - how to put up the save dialog? How to write
the data out? How to archive? What?
A text view is a VIEW, so it's not responsible for saving the files.
In the MVC paradigm, your files or an internal copy of them are the
model, so saving them is the job of the controller.
Also, read this:
http://catb.org/esr/faqs/smart-questions.html
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden