ANSI escape sequences for coloring
Рубрики: Mac OS X on Feb.02, 2012
More about ANSI escape code I modify my twitter script from previous post and now timeline looks like this:
Рубрики: Mac OS X on Feb.02, 2012
More about ANSI escape code I modify my twitter script from previous post and now timeline looks like this:
Рубрики: Mac OS X on Jan.22, 2012
Default header looks like this First we want change height of header: 12NSTableHeaderView *tableHeaderView = [[NSTableHeaderView alloc] initWithFrame:NSMakeRect(0, 0, 120, 60)]; [_tableView setHeaderView:tableHeaderView]; Next step we want change NSTableHeaderCell, can make category for this class or make subclass. So, I wrote subclass. Empty category
Рубрики: Apple on Nov.08, 2011
I have this text: 1word1 word2 " word3 //" word4 I wrote simple solution. I know it can be better. I know about Back Reference, but i don’t have experience with it. 123456789101112131415161718192021222324252627282930313233NSRegularExpression *expression = [NSRegularExpression regularExpressionWithPattern:@"((@\"|\").*?(\"))" [...]
Рубрики: others on Nov.05, 2011
DDProgressView is a custom progress view à la Twitter for iPhone. DDProgressView works on both iOS and Mac OS. You must also compile the AppKitCompatibility.m file when targeting Mac OS. Thanks, Damien DeVille!
Рубрики: others on Aug.21, 2011
“Geo” renamed to “Photo Info Editor” alpha 1.0.1 Added Sparkle updater. Download Photo taken on Nikkon photo cam without GPS. Original date in NSDatePicker of photo.
Рубрики: Mac OS X on Aug.18, 2011
Little application for getting geo location from photo
Рубрики: Mac OS X on Jul.16, 2011
Nice window! Thanks, Matt Legend Gemmell! I us it in my apps, good solution! :) A cool NSWindow subclass which lets you easily attach a view to another window, displayed in a floating “speech-bubble”-like borderless window. Very handy for contextual help, showing options for a certain control, or just to draw attention to things. Have [...]
Рубрики: Mac OS X, others on Jul.14, 2011
Custom message box on Cocoa, like iOS messsge bubbles!
Рубрики: Mac OS X on Apr.20, 2011
Here’s a simple little category on NSButton which adds -textColor and -setTextColor: methods to the class. Header: 1234567#import <Cocoa/Cocoa.h> @interface NSButton (TextColor) – (NSColor *)textColor; – (void)setTextColor:(NSColor *)textColor; @end Implementation: 12345678910111213141516171819202122232425262728293031#import "NSButton+TextColor.h" @implementation NSButton (TextColor) – (NSColor *)textColor { NSAttributedString *attrTitle = [self attributedTitle]; int len = [attrTitle length]; [...]
Рубрики: Apple, iPhone, Mac OS X on Apr.08, 2011
В предыдущих статьях писал, что хотел перевести одну интересную статью с английского, но вот нашел перевод хорошей статьи на русский. Думаю автор перевода не будет против если я копию возьму себе :) Что это? Grand Central Dispatch, или, коротко, GCD — это низкоуровневое API, которая открывает новый способ работать с параллельными (оригинально это concurrent, а не [...]