Archive for the ‘Events’ Category


Preparing for WWDC

June 6th, 2008 in Apple, Events |

So tomorrow our journey to WWDC will begin. We’ll fly from Amsterdam to London, from London to L.A. and from there by car to San Francisco. So it’ll be a rather eventfull journey: An interesting ride from L.A to SF, a (hopefully) equally interesting KeyNote (Please no ‘Worst Keynote Ever’ shirts for sale afterwards, like last year) and lots of informative sessions.

I got a new battery for my 15″ MBP in order to be able to hack away on some projects while on plane, I updated my harddive to 200MB 7200rpm so it is faster and I have more storage for a plethora of data (maybe even a Snow Leopard Install?) and I collected lots of documents to read while on plane too.

I’m really looking forward to it. If you happen to visit WWDC and’d love to meet up, be sure to contact us. Especially if you’re german too, and’d love to meet some other german MacHeads / Cococa Hackers.

First examination of the iPhone SDK

March 10th, 2008 in Apple, Events, Mac Development, iPhone |

This weekend I dove deep into the iPhone SDK and tried (after some initial tests) to develop a full-scale realworld application from scratch. Since I’m sorta good at Cocoa and Objective-C, it wasn’t too difficult to grasp the concept behind it and build a simple application in little to no time. I spend my friday evening reading the documentation and playing around with some code, and I spend about 4 hours on Saturday to actually write the application I had in mind.
So far my verdict is, that this is an absolutely awesome API for mobile devices. It’s far far ahead of any of the other Development Kits for mobile usage out there (save Android, but that’s actually not really out yet). I really like the concepts behind it, and it allows to do create magnificient applications really quickly. Apart from that, the (free!) development environment with XCode, Debugger and Instruments is superb, too. My main criticism is currently, that I can’t test my application on my real iPhone, since the 2.0 Beta isn’t only available to select developers. However, the Aspen simulator is a valid substitute.
Users who are new to Cocoa and Objective-C could have some problems though, since the current documentation is, let’s call it, “quite buggy”. There were many small difficulties in there which could really hinder a non-experienced user from coming to the oh-so-necessary “success-experience”. I’ll try to adress those that I stumbled upon here:

Play a Sound File:
In order to simply play a sound, one needs to call AudioServicesCreateSystemSoundID (fileURL, soundID). The Documentation notes, that fileURL is a CFURLRef, and soundID is UInt32. There’re two caveats here though: In order to get a CFURL one can use the NSURL class, which is toll-free bridged with CFURLRef, however: In order for the compiler to not warn, one has to cast NSURL to CFURLRef. The other, and far more annoying, problem here is, that this function doesn’t expect UInt32 (as mentioned in the documentation) for the second parameter, but *a pointer* to UInt32. So a real call would look like this:
UInt32 soundId = 1024;
AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath: @"kick.wav"], &soundId);

Get a value from a UI Element:
The UISlider class for example is really nice and simple to use, as it allows (just like all the other objects) to set a method which will be called, every time someone changes the slider. In this method, one gets the actual Slider-Object as an argument, so one can for example retrieve the current value, or modify the slider.
In order to get the current value of the slider, there exists a so-called “value” property. The difficulty is now to retrieve this value. Since it is a property, retrieving the value cannot be not done via a “getValue” method (as one might expect) but via key/value coding:
[Slider valueForKey:@"value"]
Now, the documentation lists the return value of UISlider.value as float. That’s actually not correct. The value is float, however not a c-float type but a Cocoa NSNumber object with a float value. Once again, this is something which is common in Cocoa, but I guess many new users will still wonder about this.

Set frame for a UI Element:
In order to define, where in your view an UI Element can be placed, one needs to define a “frame” which sets the position and width/height. Most Elements offer a init method, which let the user define such a frame: i.E. [[UILabel alloc] initWithFrame:labelFrame];
However, there’re situations, when one can’t use the initWithFrame method. How do you set the frame then? Quite simple: the frame is a property and can be set with the new . operator:
UILabel *label = [[UILabel alloc] init];
label.frame = CGRectMake(0,0, 60, 24);

I hope I could help some of the early adopters, and will write more soon.

Windows Vista

May 16th, 2007 in Apple, Events, Windows-Corner |

Microsoft released its latest revision of the Windows OS on January 30th, 2007 to great fanfare. Even after a year and a half of beta testing, Windows Vista still suffered a few opening day hiccups.

Right out of the box you can see that once installed, Vista looks a lot like a certain other operating system on the market that features widgets and an extremely user-friendly interface. Indeed, Vista’s AERO interface does look, and feel, like Mac OS X’s Aqua interface. Whereas AERO, which invokes images of “air” has a glass-like presence, Aqua naturally invokes a watery feel to it.

Speaking of AERO, to get the full Vista Experience, including AERO, you have to buy one of the more expensive versions of the OS. Unlike XP, which had two versions, Vista comes in a total of six versions. The versions depend on the market in which the OS is being sold. The Vista Starter Edition will not be sold in the US, but only to so-called “emerging markets.”

In the US, there’s Home Basic, Home Premium, and Vista Ultimate for the normal “home” user. For business, there’s Vista Business and Vista Enterprise. In the European Union, there’s the “N” series of Vista that does not feature Windows Media Player 11 due to certain anti-trust laws in those regions.

The possibility of further anti-trust lawsuits looms closer everyday as several software manufacturers have been pushed by the wayside, as Vista already includes programs similar to, or identical several other offerings.

First and foremost is Windows Defender, an anti-spyware tool. Anti-spyware has long been the domain of companies such as McAfee and Symantec, but now, not only has Microsoft beaten them to the punch, until Symantec released Norton Internet Security suite 7, it was incompatible with Vista due to a scripting error in Internet Explorer 7. Again, Vista comes preinstalled with a firewall, well, there goes Symantec’s offering.

Windows Vista also comes with the capability to burn DVDs right out of the box. Doesn’t Nero does that?

In the end, it seems as though Microsoft is slowly trying to bully software developers out of business.

Back online

May 11th, 2007 in Events |

After having disappeared for a rather long amount of time, stylemac.com is back online. I apologize for not having been able to take care of this earlier, but I’ve had serious problems in my life, and thus needed to force all my energies on real-life problems. I won’t have too much time for stylemac.com within the coming months, but I’ll try to give it some more love.
At least Safarilicious and Tagbag are now reachable again.

Greetings, Benedikt

Run Windows app on Mac OS X 86

February 8th, 2006 in Apple, Application Tips, Events, Mac Apps |

Darwine is a Wine version which runs under Mac OS X. Wine is a compatibility for running Windows programs, it allows for example to use Internet Explorer or Photoshop under Linux. Previous Darwine versions were compiled for PPC but the fact that Windows apps are compiled for X86 constrained the Darwine usage to only PPC-Compiled apps (which are little to none).

Now with Mac OS X for Intel processors, Darwine can finally run X86 Applications, which means: All those Windows Apps and Games which run under Wine for Linux, should soon work under Mac OS X too (Halflife anyone?)

Here’s a screenshot from someone running Winzip:

OSx86 Project – WINE Arrives for Intel Macs
Mac OS X, Wine, Windows, Core Duo, Darwine, Internet Explorer

OweMe
Money Lending Manager