Skip to content

Instantly share code, notes, and snippets.

@raylillywhite
raylillywhite / Apple_mobile_device_types.txt
Created April 22, 2024 14:46 — forked from adamawolf/Apple_mobile_device_types.txt
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S

Keybase proof

I hereby claim:

  • I am raylillywhite on github.
  • I am raylillywhite (https://keybase.io/raylillywhite) on keybase.
  • I have a public key whose fingerprint is BBC5 48A3 0B6F D47C 71E3 8DED 0EB1 98CF 2475 639F

To claim this, I am signing this object:

@interface RLLObject : NSObject
@end
@implementation RLLObject
- (NSString *)description {
return [NSString stringWithFormat:@"This is a really long description format for %@", [super description]];
}
0 = Undefined
1 = purple = flavor/culture
2 = red = music
3 = orange = sports
4 = blue = news
5 = green = local
6 = gray???
7 = Go (green)
8 = Saves (gray?)
9 = History
#!/bin/sh
ORIGINALDIR="$( pwd )"
SCRIPTDIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BASEDIR="$( cd -P $SCRIPTDIR/.. && pwd )"
COLORON='printf "`tput setaf 7`"'
COLORON2='printf "`tput setaf 5`"'
COLORONRED='printf "`tput setaf 1`"'
COLOROFF='printf "`tput sgr0`"'
NSNumberFormatter *currencyFormatter = [[NSNumberFormatter alloc] init];
[currencyFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
[currencyFormatter setCurrencyCode:currencyCode];
[currencyFormatter setMaximumFractionDigits:0];
[currencyFormatter setRoundingMode:NSNumberFormatterRoundHalfUp];
return [currencyFormatter stringFromNumber:@(amount)];
- (NSString *)longDescription
{
NSString *dateString = [HTLongDateFormatter() stringFromDate:self.dateCreated];
NSString *description = [NSString stringWithFormat:@"%@. %@", dateString, self.description];
if (self.expirationDate)
{
NSString *expirationFormat = nil;
if ([self.expirationDate timeIntervalSinceNow] > 0)
{
http://www.sourcedrop.net/HEx95e637848b
(lldb) po [NSThread callStackSymbols]
(id) $1 = 0x09efad00 <_NSCallStackArray 0x9efad00>(
0 ??? 0x124fc2cf 0x0 + 307217103,
1 UIKit 0x01a8ffbf -[UIViewController _setViewAppearState:isAnimating:] + 158,
2 UIKit 0x01a902d4 -[UIViewController __viewDidAppear:] + 136,
3 UIKit 0x01a9e907 -[UINavigationController viewDidAppear:] + 163,
4 UIKit 0x0ef46be5 -[UINavigationControllerAccessibility(SafeCategory) viewDidAppear:] + 57,
5 UIKit 0x01a8ffbf -[UIViewController _setViewAppearState:isAnimating:] + 158,
6 UIKit 0x01a902d4 -[UIViewController __viewDidAppear:] + 136,
7 UIKit 0x01a918c9 __64-[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:]_block_invoke_0 + 44,
(lldb) po [NSThread callStackSymbols]
(id) $2 = 0x0f485710 <_NSCallStackArray 0xf485710>(
0 ??? 0x124fc39f 0x0 + 307217311,
1 UIKit 0x01a8ffbf -[UIViewController _setViewAppearState:isAnimating:] + 158,
2 UIKit 0x01a902d4 -[UIViewController __viewDidAppear:] + 136,
3 UIKit 0x01a9e907 -[UINavigationController viewDidAppear:] + 163,
4 UIKit 0x0ef46be5 -[UINavigationControllerAccessibility(SafeCategory) viewDidAppear:] + 57,
5 UIKit 0x01a8ffbf -[UIViewController _setViewAppearState:isAnimating:] + 158,
6 UIKit 0x01a902d4 -[UIViewController __viewDidAppear:] + 136,
7 UIKit 0x01a905d7 -[UIViewController _endAppearanceTransition:] + 263,