Objective-C/Cocoa tutorial for internet capable application? [closed] - objective-c

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I've done a bit of iPhone programming (even have 1 published app) but what I'm really interested in doing is learning to create applications for OS X.
I'm a 7 year .Net Developer so I have some understanding of how to make desktop applications, though I don't know much about memory management as .Net spoiled me.
I was hoping someone could point me in the direction of a good tutorial for Objective-C/Cocoa but SPECIFICALLY targeting networking protocols as the application I have in mind would need to have networking capabilities (it's a turn based game with included chat).
Everywhere I look for tutorials these days leads me to iPhone and Cocoa-Touch tutorials but I need desktop tutorials.

You're probably gonna have to tackle the two subjects separately. For general desktop app development, Aaron Hillegass' book Cocoa Programming for Mac OS X is the most often recommended. It also covers memory management, though if you've already gotten an iPhone application published, I presume you've already tackled the subject.
For networking, Apple provides Getting Started with Networking, Internet, and Web, which is a bit broad, but leads to Introduction to Stream Programming Guide for Cocoa, which in turn contains the chapter Setting Up Socket Streams.
Also keep in mind, OS X is a Unix™ platform, and Objective-C is a superset of C. This means you can eschew Cocoa entirely and use the BSD socket API directly using standard C syntax—meaning you can just Google "bsd socket tutorial" and you're off to the races.

The XCode installation comes with a ton of example code in the /Developer/Examples folder.
There are even more on the ADC site, such as GeekGameBoard.

Apple has a ton of them. Beginner tutorials are not going to have much to do with online games because they're for beginners.

Related

Is there a push notification API for Windows XP/Vista/Win7? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
There is WNS for Windows 8, Urban AirShip for Android and iOS devices but I can't seem to find an API for push notifications on Windows XP, Vista, or Windows 7.
Is there an API for these OS's?
If not, why isn't there? Is there a reason or is it just that no one want to invest in "hacky" technology for "old" operating systems?
I've never seen any natively supported push APIs for these operating systems, no. As Robert Harvey said there in a comment, the benefit likely simply does not outweigh the cost. People using those operating systems probably aren't overly invested in the next wave of technology, so nobody bothers putting in push notifications, which weren't really relevant on most desktop machines until Windows 8 was already released anyway. As for why they won't retroactively add it as an update, that's easy: money. If people want the new and exciting technologies of tomorrow, with push notifications and all, they have to buy Windows 8. Microsoft gains nothing by adding features like that into old operating systems.
But since I imagine you're asking this for a reason, I'm sure you could write a Windows Service with--ha--"relative ease" that would accept notifications (even, if you're feeling techy, through SignalR) and relay them out through the notification bar on those operating systems.
That could actually be a pretty cool piece of open source software to put out there: something that lets you set up push channels easily on those operating systems that will almost definitely never receive support from Microsoft for such behaviors.

First language for iOS? Rubymotion vs C, Objective C vs others [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have no coding experience except for some basic VBA programming to help out my financial models (read: I have 0 coding experience or background). However, I would love to start developing for the iOS or OSX as a hobby and maybe take it further later on.
For the past day or two, I've been researching the best first lanaguge to learn. Should I go directly to C and then Objective C or should I learn something more high level like Ruby and Rubymotion? I'm open to all sorts of suggestions.
Thanks!
If you're looking to go straight into iOS, you might as well go directly into Objective C. Objective C is different enough from pretty much any other "common" language (Java, C#, VB, etc) that knowing another language won't really help you. You should, however, know the basic concepts that encapsulate all programming.
If you're looking at learning to code for iOS to do mobile apps, the following courses through iTunes could be of considerable help to you. They're from Stanford University, and are free.
https://itunes.apple.com/us/course/coding-together-developing/id593208016?l=en
https://itunes.apple.com/us/course/developing-ios-7-apps-for/id733644550
There are two things you will need to learn in order to develop iOS apps: how to program, in general, and how the iOS SDK (software development kit) works in particular.
Learning the iOS SDK is a “fixed cost” that doesn’t have anything to do with which programming language you choose. You’re going to have to know that (for example) if you want to display an alert to the user you’ll have to instantiate a UIAlertView object and set some properties on it. That is the case regardless of the programming language.
Since almost all of the existent example code for iOS is written in Objective-C, however, you’ll be best served learning that language to begin with. Objective-C is a fine candidate for your first language, so taken together the “learn to program” and “learn the SDK” tasks will be easiest if you start by learning Objective-C.
(For what it’s worth I’d recommend Aaron Hillegass’s iOS Programming: The Big Nerd Ranch Guide, but of course there are tons of free and paid ways to learn Objective-C and Cocoa.)

Embedded device drivers development notes [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I want to develop some HAL (Hardware Abstraction Layers) to use in PIC32 and some ARM.
Basically I want to make some code that's usually available on a OS, like generic pin access, communication libraries, device I/O, etc.
Could you advise me with good books/websites?
I'll start with one that I've found a few weeks ago: http://www.kalinskyassociates.com/OnLineLearning.html
Thanks
Have you tried looking at some implementations?
eCos has a HAL, which has some documentation to go along with it.
eLua also has a HAL that has grown around it to support the platforms it runs on (ARM, AVR32, etc..), check the architecture information and the "Platform Interface" and "Generic Modules" menus. If you strip out the Lua, eLua is essentially a HAL.
There are likely other examples as well, but I'd recommend looking at living examples of cross-platform and non-cross-platform hardware APIs. Also, if/when you go and start putting together interfaces, make sure to examine individual platform peripheral implementations before nailing down the API. You will find that certain interaction models are commonly supported across many platforms, and others are very platform specific. If your API assumes functionality will always be available, it will be difficult to port to platforms that either have lacking or non-existent support for the functionality you want. Sometimes you may be able to work around this in software with simple solutions, other times you may find it is either impossible or horribly complicated to make behavior consistent across platforms.
You can try also looking at the OSEK interface documents. The standard does a good job of abstracting accesses to most commonly used peripherals. However, bear in mind that this is only a spec and you'd have to work out all implementation details.

Looking for a Cocoa Google Maps wrapper framework [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
OSX question, not iOS.
I've been searching for a framework to get easy access to the full (or at least the most important functions)of the V3 API Google Maps within a WebView.
From what I've read so far it should be technically possible.
https://developer.apple.com/library/archive/documentation/AppleApplications/Conceptual/SafariJSProgTopics/ObjCFromJavaScript.html
I found a nice little simple tutorial on V2 which works great.
http://www.josephcrawford.com/macdev-articles/google-maps-in-a-cocoa-application/
Now before I start re-inventing the wheel and coding everything from scratch (callbacks from map-pins etc.). Is there nothing open source or similar around?
I'm surprised I could not find much on that subject since having a MapView in Cocoa OSX sounds like something many people would find useful theses days.
Thanks for any pointer to an open source project, tutorial or what may be floating around which I could not find.
meanwhile I found this open source project which seems useful to learn how to do it:
https://github.com/nst/CocoaSlideShow
Found this pretty nice Wrapper which does 100% the same like the iOS MKMapKit:
https://github.com/Oomph/MacMapKit
Have you checked out Google Mapki? It documents unofficial Google Maps API features. There is an Cocoa Touch example on Kadir Pekel's blog here. Though it might be difficult to adopt the example to Cocoa since it makes use of MKMapView.
Try here programmable web i could not see what you want but there are at least two objective-c wrappers for other popular api's, not google maps tho, and so it might be a starting point.
I am not sure you need a framework to do this. Did you have a look at the link below?
http://code.google.com/intl/fr-FR/apis/maps/articles/tutorial-iphone.html
Then all you need is generate the HTML from your code and load it with UIWebView's loadRequest.
That's what i did in my iPhone project, worked like a charm.

Good Books for Iphone sdk and Objective-C [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have choosen Iphone as my profession and I am working on it for making my career on this particular field.Since from last few weeks I am searching on for good books on Iphone sdk and on obj-c with topics included like:
Total UI Controls , UI Delegates And all Foundation Framework classes like NSString, NSArray etc, About Memory Management, CFNetwork, some sample iphone application Programs.
I saw some books in book stores but couldn't able to decide which book to buy. can you please help me in giving me some best book names where I can find all the topics.
Thanks,
Though not a book, I would recommend checking out the free Stanford class from Itunes U. Just looks up iPhone Application Development or Iphone Application Programming.
They go through all the basics as well as APIs for NSString and NSArray, etc if only cursory. If you get a chance, also try to get a hold of the assignments. You can google for them since they take down the assignments from semester to semester. Just go along with them and try them out as best as you can. That helped me out a great deal when learning iPhone development.
I'm starting with "Programming in Objective-C 2.0 (Developer's Library)" and it seems really good.
For iphone sdk have a look at "Phone SDK Development: Building iPhone Applications (With Source Code)"
The iPhone SDK Development is a good start.
I started learning to develop for iPhone last week, and I've been using both Head First iPhone Development and iPhone SDK Development. They are both great in conjunction with each other. I've been using the head first book when running through exercises hands-on at the computer, and the pragmatic book as more of a reference book to read on-the-go.