Quantcast

Forums | MacLife

You are not logged in.

#1 2008-12-20 10:33 pm

Jasoco
Your own personal Jesus
From: Doylestown, PA, USA, Earth
Registered: 2000-08-26
Posts: 8848
Website

In this thread I ask questions about AppleScript Studio...

I'm new. To programming AppleScript Studio that is. My main programming knowledge is all BASIC. QuickBASIC more specifically as well as some VisualBasic and a bit of PHP and JS.

I'm working on an app in AppleScript Studio (Takes too long to type.. can I call it ASS?) but even Google isn't helping much with some of the harder stuff..

My first question is how do I populate a Table View? (Also known as NSTableView.)

Say I have a text file whose contents might be something like this: (But not at all. This is just an example)

Code:

Item one!
Item two!
Item three!

I load the contents into a variable, I call it "theContents" for example. So now I have a string called "theContents" that contains everything in that text file. Good. Now... how do I move all that into a Table View?

For example, I want a table view (Which is just a multi-column list) to contain say three items consisting of each of the lines from the above text file. I am explaining this much harder than I should. I'm sure someone understands what I want to do. Take the multi-line string I just retrieved and place each line into the table one by one so I end up with a table (list) populated with the items in the file.

I have more questions, but this is my first.


                         Haikus are easy
          But sometimes they don't make sense
                           Refrigerator

                Jasoco.netGeekPub Forums

Offline

 

#2 2008-12-25 6:36 am

Jasoco
Your own personal Jesus
From: Doylestown, PA, USA, Earth
Registered: 2000-08-26
Posts: 8848
Website

Re: In this thread I ask questions about AppleScript Studio...

No one? The internet has failed me and this seems like it should be an easy topic. sad


                         Haikus are easy
          But sometimes they don't make sense
                           Refrigerator

                Jasoco.netGeekPub Forums

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson