[ / / / / / / / / / / / / / ] [ dir / clang / drugs / hydrus / islam / juche / komica / rwby / x ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

[–]

 No.987062>>987091 >>994421 [Watch Thread][Show All Posts]

What are the best resources(s) for learning Objective C? Not a macfag, I want to write applications using GNUstep.

 No.987063>>987073

Swift > ObjC


 No.987073

>>987063

he said he's not a macfag. He just wants to use GNUstep. Gosh.

I skipped through this video and it looks alright, OP: https://www.youtube.com/watch?v=5esQqZIJ83g


 No.987075>>987847

I had a book from these guys, but I don't have the PDF anymore and I don't remember which one it was. It was OK, but clearly intended for Mac programmers.

https://www.bignerdranch.com/books/

Objective-C is not the problem, it's just a superset of C and the extra stuff you can learn in a day or so. The hard part is Cocoa, it's so old and so big that not even the people at Apple know how to use it properly. No joke, one time I was reading their docs and they re-implemented in a shitty way something that is already part of Cocoa for no reason.

Another big problem is XCode: any book you buy will be basically a glorified XCode tutorial because of how heavy Mac- and iOS developers rely on it for everything. All of it could be done through makefiles, but it's all hidden behind an opaque GUI so you have no idea what anything does. XCode is OK as far as IDEs are concerned, but all IDEs are inherently shit be design.

I have been interested in GNUStep myself as well, but I don't know where to start or even what packages to install (I'm on Ubuntu and I use Guix as well). I wish Gregory Casamento would stop sperging about Drumf for a while and clean up the GNUStep website. Also, where is the Swift support?


 No.987091

>>987062 (OP)

>What are the best resources(s) for learning Objective C?

1911 KJV Holy Bible. Don't be a fag.


 No.987127>>987198 >>987435

How do people survive Obj-C's godawful syntax?


 No.987198>>987435

>>987127

[pajeet PooIn: loo];
// VS
pajeet.PooIn(loo);

Wow, what a huge difference.

But seriously, I actually like the Objective-C syntax where every method parameter has a name. It's such much easier to read than having five parameter of the same type and then having to look up the docs to find out what any of those mean.

[pajeed travelFrom: new_delhi To: mumbai Via: bangalore];

Without those you would either have to know the names of the parameters or put the information into the method's name:

pajeed.TravelToFromVia(new_delhi, mumbai, bangalore);

Now that is ugly.


 No.987435

>>987198

>>987127

You know there is a book called The Bible.


 No.987562

Interesting difference between C++ and ObjC is the concept of message passing between classes. First time I heard about it I thought of micro-kernels.


 No.987836

GNUstep's APIs are roughly Mac OS X 10.5-10.6, so look for books & tutorials from that time period (2010) or earlier:

- Objective-C Pocket Reference (language reference, doesn't cover ObjC 2.0)

- Cocoa Programming for Mac OS X (3rd edition or earlier)

- Cocoa in a Nutshell (framework reference, covers OS X 10.2)


 No.987847

>>987075

>I have been interested in GNUStep myself as well, but I don't know where to start or even what packages to install (I'm on Ubuntu and I use Guix as well)

To install a GNUstep development environment (GNUstep libraries, GNUstep Make, ProjectCenter IDE, Gorm InterfaceBuilder) on Ubuntu:

sudo apt-get install build-essential gnustep-devel gnustep-examples

GNUstep has two runtimes available: The old runtime (gcc runtime - requires gcc), which only supports ObjC 1.0, and the new runtime (libobjc2 - requires clang), which supports ObjC 2.0 & recent features such as ARC, blocks, etc.

Ubuntu's (Debian's) GNUstep packages install the old runtime, so you won't be able to use ObjC2 features.

To make GNUstep applications from the command line, you need to set up your shell for GNUstep Make - type this command or add it to your .bashrc:

. /usr/lib/GNUstep/Makefiles/GNUstep.sh

Search for GNUstep tutorials, download some GNUstep app sources & try building them...

To run an app you've built:

openapp ./AppName.app

To debug it with gdb:

debugapp ./AppName.app

One suggestion: GNUstep's apps' main menus don't work well with the GNOME desktop, so try using a different DE; GNUstep's default location for its apps' main menus is directly underneath GNOME's app dock & menubar, which makes them hard to interact with.


 No.994383>>994385

File (hide): 9b5528ed7399373⋯.png (468.4 KB, 582x575, 582:575, Screenshot_184.png) (h) (u)

bump, also interested


 No.994385>>994390

>>994383

Open defecation is good for the soil.


 No.994390

>>994385

>getting high on hindu kush grown in your own sh*t


 No.994421>>994741 >>995696

>>987062 (OP)

Objectively the best C book


 No.994741>>994791 >>995721

>>994421

Can you fucking read? He's asking about Objective C dumbass


 No.994791

>>994741

>The joke

>Your head


 No.995696

File (hide): e755fca7c3937e7⋯.jpg (4.92 KB, 200x134, 100:67, 1539027865356.jpg) (h) (u)


 No.995721

File (hide): 7de13c8609f6de9⋯.png (473.66 KB, 680x435, 136:87, Cruise.png) (h) (u)




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
18 replies | 4 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / clang / drugs / hydrus / islam / juche / komica / rwby / x ][ watchlist ]