Cocoa


2
Jan 12

AppleScript-Cocoa Over PyObjC?

What’s more odd to me, is that Apple has dropped the PyObjC support but gave AppleScript a giant boost with Cocoa-AppleScript. Don’t get me wrong, I like AppleScript fine, but it sure isn’t as flexible as Python or Ruby[1].

Anyway, if your thinking about making any AppleScript-Cocoa projects, here’s a very good tutorial over at MacScripter.

 

UPDATE: There are also great resources over at MacAutomation.com, including what looks like a good book.


  1. I know about MacRuby and it’s the best reason yet for me to start thinking about Ruby over Python. I only have so much free time, and almost no work time to invest in learning a new language.  ↩

3
Oct 11

Ridiculous Fish [Link]

Ridiculous Fish has blog that is very good reading for beginners. It might well be good reading for more advanced Cocoa programmers but I’m not one to say since I am a beginner.

Make sure to start at the beginning of the posts and work towards the more recent articles.


17
Jun 11

3 Reasons To Develop For iOS [Link]

Marco Arment summarises the primary reasons to develop for a platform:

  1. Developers themselves use and love the platform’s products.
  2. The platform has a large installed base.
  3. Developers can make decent money on the platform.

I think I only care about #1, but then again I have a day job.


29
Dec 06

A band-aid for the Finder

Yes, the Finder could be better. I think many of us are hoping that the next OS release brings tabbed finder views and a simple way to deal with moving and viewing files. But until that day comes, there is Pathfinder by Cocoatech (PF4). It’s been touted on 43Folders a couple of times, here and here. Cocoatech have produced a quality product that feels right at home on my desktop. It takes some practice to get used to it though, so I’ll outline some cool features here.

The dropstack is a temporary holding place for files. Think of it as a more useful and forgiving command-select. You just drop files in the square and it keeps track of all of them. Then when you are ready to manipulate the files, you can easily grab each or all of them. YOu can even ctrl-click the stack to compress, burn, or email the lot. I use this for organizing my directories. I just browse through a bunch of folders throwing misplaced files in the dropstack. When I’m ready I just switch to the folder I want them in and unload them all.

PF1

There are a huge number of options when working with files. The contextual menu for a single file allows you to do almost anything with it. Pathfinder not only gives you the option to copy the path of a file but it gives you the option of copying the UNIX, HFS, Terminal, URL, or name as a path. Honestly, it’s more than I have use for, but I’m sure some uber power user out there would love this feature.

PF2

As far as file paths go, PF4 has multiple optional drawer that you can setup to display the curent file path. As shown below, I also like to keep a folder histroy displayed so I don’t have to keep back tracking to folders that I use regularly. You know, those folders that are good enough for favorites, but you might make a desktop alias to.

PF3

The last feature I want to mention is the optional Running Processes tab. It’s kind of like having a mini-dock attached to the window. You can kill a process, switch to an application or bring up a contextual menu with loads more options, such as launching another instance of the application as root.

PF4

These are the kind of features that only a dedicated and Apple Fanboy would think about including. I bet the developers at Cocoatech all love their macs and started making great software that they wanted to use. I, for one, am grateful that the mac community is made by companies like Cocoatech

Technorati Tags: , , , , , , ,


8
Oct 06

Digging for code

Temp

Recently, Google labs introduced their new “Code Search” tool. This got me to start looking for similar search engines on the web. One of the nice one’s I’ve used is “Programming is hard” which has some nice formating, but limited languages. While many of the examples are way over my head as a new coder, these snippets have a lot to teach. I’t is mind blowing just how efficient an experienced programmer can make a routine.

As I said though, there are few good sources for Objective C, Cocoa, or Applescript. ALthough Google found over 200 examples for Cocoa related code. Of course there are plenty of publicly available sources for learning Objective C, but they are sparse with code examples.

Technorati Tags: , , , ,


23
Aug 06

Objective C #1 – Return Values

Recently I began to teach myself Objective C. My final goal is to program in Cocoa for the Mac. The process is slow going, but really interesting. I’m adding a regular section to highlight some of my thoughts about learning a programming language. The first post is about “Return Values”

-(void) setNumerator;

This expression declares a new method that is not expected to return anything (i.e. void)

-(double) myNumber;

declares a method that should be returning a double precision number

-(int) getNumber;

should return an integer.

All this is very cool. It makes it pretty easy to see what kind of result should come back when the method is put into action. While it’s not as direct as Ruby, I’m getting it. I’m even more green with Ruby, but I’ve heard such great things about it, that I had to check it out. I highly recommend this quirky but entertaining guide.

Technorati Tags: , , ,