A category on NSEvent suitable for NSEvent time stamping.
Blog
Track GC Memory Usage Using Instruments
When tracking GC memory usage it is essential to be able to examine the heap object graph. That's where Instruments comes in.
Detecting Mouse Down NSEvent in NSView Subviews
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:
So Exactly Why are My Find Panel Buttons Dimmed?
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.
Time Machine Backup and Restore on Iomega StorCenter ix2-200d
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.
Progress Report
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.
KosmicTask - What's the Story
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.
KosmicQuitter - I Use This
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.
KosmicQuitter 1.0 Released
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.
OS X Missing Currency Symbol
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: