Archive for Januar 2011

Cocoa is sucking and ruling synchronously

Januar 29th, 2011 — 1:09am

Slowly I’m getting a feeling of how to create apps with the help of objective-c and cocoa. And it both sucks and rules at the same time!

At first, the things I like. Bindings. They are impressing! Generating small apps without a single line of code, visualizing data with several UI components fast. Makes really fun. Also objective-c as a programming language is cool combined with cocoa as the framework, even if objective-c feels a little bit outdated compared to something like C#.

Now what really sucks. Creating layouts with the interface builder. In took me nearly an hour, to complete a simple view like this:

A basic window with a NSSPlitView and a NSOutlineView. At first, positioning the elements not to overlap was a pain in the ass. Second, my simple wish to fix the size of the left view seemed to be impossible within the interface builder. After a little bit of googling I’ve found following snippet.

-(void)splitView:(NSSplitView *)sender resizeSubviewsWithOldSize:
	CGFloat dividerThickness = [sender dividerThickness];
	NSRect leftRect  = [[[sender subviews] objectAtIndex:0] frame];
	NSRect rightRect = [[[sender subviews] objectAtIndex:1] frame];
	NSRect newFrame  = [sender frame];
	leftRect.size.height = newFrame.size.height;
	leftRect.origin = NSMakePoint(0, 0);
	rightRect.size.width = newFrame.size.width - leftRect.size.width
	- dividerThickness;
	rightRect.size.height = newFrame.size.height;
	rightRect.origin.x = leftRect.size.width + dividerThickness;
	[[[sender subviews] objectAtIndex:0] setFrame:leftRect];
	[[[sender subviews] objectAtIndex:1] setFrame:rightRect];

As nearly every component can have a delegate defined which is triggered at certain actions, this one is triggered on resizing the split view. Simply, the old size of the left side is taken and kept, while the new size of the right side will be passed through.

Now going to fill this stuff with life!

Comment » | Macintosh, Programmieren

GeForce FX6200 ROM for Cube without temp. sensor released

Januar 1st, 2011 — 5:45pm

Maybe a few people will be excited about this. I’ve created a GeForce FX6200 ROM (XFX PVT44AWANG GeForce 6200 256MB 64-bit DDR) for Cube owners, which has reduced clock rates and a disabled temperature sensor.

For a long time now, only three different versions of the GeForce FX6200 ROM for the Mac have been available on the internet. At first, an original rom with stock clock rates and enabled temperature sensor, one with the same clock rates and a disabled temperature sensor and at last one with lowered clock rates (heat issue) and an enabled temperature sensor for cube owners.

The disabled temperature sensor however is required for Leopard users, because with an enabled sensor Leopards needs about 4 minutes to boot, as the sensor first needs to become hot enough for being discovered by the OS X driver.

So I created my own ROM, which has both – lowered clock rates and a disabled temperature sensor for Cube owners. You will need a PC to flash the card, information is available on the macelite wiki.

You can download the rom here.

3 comments » | Digitale Welt, Macintosh

Back to top