Blog

NSEvent Timestamp

Posted in | »

A category on NSEvent suitable for NSEvent time stamping.

Submitted by Jonathan Mitchell on Thu, 01/07/2010 - 16:32

Track GC Memory Usage Using Instruments

Posted in | »

When tracking GC memory usage it is essential to be able to examine the heap object graph. That's where Instruments comes in.

Submitted by Jonathan Mitchell on Tue, 01/05/2010 - 14:47

Detecting Mouse Down NSEvent in NSView Subviews

Posted in | »

I want to detect mouse down events in the subviews of an NSView so that I can highlight the NSView whenever any of its subviews are clicked.

The first thing we need is to build a list of the window subviews that want to be informed whenever one their subviews is clicked. We we are going to need an NSWindow subclass, say MGSMyWindow.


@interface MGSMyWindow : NSWindow {
	NSHashTable *_clickViews;
}

- (void)addClickView:(NSView *)aView;
@end

The use of NSHashTable indicates that garbage collection is required.

We initialise our window like so:

Submitted by Jonathan Mitchell on Sat, 01/02/2010 - 23:18

So Exactly Why are My Find Panel Buttons Dimmed?

Posted in | »

My NSTextView find panel buttons are dimmed and I don't know why.

The Cocoa NSTextView docs refer to dimmed find panel buttons if the text view is made not selectable. But that isn't the case. My text view is both editable and selectable.

I have been implementing my applications menu and toolbar validation code so I suspect that have misrouted something in the responder chain.

Submitted by Jonathan Mitchell on Fri, 01/01/2010 - 16:52

Time Machine Backup and Restore on Iomega StorCenter ix2-200d

Posted in | »

Wanting to provide networked Time Machine backups for a number of macs I decide to try the Iomega StorCenter ix2-200d. This has a wide feature set and a low entry price. Of course, you can build your self a FreeNAS based system that will offer much of the same functionality but the automatic support for Time Machine is what did it for me.

Submitted by Jonathan Mitchell on Mon, 12/28/2009 - 21:42

Progress Report

Posted in | »

The next release of KosmicTask will be Beta 2 which should arrive before Christmas.

23 issues have dealt with according to the issue tracker with 6 remaining that target Beta 2.

Main improvements in Beta 2 will be a completed application menu, improved editing, improved memory usage and lots of GUI fixes. Task result saving is correctly implemented. Fixed a hard to isolate reconnection issue when stopping and starting multiple network instances.

Beta 2 should be feature and implementation complete.

Submitted by Jonathan Mitchell on Wed, 12/16/2009 - 23:16

KosmicTask - What's the Story

Posted in | »

Well, the story with KosmicTask is that I am getting back to serious development this week. I spent the last 3 or 4 weeks getting KosmicQuitter finished and the website kicked into something resembling moderate order. God knows why I decided to try and write two apps at a time. Must be a sign of an unbalanced mind.

Submitted by Jonathan Mitchell on Tue, 11/24/2009 - 17:18

KosmicQuitter - I Use This

Posted in | »

I do use KosmicQuitter so I felt justified in adding the following entry to http://osx.iusethis.com

"What can I say. I wrote and I use it.

These sorts of apps probably only work for certain sorts of people. I use it to record my alcohol consumption and find that updating it every day helps me think about how much I am drinking.

It hasn't stopped me drinking, nor will it, but it does mean that there are more days when I go without a drink.

Submitted by Jonathan Mitchell on Tue, 11/24/2009 - 16:10

KosmicQuitter 1.0 Released

Posted in | »

And so, two years after starting to code for OS X, I actually manage to release a product. KosmicQuitter is roaming free. And what is more, I actually sold a copy.

Submitted by Jonathan Mitchell on Mon, 11/23/2009 - 13:15

OS X Missing Currency Symbol

Posted in | »

On one of my development machines, which has seen a bit of fiddling it must be admitted, I find that the normal currency symbol for the locale is not displayed (be it £, $ or €). Instead I am presented with the following symbol: ¤.

Now I know that I have seen it before, but where? And secondly, what is it?

Answers:

Submitted by Jonathan Mitchell on Mon, 11/16/2009 - 11:37