Login

AppleScriptObjC in Xcode Part 2 [video]

Update:
As promised in the tutorial, here is a video demonstrating how to build the GUI for "Book List" application.
Posted an article at MacScripter.net on using AppleScriptObjC in Xcode. In this tutorial we build a "Book List" application using a table view.


running time: 00:08:31 Large View

 

Comments  

 
0 # Joe Mathia 2010-05-24 13:44
Hi Craig,

First, thanks for this set of tutorials. More helpful than I can say.

I'm having trouble with Part Two, specifically with making the connection between the App Delegate and the table itself. After setting up my table in the window in IB, and setting the titles, identifiers, etc. of the columns, when I control+drag from the App Delegate over the table, it does not highlight. So when I release, nothing happens; I don't get the window where I can specify the Outlet. I'm using Xcode 3.2.2, OS 10.6.3. Any Ideas?

Thanks.
Reply | Reply with quote | Quote
 
 
0 # Craig Williams 2010-05-24 14:00
Hi Joe,

Thanks for the encouragement!

Do you have the aTableView property set up in the app delegate file?

property aTableView : missing value
Reply | Reply with quote | Quote
 
 
0 # Ariel Ledesma 2010-05-24 15:59
I'm having the same trouble. I just pasted your code to the delegate, so everything seems to be right from there.
Reply | Reply with quote | Quote
 
 
0 # Craig Williams 2010-05-24 16:10
Did you save the app delegate file before switching to Interface Builder?
Reply | Reply with quote | Quote
 
 
0 # Ariel Ledesma 2010-05-24 16:29
Yes, I did. I get a very different window than the one in the video tutorial when I control drag inside the Table View, indeed, being the Outlets only a small part of the items displayed. (Sorry if I'm a bit lousy on terminology, but I'm just learning the ropes with these tutorials).
Reply | Reply with quote | Quote
 
 
0 # Craig Williams 2010-05-24 16:43
@Ariel - You named the class file "Part2TutorialAp pDelegate.applescript" but the script object is named
"PartTwoAppDeleg ate"

In IB, you have chose "Part2TutorialAp pDelegate" as the class for the new object (blue cube) but
there is no script object by that name.

Change the class name of the object to "PartTwoAppDeleg ate" and everything will work. I would
also change the file name to match. This is not required but is good practice.
Reply | Reply with quote | Quote
 

Add comment


Security code
Refresh

 

Product Categories