This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// DTTextSelectionRect.m | |
// DTRichTextEditor | |
// | |
// Created by Oliver Drobnik on 9/11/12. | |
// Copyright (c) 2012 Cocoanetics. All rights reserved. | |
// | |
#import <objc/runtime.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// DTTextSelectionRect.h | |
// DTRichTextEditor | |
// | |
// Created by Oliver Drobnik on 9/11/12. | |
// Copyright (c) 2012 Cocoanetics. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleDevelopmentRegion</key> | |
<string>en</string> | |
<key>CFBundleDocumentTypes</key> | |
<array> | |
<dict> | |
<key>CFBundleTypeExtensions</key> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleDevelopmentRegion</key> | |
<string>en</string> | |
<key>CFBundleDocumentTypes</key> | |
<array> | |
<dict> | |
<key>CFBundleTypeExtensions</key> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSWindow+DTViewControllerPresenting.m | |
// DTFoundation | |
// | |
// Created by Oliver Drobnik on 10/1/12. | |
// Copyright (c) 2012 Cocoanetics. All rights reserved. | |
// | |
#import "objc/runtime.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma mark - Undo Support | |
- (void)addUndoObservers | |
{ | |
for (CatalogPage *onePage in _catalog.pages) | |
{ | |
NSArray *undoableHotZoneKeys = [CatalogPageHotZone undoableKeys]; | |
for (CatalogPageHotZone *oneHotZone in onePage.hotZones) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSURL *a = [NSURL URLWithString:@"http://google.com/oliver.html"]; | |
NSURL *b = [NSURL URLWithString:@"oliver.html" relativeToURL:[NSURL URLWithString:@"http://google.com"]]; | |
if([a isEqual:b]) { | |
NSLog(@"Same"); // Not run | |
} | |
if([[a absoluteURL] isEqual:[b absoluteURL]]) { | |
NSLog(@"Same"); // Still not run | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)goToProductListWithEvent:(NSEvent *)event | |
{ | |
self.selectedViewController = _productListViewController; | |
// make the search bar first responder | |
NSWindow *window = self.view.window; | |
[window makeFirstResponder:_productListViewController.searchField]; | |
// set the keyDown character into the search field | |
_productListViewController.searchField.stringValue = [event characters]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bug Report: Tweetbot fails to sign in for retweet from other account after restore from iCloud | |
Steps to Reproduce: | |
1) Have Tweetbot set up for multiple Twitter accounts | |
2) backup to iCloud | |
3) reset device and restore from iCloud | |
4) open Tweetbot, when prompted re-authorize first account | |
5) in timeline of first account retweet something via the second account | |
6) Tweetbot wants to re-authorize the second account |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |spec| | |
spec.name = 'DTFoundation' | |
spec.version = '1.0.0' | |
spec.summary = "Standard toolset classes and categories." | |
spec.homepage = "https://github.com/Cocoanetics/DTFoundation" | |
spec.author = { "Oliver Drobnik" => "[email protected]" } | |
spec.source = { :git => "https://github.com/Cocoanetics/DTFoundation.git", :tag => spec.version.to_s } | |
spec.license = 'BSD' | |
spec.requires_arc = true |