onstwedder.com

All that you have is your soul

Posts tagged english

2 notes &

Cocoa coding: Blackjack tutorial - part 6

In this part I will set up the MainMenu.xib, containing the “window” of the application. That’s the one I’ve ignored up to now, by going straight to the Log Console.

Basically in the MainMenu.xib I only changed the window title to “Blackjack”. 

That’s it so far. 

Now I am going to add a BlackJackView Class. In the Classes directory add new file, choose as template: Mac OS X | Cocoa | Objective-C class. After clicking Next, the popup will ask you what Subclass it should be. Change this into: NSView.

Read more …

Filed under english blackjack mac osx Cocoa Tutorial Xcode

2 notes &

Cocoa coding: Blackjack tutorial - part 3.5

Right in the (somewhat) middle of writing the tutorial, apple releases Xcode 4. Making me think that I might actually update Xcode so the tutorial will be in 4. Or maybe not.

Of course i will be using a nib further on. And that will be different for sure, cuz the interface builder will be in it.

Also the configuring Subversion tutorial became outdated in less than a week! 

You have to love progress, when it comes kicking through the door.

Oh well.

Filed under coding english objective-c Cocoa Tutorial Xcode

8 notes &

(Installing and) Configuring Subversion for Xcode


So if you start some “serious” programming with Xcode you might consider using Subversion (SVN) - a open source version control system. I’d recommend using it as soon as possible, because it can be helpful.

Here’s how i intent to set it up. I am fairly sure you can use Subversion for a team - just like at my work, where we still use CVS for our code. But at home, where i am not only the lead developer, but also the only developer, i am not working in a team. Instead I’ll just use svn for keeping track. Sometimes it turns out your latest change wasn’t all that smart and you just need to go back. And that’s where SVN’s version control comes in.

Why Subversion? and not for example cvs? Well, for one Subversion is free. But maybe even more important: All macs with leopard or better have Subversion already installed. It’s on your machine right now!

Read more …

Filed under SVN mac objective-c subversion english Tutorial Xcode

0 notes &

Cocoa coding: Blackjack tutorial - part 0.

So basically I was playing around with objective-C and reading “Cocoa Programming: a quick-start guide for developers” and I stumbled upon a great link that explained how to create a deck of cards, shuffle it and draw a card from it in Objective-C. The trouble with the link is, there’s only 1 part. So i’ve decided to redo and remake the tutorial right here.

The end goal of my postings will be a working blackjack - for a mac osx. (And not iphone as the original one - but porting it should be really easy, probably). As a teaser i’ll show you a few screenshots of my (not yet) finished final product - so you’ll know what to expect.

another screenshot of "epic" blackjack build in objective c.

Read more …

Filed under objective-c blackjack coding english mac Cocoa Tutorial Xcode