mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-23 20:49:56 +00:00
Add missing links and a couple more TODOs
This commit is contained in:
parent
7d409d737d
commit
5a622afda5
1 changed files with 10 additions and 8 deletions
|
@ -1,9 +1,11 @@
|
||||||
When it comes time to present errors or other messages with UIAlertView
|
When it comes time to present errors or other messages in iOS
|
||||||
it becomes immediately obvious that a more convienient interface would
|
with [UIAlertView] it becomes immediately obvious that a more
|
||||||
involve the use of blocks. A [search on GitHub][github-search] shows
|
convienient interface would involve the use of blocks. A [search on
|
||||||
just about every developer has had a crack at it.
|
GitHub][github-search] shows just about every iOS developer has had a
|
||||||
|
crack at it.
|
||||||
|
|
||||||
[github-search]: TODO
|
[UIAlertView]: TODO
|
||||||
|
[github-search]: https://github.com/search?type=Repositories&language=&q=uialertview&repo=&langOverride=&x=14&y=17&start_value=1
|
||||||
|
|
||||||
After reviewing the better options (I.e. those that actually had a
|
After reviewing the better options (I.e. those that actually had a
|
||||||
README with more than a few lines of content) on GitHub it appeared
|
README with more than a few lines of content) on GitHub it appeared
|
||||||
|
@ -21,7 +23,7 @@ function allows one object to be associated with another using various
|
||||||
memory management strategies. I used this to associate the UIAlertView
|
memory management strategies. I used this to associate the UIAlertView
|
||||||
blocks based wrapper with the UIAlertView.
|
blocks based wrapper with the UIAlertView.
|
||||||
|
|
||||||
[set-object]: TODO
|
[set-object]: http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/ObjectiveC/Chapters/ocAssociativeReferences.html
|
||||||
|
|
||||||
In the `init` method:
|
In the `init` method:
|
||||||
|
|
||||||
|
@ -29,7 +31,7 @@ In the `init` method:
|
||||||
|
|
||||||
Note that I'm using the implicit second argument to the method, its
|
Note that I'm using the implicit second argument to the method, its
|
||||||
selector, `_cmd` as the key for the associated object. This was
|
selector, `_cmd` as the key for the associated object. This was
|
||||||
suggested in a [tweet by Bill Bummager][bbum].
|
suggested in a [tweet by Bill Bummager][bbum]. TODO
|
||||||
|
|
||||||
[bbum]: http://twitter.com/bbum/status/3609098005
|
[bbum]: http://twitter.com/bbum/status/3609098005
|
||||||
|
|
||||||
|
@ -40,6 +42,6 @@ released.
|
||||||
SEL key = @selector(initWithTitle:message:);
|
SEL key = @selector(initWithTitle:message:);
|
||||||
objc_setAssociatedObject(self.alertView, key, nil, OBJC_ASSOCIATION_RETAIN);
|
objc_setAssociatedObject(self.alertView, key, nil, OBJC_ASSOCIATION_RETAIN);
|
||||||
|
|
||||||
The [full (MIT licensed) code][gist] is available as a [gist] on GitHub.
|
The full [MIT licensed code][gist] is available as a [gist on GitHub][gist].
|
||||||
|
|
||||||
[gist]: https://gist.github.com/1392611
|
[gist]: https://gist.github.com/1392611
|
||||||
|
|
Loading…
Reference in a new issue