• 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: Save option For NSTextview.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Save option For NSTextview. (From: archana udupa <email@hidden>)

  • Prev by Date: Re: entity name not found when model is in private framework
  • Next by Date: Re: entity name not found when model is in private framework
  • Previous by thread: Save option For NSTextview.
  • Next by thread: Newbie question on listing out detailed items
  • Index(es):
    • Date
    • Thread