This file contains 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
Happens while randomly scrolling a table view in the simulator. Both alloc and free are not in my code. Is this a bug in Apple's code or am I missing something? | |
ALLOC 0xfe15980-0xfe15997 [size=24]: thread_a001a500 |start | main | UIApplicationMain | GSEventRun | GSEventRunModal | CFRunLoopRunInMode | CFRunLoopRunSpecific | __CFRunLoopRun | __CFRunLoopDoSource1 | __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ | mshMIGPerform | _XCopyParameterizedAttributeValue | _AXXMIGCopyParameterizedAttributeValue | _copyParameterizedAttributeValueCallback | _createAXUIElementsFromUIElements | _appendVendedAXElementsFromUIElements | _addAXElementsToArrayFromObject | _appendChildrenToArrayStartingAtIndex | -[UITableViewCellAccessibilityElement isAccessibilityElement] | -[UITableViewCellAccessibilityElement tableViewCell] | -[UITableViewCellAccessibility(SafeCategory) _accessibilityReuseChildren:forMockParent:] | -[UITableViewCellAccessibility(SafeCategory) _accessibilityInternalData] | -[_AXTableViewCellInternal |
This file contains 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
-- select @"foo", activate this service | |
-- @"foo" is replaced with kFoo and | |
-- the clipboard contains the variable | |
-- declaration for your .h/.m files | |
-- http://discussions.apple.com/message.jspa?messageID=2900758 | |
on getString(testChar, theString, searchList, replaceList) | |
set {oldDelims, AppleScript's text item delimiters} to ¬ | |
{AppleScript's text item delimiters, {testChar}} | |
set charOffset to (length of (text item 1 of searchList)) + 1 |
This file contains 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
Chat Transcript | |
Friday, June 29, 2012 12:41 AM | |
Duration: 19 minutes 56 seconds | |
Shante: | |
Hi, welcome to Apple! My name is Shante with MobileMe support. Please give me a moment to look over the information you provided. | |
Shante: | |
I understand that you would like to confirm that you can move your accounts in any order that you want to and once the accounts are moved to iCloud they will be individual accounts? |
This file contains 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
__block id foo = [MyObject new]; | |
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ | |
NSLog(@"block entering synchronized"); | |
@synchronized(foo) { | |
NSLog(@"running in synchronized"); | |
sleep(10); | |
NSLog(@"running [foo self]"); | |
[foo self]; | |
NSLog(@"ran [foo self]"); | |
} |
This file contains 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
// In MyViewController.m | |
@interface BaseModelClass (MyViewControllerLayout) | |
// If your model classes don't have a common superclass, put | |
// this category on NSObject instead | |
- (void)layoutForMyViewController:(MyViewController *)controller; | |
@end |
This file contains 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
Last night the developer site went offline. It should come as no surprise that this immediately sent many people into panic mode thinking WWDC tickets would be available when the site came back online. | |
I didn't get to go to WWDC last year because tickets went on sale while I was sleeping, so this year I've signed up for every service I can find to tell me when tickets go on sale, and I run scripts to check the WWDC site. Everyone knows that if WWDC is capped at 5K tickets as it has been, they'll sell out in record time this again year. | |
You guys are just as aware of this as the rest of us are. | |
And yet, despite knowing that tickets weren't going to be for sale when the site returned, you chose not to communicate this to the thousands of Apple developers on Twitter that had become chained to their computers last night in anticipation. | |
This is totally disrespectful. I understand why ticket sales aren't pre-announced, but please don't make this any worse than it has to be. If you're going to take the site offl |
This file contains 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
for match in $(grep -lR uniqueIdentifier *); do printf "File:%s\n\n" $match; otool -v -s __TEXT __objc_methname $match | grep uniqueIdentifier; printf "\n\n"; done; - See more at: http://www.doubleencore.com/2013/06/tutorial-finding-calls-to-uniqueidentifier-in-your-ios-app/#sthash.kV1BoNc0.dpuf |
This file contains 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
- (BOOL)incrementBuildNumberInFile:(NSURL *)fileURL error:(NSError **)error | |
{ | |
BOOL result = NO; | |
static NSString * const sErrorDescription = @"Unrecognized File Format"; | |
static NSString * const sBuildNumberKey = @"BuildNumber"; | |
NSError *localError = nil; | |
NSData *fileData = [NSData dataWithContentsOfURL:fileURL options:0 error:&localError]; | |
if (fileData) |
This file contains 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
// Playground - noun: a place where people can play | |
import Cocoa | |
struct Regex { | |
let pattern: String | |
let expressionOptions: NSRegularExpressionOptions | |
let matchingOptions: NSMatchingOptions | |
init(pattern: String, expressionOptions: NSRegularExpressionOptions, matchingOptions: NSMatchingOptions) { |
This file contains 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
- (UIImage *)mergeImages:(NSArray *)images | |
{ | |
return nil; // hand waving | |
} | |
- (void)exampleWorkspace | |
{ | |
[KZNNodeType registerType:@"MergeImages" inputs:@{@"Images<T>": NSArray.class, @"<T>": UIImage.class} outputs:@{@"Output" : UIImage.class} processingBlock:^(id node, NSDictionary *inputs, NSMutableDictionary *outputs) { | |
outputs[@"Output"] = [self mergeImages:inputs[@"Images"]]; |
OlderNewer