Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plain Text Editor



Hi Kevin
1.  The graphic appears to be in-line I'm afraid.
2.  I just copy the boxes I want from Microsoft Word so I don't know the answer for that.  
3.  Margins are placed in the page set-up under "Custom" or something similar, and work normally.
 
By the way, I have a book that goes with real basic called "Beginning Mac" by kevin Spencer and Jack Thompson" and the major project is exactly what you want.  Real Basic will definitely do all that you want in creating a word-like project.
I summary, I guess the weaknesses with that example is the lack of ability to produce tables and that the graphics are in-line.  

The Cocoa Document-Based Project version would have more flexibility I expect, but I don't work with Cocoa.

Peter

On 19/09/2006, at 12:34 PM, Kevin Bradley wrote:

Thanks, Peter,

I'm familiar with that example.  But will that let me place the graphic anywhere on the document, or is it only going to put it "inline" with the text?  And can I draw boxes and lines?

I can do those things through HTML (with the help of stylesheets) but printing is a problem.  I'm wondering if there is no margin control in AS Studio apps.  Do you have to "take it the way it's served?"

Kevin Bradley
--
It only took Gates 11 years to copy (badly) the Mac OS.  And people call him a genius. Seems a bit retarded if you ask me.


On Sep 18, 2006, at 7:12 PM, Peter Baxter wrote:

HI Kevin,

I've got a bit more time now so I'll try to explain a little more fully.

There is a perfectly good example program in XCode that should provide you with the starter to do whatever you like with text.

Macintosh HD -> Developer -> Examples -> Applescript studio -> Plain Text editor.

Open the Plain Text Editor Example and click on the Document.nib

in Interface builder you can change the fields.  Plain Text Editor needs to be updated to accept graphics.  It already has full formatting available although you may have to import tables from cocoa data. (I wouldn't bother)

Plain text editor lacks the ability to accept pictures.  To fix this, select the text panel on the window and delete it.  Replace it with the Cocoa text which is full of Latin text.  (NSTextView)  Set its size to the full size of the Window.

You will be asked to update the version to 10.2 and you accept.  Your app now accepts pictures.

Open the inspector and make these changes:  Automatically hide scroller. Graphics allowed.

Save the result and run it.

Peter


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.