hdiutil attach /Applications/Install\ macOS\ Sierra\ Public\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages
cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/
cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist
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
typedef enum _UIBackgroundStyle { | |
UIBackgroundStyleDefault, | |
UIBackgroundStyleTransparent, | |
UIBackgroundStyleLightBlur, | |
UIBackgroundStyleDarkBlur, | |
UIBackgroundStyleDarkTranslucent | |
} UIBackgroundStyle; | |
@interface UIApplication (UIBackgroundStyle) | |
-(void)_setBackgroundStyle:(UIBackgroundStyle)style; |
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
<Subjects> | |
<Subject name='Kannada' user="APPUSERIESKANNADA"/> | |
<Subject name='The Looney Tunes Show'> | |
<Topic code="looney" name="Looney" YTTV="true" /> | |
<Topic code="619C868BD457387C" name="Baby Looney Tunes" /> | |
<Topic code="6F2996C1B34A5FC4" name="The Looney Tunes Show" /> | |
<Topic code="738A89379AF8DD2A" name="Bugs Bunny " /> | |
<Topic code="A2C5018B54365C3C" name="Daffy Duck" /> | |
<Topic code="D572048819F3CE24" name="Duck Dodgers" /> | |
<Topic code="82C2B02BE527E534" name="Looney Tunes" /> |
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
static UIImage * UIImageForSwatchOfColorWithSize(UIColor *color, CGSize size) { | |
UIImage *image = nil; | |
CGRect rect = CGRectMake(0.0f, 0.0f, size.width, size.height); | |
UIGraphicsBeginImageContext(rect.size); | |
{ | |
CGContextRef c = UIGraphicsGetCurrentContext(); | |
CGContextSetFillColorWithColor(c, [color CGColor]); |
Notes for working with Git Submodules, taken from:
https://git-scm.com/book/en/v2/Git-Tools-Submodules
Grab submodule dependencies after a fresh clone
git submodule init
git submodule update
..or alternatively,
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 Combine | |
extension Publisher { | |
var stream: AsyncThrowingStream<Output> { | |
AsyncThrowingStream(Output.self) { continuation in | |
let cancellable = sink { completion in | |
switch completion { | |
case .finished: continuation.finish() | |
case .failure(let error): continuation.finish(throwing: error) | |
} |
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
// Similar to defer in Swift | |
#define pspdf_defer_block_name_with_prefix(prefix, suffix) prefix ## suffix | |
#define pspdf_defer_block_name(suffix) pspdf_defer_block_name_with_prefix(pspdf_defer_, suffix) | |
#define pspdf_defer __strong void(^pspdf_defer_block_name(__LINE__))(void) __attribute__((cleanup(pspdf_defer_cleanup_block), unused)) = ^ | |
#pragma clang diagnostic push | |
#pragma clang diagnostic ignored "-Wunused-function" | |
static void pspdf_defer_cleanup_block(__strong void(^*block)(void)) { | |
(*block)(); | |
} | |
#pragma clang diagnostic pop |
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
#!/bin/bash | |
export THEOS=/opt/theos | |
# clone theos.git | |
cd /opt | |
git clone git://github.com/DHowett/theos.git | |
# clone iphoneheaders.git | |
cd $THEOS | |
mv include include.bak |
- [Working without a nib, Part 1][1]
- [Working without a nib, Part 2: Also Also Wik][2]
- [Working without a nib, Part 5: No, 3!][3]
- [Working without a nib, Part 4: setAppleMenu][4]
- [Working without a nib, Part 5: Open Recent menu][5]
- [Working without a nib, Part 6: Working without a xib][6]
- [Working without a nib, Part 7: The empire strikes back][7]
- [Working without a nib, Part 8: The nib awakens][8]
- [Working without a nib, Part 9: Shipping without a nib][9]
- [Working without a nib, Part 10: Mac Main Menu][10]
OlderNewer