Some Cocoa Questions

Posted:
in macOS edited January 2014
1st...can you have applications communicate over the internet and LAN's with just cocoa?



2nd...Cocoa Programming for Mac OS X is the book i'm getting to learn...after i read this and get a hold of cocoa, what would you suggest for me next (anyone who has read this, does this contain any networking info?)



3rd...for the sake of this being appleinsider...there's no step 3!

Comments

  • Reply 1 of 5
    thuh freakthuh freak Posts: 2,664member
    cocoa does have a socket class (NSSocketPort i think) which is basically just a loose cover over bsd sockets, iirc. if u are familiar with programming bsd sockets in c, then it should be pretty easy to transfer. if you aren't, dont worry, cuz net'ing aint so hard. i'll give a ltitle explanation. sockets are bsd's way of handling networking (sockets are also used on linux and other *nixes, and a similar system is used in windows' "winsocks"). basically they act a lot like regular files, so you can read and write to them very similarly to how you would write to regular files (in c); once you have an open connection of course. and NSSocketPort can take care of opening a connection pretty easily for ya.
  • Reply 2 of 5
    ast3r3xast3r3x Posts: 5,012member
    thanks, i am very interested in LAN and internet related programs so i was hoping this would work well





    can anyone possibly suggest an internet site (or hopefully a book) about more network related, because i don't believe this book has very much about it in there
  • Reply 3 of 5
    ast3r3xast3r3x Posts: 5,012member
    i know apple likes a standard interface, but if i would want to make my own, how easy is that to do?
  • Reply 4 of 5
    airslufairsluf Posts: 1,861member
    Kickaha and Amorph couldn't moderate themselves out of a paper bag. Abdicate responsibility and succumb to idiocy. Two years of letting a member make personal attacks against others, then stepping aside when someone won't put up with it. Not only that but go ahead and shut down my posting priviledges but not the one making the attacks. Not even the common decency to abide by their warning (afer three days of absorbing personal attacks with no mods in sight), just shut my posting down and then say it might happen later if a certian line is crossed. Bullshit flag is flying, I won't abide by lying and coddling of liars who go off-site, create accounts differing in a single letter from my handle with the express purpose to decieve and then claim here that I did it. Everyone be warned, kim kap sol is a lying, deceitful poster.



    Now I guess they should have banned me rather than just shut off posting priviledges, because kickaha and Amorph definitely aren't going to like being called to task when they thought they had it all ignored *cough* *cough* I mean under control. Just a couple o' tools.



    Don't worry, as soon as my work resetting my posts is done I'll disappear forever.
  • Reply 5 of 5
    ast3r3xast3r3x Posts: 5,012member
    Quote:

    Originally posted by AirSluf

    Dude, how quickly you forget



    We went over this once before--Java Network Programming--an O'Reilly book. Don't get hung up on the "Java" in the name, you can make the programming leaps easily enough. The basic networking concepts are there.




    ahh ok, no i rememberd but i thought i was under the impression i'd be using java to network my apps completely and have to learn all of java





    i'll check out that book
Sign In or Register to comment.