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
:start | |
duplicate | |
not | |
goto done | |
push 1 | |
add | |
duplicate | |
push 2 | |
subtract | |
push 3 -1 |
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) setSelectedViewController:(UIViewController<SFCustomTabbedViewController> *)selectedViewController { | |
if (_selectedViewController != selectedViewController) { | |
if (_selectedViewController) { | |
NSUInteger selectedViewControllerIndex = [self.viewControllers indexOfObject:_selectedViewController]; | |
if (selectedViewControllerIndex != NSNotFound) { | |
UIButton *tabButton = [self.tabButtons objectAtIndex:selectedViewControllerIndex]; | |
tabButton.selected = NO; | |
} | |
[_selectedViewController willMoveToParentViewController:nil]; |
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
// if we submit more than one div with a class of "jive-rendered-context", only the first div is accepted | |
innerHTMLContent = innerHTMLContent.replace(/(<div class="jive-rendered-content">)/ig,"<div>"); |
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
public static final int BUTTON_MASK; | |
public static final int MODIFIER_MASK; | |
static { | |
/* | |
* These values represent bit masks that may need to | |
* expand in the future. Therefore they are not initialized | |
* in the declaration to stop the compiler from inlining. | |
*/ | |
BUTTON_MASK = BUTTON1 | BUTTON2 | BUTTON3 | BUTTON4 | BUTTON5; |
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
/* | |
* Plug-ins need an opportunity to set the org.eclipse.swt.browser.DefaultType | |
* system property before the first Browser is created. To facilitate this, | |
* reflection is used to reference non-existent class | |
* org.eclipse.swt.browser.BrowserInitializer the first time a Browser is created. | |
* A client wishing to use this hook can do so by creating a fragment of | |
* org.eclipse.swt that implements this class and sets the system property in its | |
* static initializer. | |
*/ | |
try { |
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 in Windows. Under certain cirumstances yet to be | |
* isolated, BCM_SETIMAGELIST does not redraw the control | |
* when a new image is set. The fix is to force a redraw. | |
*/ | |
OS.InvalidateRect (handle, null, true); |
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
/* | |
* No need to override setCompletionBlock. -[AFURLConnectionOperation setCompletionBlock:] is fine for us. | |
* Leaving this comment here to account for all public superclass methods | |
- (void)setCompletionBlock:(void (^)(void))block; | |
*/ |
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
NSKVODeallocateBreak | |
_NSLockError | |
objc_setEnumerationMutationHandler |
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
@interface UINavigationController (Deprecations) | |
- (id)initWithRootViewController:(UIViewController *)rootViewController __attribute__((deprecated)); | |
@end | |
// no implementation of UINavigationController (Deprecations) should be necessary. I just want to add the attribute | |
// should this be a class extension instead of a category? | |
@interface SomethingThatUsesNavigationController : UIViewController | |
@end |
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
@interface Foo : NSObject | |
+ (void)bar; | |
@end | |
@implementation Foo | |
+ (void)bar { | |
OlderNewer