Skip to content

Commit

Permalink
Adding line breaks to long titles
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Mar 7, 2014
1 parent ce2d488 commit f1f95ea
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 24 deletions.
9 changes: 4 additions & 5 deletions 2012-12-31-reader-submissions-new-years-2013.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
---
layout: post
title: "Reader Submissions - New Year's 2013"
title: "Reader Submissions -<br/>New Year's 2013"
category: "Reader Submissions"
published: true
framework: ""
description: "In celebration of the forthcoming `year++`, I thought it'd be fun to compile a list of some of your favorite tips and tricks of the trade. Readers were asked to submit their favorite piece of Objective-C trivia, framework arcana, hidden Xcode feature, or anything else they thought is cool."
---

In celebration of the forthcoming `year++`, I thought it'd be fun to compile a list of some of _your_ favorite tips and tricks of the trade--to give y'all a chance to show off some of your NSHipster cred.

Thanks to [Cédric Luthi](https://github.com/0xced), [Jason Kozemczak](https://github.com/jaykz52), [Jeff Kelley](https://github.com/SlaunchaMan), [Joel Parsons](https://github.com/joelparsons), [Maximilian Tagher](https://github.com/MaxGabriel), [Rob Mayoff](https://github.com/mayoff), [Vadim Shpakovski](https://github.com/shpakovski), & [@alextud](https://github.com/alextud) for [answering the call](https://gist.github.com/4148342) with _excellent_ submissions.
Thanks to [Cédric Luthi](https://github.com/0xced), [Jason Kozemczak](https://github.com/jaykz52), [Jeff Kelley](https://github.com/SlaunchaMan), [Joel Parsons](https://github.com/joelparsons), [Maximilian Tagher](https://github.com/MaxGabriel), [Rob Mayoff](https://github.com/mayoff), [Vadim Shpakovski](https://github.com/shpakovski), & [@alextud](https://github.com/alextud) for [answering the call](https://gist.github.com/4148342) with _excellent_ submissions.


Associated Objects in Categories
Expand All @@ -33,7 +32,7 @@ Categories are a well-known feature of Objective-C, allowing new methods to be a
#import "NSObject+Extension.h"
#import <objc/runtime.h>
static const void *IndieBandNameKey = &IndieBandNameKey;
static const void *IndieBandNameKey = &IndieBandNameKey;
@implementation NSObject (IndieBandName)
@dynamic indieBandName;
Expand Down Expand Up @@ -126,7 +125,7 @@ Reverse-Engineered Implementation of `NSString` Equality Methods

Displaying his characteristic brilliance and familiarity of Cocoa internals [Cédric Luthi](https://github.com/0xced) submitted [a reverse-engineered implementation of the `NString` equality methods](https://gist.github.com/2275014). Fascinating!

Animate `NSLayoutConstraint.constant`
Animate `NSLayoutConstraint.constant`
-------------------------------------

This one goes out to all you fans of [Cocoa Auto Layout](https://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AutolayoutPG/Articles/Introduction.html#//apple_ref/doc/uid/TP40010853), from [Vadim Shpakovski](https://github.com/shpakovski):
Expand Down
3 changes: 1 addition & 2 deletions 2013-05-20-core-data-libraries-and-utilities.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
layout: post
title: Core Data Libraries & Utilities

title: "Core Data Libraries & Utilities"
framework: "Open Source"
rating: 8.9
description: "We were a bit hard on Core Data last week, so for this issue of NSHipster, we bring you a guided tour of the best open source libraries for working with Core Data. Read on to see how you might make the most from your Core Data experience."
Expand Down
2 changes: 1 addition & 1 deletion 2013-06-24-uuid-udid-unique-identifier.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: NSUUID / CFUUIDRef / UIDevice -uniqueIdentifier / -identifierForVendor
title: NSUUID /<br/>CFUUIDRef /<br/>UIDevice -uniqueIdentifier /<br/>-identifierForVendor
ref: "http://developer.apple.com/library/mac/#documentation/Foundation/Reference/NSUUID_Class/Reference/Reference.html"
framework: Foundation
rating: 7.0
Expand Down
2 changes: 1 addition & 1 deletion 2013-07-01-enumerators.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: "NSFastEnumeration / NSEnumerator / -enumerateObjectsUsingBlock:"
title: "NSFastEnumeration /<br/>NSEnumerator /<br/>-enumerateObjectsUsingBlock:"
ref: "http://developer.apple.com/library/ios/#documentation/cocoa/reference/NSFastEnumeration_protocol/Reference/NSFastEnumeration.html"
framework: Foundation
rating: 7.8
Expand Down
5 changes: 2 additions & 3 deletions 2013-08-19-nshashtable-and-nsmaptable.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
layout: post
title: NSHashTable & NSMapTable

title: "NSHashTable &<br/>NSMapTable"
ref: "http://developer.apple.com/library/ios/DOCUMENTATION/Cocoa/Reference/NSMapTable_class/Reference/NSMapTable.html"
framework: Foundation
rating: 7.2
Expand Down Expand Up @@ -60,7 +59,7 @@ Instances where one might use `NSMapTable` include non-copyable keys and storing

~~~{objective-c}
id delegate = ...;
NSMapTable *mapTable = [NSMapTable mapTableWithKeyOptions:NSMapTableStrongMemory
NSMapTable *mapTable = [NSMapTable mapTableWithKeyOptions:NSMapTableStrongMemory
valueOptions:NSMapTableWeakMemory];
[mapTable setObject:delegate forKey:@"foo"];
NSLog(@"Keys: %@", [[mapTable keyEnumerator] allObjects]);
Expand Down
12 changes: 6 additions & 6 deletions 2013-10-21-launch-arguments-and-environment-variables.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: "Launch Arguments & Environment Variables"
title: "Launch Arguments &<br/>Environment Variables"

ref: "https://developer.apple.com/library/ios/technotes/tn2239/_index.html"
framework: Xcode
Expand All @@ -15,7 +15,7 @@ At McDonald's, one can order a "Poor Man’s Big Mac", which transforms a double

At Chipotle, there is an unwritten rule that they'll make anything within the scope of available ingredients. Since Mexican food is a testament to culinary combinatorics, an off-book order for a Quesadilla or Nachos is well within their wheelhouse.

In life, it's all about knowing what to ask for.
In life, it's all about knowing what to ask for.

Which brings us to Xcode Launch Arguments & Environment Variables. There are a number of options that can be passed into a target's scheme to enable useful debugging behavior, but like a fast food secret menu, they're obscure and widely unknown.

Expand Down Expand Up @@ -45,7 +45,7 @@ Getting localization right is a challenging and time-consuming task in and of it
#### NSDoubleLocalizedStrings

To simulate German's UI-breaking _götterdämmere Weltanschauung_ of long-compound-words-unbroken-by-breakable-whitespace, there's `NSDoubleLocalizedStrings`.
To simulate German's UI-breaking _götterdämmere Weltanschauung_ of long-compound-words-unbroken-by-breakable-whitespace, there's `NSDoubleLocalizedStrings`.

According to [IBM's Globalization Guidelines](http://www-01.ibm.com/software/globalization/guidelines/a3.html), we can expect translations from English to many European languages to be double or even triple the physical space of the source:

Expand Down Expand Up @@ -84,15 +84,15 @@ If you pass the `NSShowNonLocalizedStrings` launch argument, any unlocalized str

Perhaps the most useful launch argument of all, however, is `AppleLanguages`.

Normally, one would have to manually go through Settings > General > International > Language and wait for the Simulator or Device to restart. But the same can be accomplished much more simply with the following launch argument:
Normally, one would have to manually go through Settings > General > International > Language and wait for the Simulator or Device to restart. But the same can be accomplished much more simply with the following launch argument:

-AppleLanguages (es)

> The value for `AppleLanguages` can either be the name of the language ("Spanish"), or its language code (`es`), but since localization files are keyed by their ISO 639 code, using the code is preferable to the actual name of the language.
### Core Data

Of all of the system frameworks, Core Data may be the most in need of debugging. Managed objects passing across contexts and threads, and notifications firing with dazzlingly fervor, there's too much going on to keep track of yourself. Call in reinforcements with these essential launch arguments:
Of all of the system frameworks, Core Data may be the most in need of debugging. Managed objects passing across contexts and threads, and notifications firing with dazzlingly fervor, there's too much going on to keep track of yourself. Call in reinforcements with these essential launch arguments:

#### SQL Debug

Expand Down Expand Up @@ -130,7 +130,7 @@ In any other persistence layer, migrations are a blessing. Yet, for some reason,

Whereas launch arguments are specific to the executable, environment variables have a wider scope, more along the lines of a global variable (but without all of the knee-jerk derision from programmers).

Configure your environment with the following settings to shape the memory management policies to aide in debugging.
Configure your environment with the following settings to shape the memory management policies to aide in debugging.

> Unless otherwise specified, environment variables are passed `YES` or `NO` to enable or disable a particular feature.
Expand Down
2 changes: 1 addition & 1 deletion 2013-12-02-nsnotification-and-nsnotificationcenter.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: "NSNotification & NSNotificationCenter"
title: "NSNotification &<br/>NSNotificationCenter"
framework: "Foundation"
rating: 8.4
description: "Any idea is inextricably linked to how its communicated. A medium defines the form and scale of significance in such a way to shape the very meaning of an idea. Very truly, the medium is the message."
Expand Down
2 changes: 1 addition & 1 deletion 2013-12-16-launch-options.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: "UIApplicationDelegate launchOptions"
title: "UIApplicationDelegate<br/>launchOptions"
framework: "UIKit"
rating: 8.5
description: "AppDelegate is the dumping ground for functionality in iOS."
Expand Down
3 changes: 1 addition & 2 deletions 2013-12-30-new-years-2014.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
layout: post
title: "Reader Submissions - New Year's 2014"
title: "Reader Submissions -<br/> New Year's 2014"
category: "Reader Submissions"
published: true
framework: ""
description: "As we prepare to increment our NSDateComponents -year by 1, it's time once again for NSHipster end-of-the-year Reader Submissions!"
---
Expand Down
2 changes: 1 addition & 1 deletion 2014-02-03-mktileoverlay-mkmapsnapshotter-mkdirections.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: "MKTileOverlay, MKMapSnapshotter & MKDirections"
title: "MKTileOverlay,<br/>MKMapSnapshotter &<br/>MKDirections"
ref: "https://developer.apple.com/library/ios/documentation/MapKit/Reference/MapKit_Framework_Reference/_index.html#//apple_ref/doc/uid/TP40008210"
framework: MapKit
rating: 9.0
Expand Down
2 changes: 1 addition & 1 deletion 2014-03-03-nstemporarydirectory.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: NSTemporaryDirectory / NSItemReplacementDirectory / mktemp(3)
title: "NSTemporaryDirectory /<br/>NSItemReplacementDirectory /<br/>mktemp(3)"
framework: "Foundation"
rating: 7.7
description: "Volumes have been written about persisting data, but when it comes to short-lived, temporary files, there is very little to go on for Objective-C. (Or if there has, perhaps it was poetically ephemeral itself)."
Expand Down

0 comments on commit f1f95ea

Please sign in to comment.