Mac development w/ XCode and C#

  • Context: C# 
  • Thread starter Thread starter aychamo
  • Start date Start date
  • Tags Tags
    Mac
Click For Summary
SUMMARY

The discussion centers around developing applications on macOS using Xcode, specifically addressing the challenges faced by a programmer transitioning from Pascal and Delphi to C#. The user expresses confusion regarding the integration of C# with Xcode, as Apple's Xcode does not support C# natively, relying instead on GCC 4.0 for C, C++, and Objective-C. The user seeks guidance on linking code to UI elements within Xcode's Interface Builder and accessing text fields in C#. The conversation highlights the necessity of understanding Objective-C for macOS development, given the lack of direct support for C#.

PREREQUISITES
  • Familiarity with Xcode 12 or later
  • Basic understanding of Objective-C syntax
  • Knowledge of Interface Builder functionality
  • Experience with C programming concepts
NEXT STEPS
  • Research "Objective-C programming basics" to understand syntax and structure
  • Explore "Xcode Interface Builder tutorials" for UI design and code linking
  • Learn about "C# integration with macOS" through third-party tools
  • Investigate "GCC 4.0 compiler features" for C and C++ development
USEFUL FOR

Mac developers, programmers transitioning from Pascal or Delphi, and anyone interested in developing applications using Xcode and Objective-C.

aychamo
Messages
375
Reaction score
0
Hey guys..

I wanted to tool around in developing some very simple, basic programs for my Mac using Apple's XCode and C#.

I have a little backgrouund in computer programming. I unfortunately learned via Pascal, but did pascal for at least six years and then moved on to Delphi. I even worked one summer for a local company as a programmer and we developed a medical software billing application (which was a complete POS).

Anyway. I know a little C. Like I know the basic syntax, etc. But I never got the whole thing about using pointers for strings or char*[] or whatever. I loved Delphi's IDE where you would put a button, and double click the button to write the code for it.

Obviously things have changed in these past 7 years or so.. :)

Now I load XCode, and I finally figureed out how to get Interface Builder to load up, and I couldn't figure out where to link code to a button, until I found the Inspector, and I think you have to bind it? Do you just write a function in the main.h file and then somehow link it?

And I saw some tutorial on C# and it accessed stuff weird, like putting everything in brackets [] [] [], etc. Like how would you access a text field in C# using XCode? I have no idea where to start..

Does anyone have any good links to tutorials, etc?

Thank you guys
Aychamo
 
Technology news on Phys.org
Apple's Xcode Tools don't include C#, which is a Microsoft thing.

Apple's compiler is GCC 4.0, which includes C, C++ and Objective-C. You can also use Java, of course. Searching Apple's developer Web site for "C#" turns up only references to the Windows QuickTime interface, and some musical notes in MIDI-related stuff.
 
Last edited:
Ooooops :) I was so ignorant, I put C# instead of Objective C! lol. I found a lot of decent docs on their webpage, so I've been trying to read those to learn some things.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 7 ·
Replies
7
Views
13K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 13 ·
Replies
13
Views
31K
  • · Replies 6 ·
Replies
6
Views
6K
Replies
69
Views
10K
  • · Replies 12 ·
Replies
12
Views
103K
  • · Replies 2 ·
Replies
2
Views
3K