Deploying MAC OSX (Cocoa) app - first time

[quote=115278:@Derek DiBenedetto]Thanks Michel and Dave!

Odd, this code gives me “this item does not exist” errors when I try to Build:

t=create(f) t.write s[/quote]

What is t ? Where do you dim it ? I suppose create is one of your method that accepts a FolderItem ? What is write ? Yet another method of yours as extends ? Or are these functions used in VB ? They are not Xojo commands…

They’re used with textoutputstream to read and write files: http://documentation.xojo.com/index.php/TextOutputStream.Create

It just wasn’t formatted correctly. This seemed to Build and run fine:

#ElseIf TargetMacOs then s=svi f=specialfolder.applicationdata.child("svi.txt") if not f.exists then dim tt as textoutputstream = TextOutputStream.Create(f) tt.write s tt.close end if

How do you add the database .sqlite to the app.tar? Or does the Mac user have to move it into the folder thems?

CopyFiles step should do it, shouldn’t it?

Tim already told you. A copy file step works just fine.

However, you will need to copy the database to a subfolder of ApplicationData upon the first launch of the app in order to use it. The most common method is to create a subfolder by the name of your application bundle, for instance com.mycompany.myapp, and copy the sqlite into it.