New to Xcode and need direction

Hi

I want to write code for Mac OS that replaces my Excel spreadsheet and prints paperwork. Im wondering how the graphics part of it works. How to layout the lines and the headers. Is this all done with Swift or are there other graphic tools needed as well? I'm just looking to be pointed in the right direction for now.


Thank you!

You can create a spreadsheet app totally in Swift. But it's a large task.


For the graphics:

- you create a class (subclass of NSViewController), with its associated xib : SpreadSheetView for instance

- you create the window

- Inside you create a view that will hold the spreadsheet cells and declare it as class : SpreadSheetView

- the draw method in SpreadSheetView is used to draw all lines and cell contents

- mouseDown methods in SpreadSheetView are used to interact with cells :

- you will have to manage a cellTextField : NSTextField to enter text in a cell


These are just the very basic principles, you'll have a lot to discover.


There are many examples you can learn from :

h ttps://stackoverflow.com/questions/37249979/how-to-create-a-table-like-spreadsheet-in-swift

Thank you for your reply.

My journey begins!

New to Xcode and need direction
 
 
Q