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
I am not a fan of Xcode. Here are ~160~ 200 problems, the first hundred or so issues were filed mostly in | |
July and August 2016 in a fit of rage. Mostly on weekends working (slowly) on side-projects. I have also | |
taken days of my employer's time filing others of these - so the company was not getting value for my time. | |
I believe a paid intern could have found many of these - just start a screen recorder, and when you see something, | |
stop and cut a quick movie. Many have been around for several major versions. | |
I'm volunteering chunks of my life (15-30 minutes per) to one of the most valuable companies in the world, which seems | |
kind of messed up. Things get worse the more complex the project and the longer Xcode been's running. | |
Apple folks - check out rdar://22524679 |
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
@import Foundation; | |
@import CoreServices; | |
// clang -g -fobjc-arc -fmodules launchHandler.m -o launchHandler | |
int main (int argc, const char *argv[]) { | |
// Rudimentary argument checking. | |
if (argc != 2) { | |
printf ("usage: %s filename\n", argv[0]); |
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
#import <Foundation/Foundation.h> | |
// Xcode_3_2_6/usr/bin/gcc -arch ppc -std=c99 -isysroot /Xcode_3_2_6/SDKs/MacOSX10.5.sdk -g -Wall -framework Foundation -o endian-ppc ~/Downloads/endian.m (thanks to Jeremy W. Sherman for the assist) | |
// clang -arch x86_64 -g -Weverything -framework Foundation -o endian endian.m | |
int main (void) { | |
unsigned int values[] = { 1, 387, 8533937 }; |
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
// | |
// NSObject+setValuesForKeysWithJSONDictionary.h | |
// | |
// Created by Tom Harrington on 12/29/11. | |
// Tweaked by Mark Dalrymple | |
// | |
// Copyright (c) 2011 Atomic Bird, LLC. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
#import <Foundation/Foundation.h> | |
#import <objc/runtime.h> | |
#import "typestring.h" | |
// clang -g -fobjc-arc -Wall -framework Foundation -o runtime typestring.m runtime.m | |
// Runtime reference, at least until Apple breaks the link | |
// http://developer.apple.com/library/ios/#documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html |
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
#import <Foundation/Foundation.h> | |
@interface BNRDiggyDict : NSObject | |
// React to object indexing. Would be nice to have a @protocol for this | |
- (id) objectForKeyedSubscript: (id) key; | |
- (void) setObject: (id) thing forKeyedSubscript: (id<NSCopying>) key; | |
// And for fun, it also can react to scalar indexing. | |
// Returns the N'th key of the top-level collection. |
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
Hi! Thanks for looking | |
TL;DR - trying to do anything with os_signpost, but nothing is appearing in instruments. | |
UPDATE: on devices it's working. Is it supposed to work in the simulator? Points of Interest are on built-in templates, I figured it should work on the device... | |
The app is all objc, using the C API. See at the end for a swift attempt | |
More details: | |
Creating the log like this: |
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
#import <Foundation/Foundation.h> | |
// clang -g -Wall -fobjc-arc -framework Foundation -o serial serial.m | |
static id makePlistObjects (void) { | |
NSMutableDictionary *top = [NSMutableDictionary dictionary]; | |
[top setObject: @"Hi I'm a string" forKey: @"string"]; | |
[top setObject: [NSNumber numberWithInt: 23] forKey: @"number"]; |
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
#import <Cocoa/Cocoa.h> | |
// clang -Weverything -fobjc-arc -framework Cocoa -o notification notification.m | |
void QuietLog (NSString *format, ...); | |
void StartSpying (void); | |
void StopSpying (void); | |
void QuietLog (NSString *format, ...) { |
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
#import <Foundation/Foundation.h> | |
// clang -g -fobjc-arc -Weverything -framework Foundation -o fast-enum-1 fast-enum-1.m | |
#pragma clang diagnostic ignored "-Wobjc-missing-property-synthesis" | |
// -------------------------------------------------- | |
// Pass-through | |
@interface Musician : NSObject | |
+ (id) musicianWithName: (NSString *) name instrument: (NSString *) instrument; |
NewerOlder