October 2011
5 posts
1 tag
NSMutableParagraphStyle
To create an instance of NSMutableParagraphStyle having the default paragraph style, I tried
NSMutableParagraphStyle *mutableStyle = [NSMutableParagraphStyle defaultParagraphStyle];
[mutableStyle setAlignment:NSCenterTextAlignment];
The above snippet raises an exception: NSParagraphStyle does not have the selector -setAlignment:. WTH? It seems that +defaultParagraphStyle only returns an...
2 tags
A mathematician was asked by a devout Christian “Do you believe in one...
– From KAIST ARA BBS via Facebook
1 tag
Thin divider of NSSplitView
To make the divider of an NSSplitView really thin, i.e. 1px, it does not suffice to set the divider type to “Thin.” You have to set the border type of both embedded views, assuming that they are both subclasses of NSScrollView, to NSNoBorder. This means in Xcode
By default NSBezelBorder, the third button in the picture, is selected which results in
By having no borders, you get
...
1 tag
Icons inside toolbar controls
Assume that you want to create a toolbar like the Mail application. The Icon Design Guidelines in the Apple’s HIG says that the icon should measure no more than 19 x 19 pixels and should be in the PDF format. However, PNG works fine, too. More importantly, if we want to have the inner shadow effect,
than the name of the image must end with “Template.” As far as I can see, this...
3 tags
Ein Interview mit Martin Jander, tagesschau.de
tagesschau.de: Der niedersächsische Innenminister, Uwe Schünemann, hat aber die aktuellen Brandanschläge auf die Bahn mit dem Terrorismus der Siebzigerjahre verglichen. Sind solche Vergleiche überhaupt sinnvoll?
Jander: Wenn Sie mich fragen: Das ist ein öffentliches Schüren von Hysterie für das es keinen fundierten Ansatz gibt. Das sollte man...