Newbie needs help...Is this possible?
Newbie needs help...Is this possible?
- Subject: Newbie needs help...Is this possible?
- From: Albert Atkinson <email@hidden>
- Date: Thu, 21 Feb 2002 06:20:10 -0500
Hello!
I am in the process of switching over to Cocoa developing from
REALbasic. What I have is an NSTextView in a document-based Cocoa and
Applescript project. I would like to implement save and open in this
app. First of all, when the users saves the file I would like my app to
scan the contents of the NSTextView. If there is no graphics it will
save it as RTF but if it finds graphics it will save it as RTFD. In the
open I would like the script to be able to open RTF, TXT and RTFD
documents. If the document the user chooses is not one of those
documents it will display an alert saying "The file you are trying to
open is not recognized by this application, would you like to open it in
plain text format?" with a yes and no choice. If the user chooses no
they will be back in the open box to choose another file. If the users
says yes it will load the file as plain text.
Can this be done? Sorry if I am not explaining good enough, I am really
new at this.
Have a great day!
Albert
_______________________________________________
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.