Тег ‘Mac OS X’:

ANSI escape sequences for coloring

More about ANSI escape code I modify my twitter script from previous post and now timeline looks like this:

Теги: , , , ,

Комментарии отсутствуют

NSTableView with custom header

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

Теги: , , , , , , ,

Комментарии отсутствуют

NSRegularExpression sample for comment syntax highlighting

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:@"((@\"|\").*?(\"))"                                     [...]

Теги: , , , , , , , , , ,

Комментарии отсутствуют

DDProgressView – Custom Progress View

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!

Теги: , , , , ,

Комментарии отсутствуют

“Geo” renamed to “Photo Info Editor”

“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.

Теги: , , , , , , ,

Комментарии отсутствуют

Get Geo tags from image

Little application for getting geo location from photo

Теги: , , , , , , , , , , ,

Комментарии отсутствуют

MAAttachedWindow from Matt Gemmell

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 [...]

Теги: , , ,

Комментарии отсутствуют

Custom message Box

Custom message box on Cocoa, like iOS messsge bubbles!

Теги: , , , ,

Комментарии отсутствуют

Setting the text color of an NSButton

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];     [...]

Теги: , , , ,

Комментарии отсутствуют

Основы Grand Central Dispatch

В предыдущих статьях писал, что хотел перевести одну интересную статью с английского, но вот нашел перевод  хорошей статьи на русский. Думаю автор перевода не будет против если я копию возьму себе :) Что это? Grand Central Dispatch, или, ко­рот­ко, GCD — это низ­ко­уров­не­вое API, ко­то­рая от­кры­ва­ет но­вый спо­соб ра­бо­тать с па­рал­лель­ны­ми (ори­ги­наль­но это concurrent, а не [...]

Теги: , , , , , , ,

Комментарии отсутствуют