FROM : Michael Ash
DATE : Tue Apr 15 18:09:43 2008
On Tue, Apr 15, 2008 at 11:44 AM, Johnny Lundy <<email_removed>> wrote:
> What would be great is if Apple would give us many more convenience methods
> that pared it down to the most common things - like a "- (NSStriing *)
> NSSynchronousURLFetch:(NSString *)theURL" method that just takes a string
> which represents the URL and returns a string which is the content at that
> URL.
Nothing stops you from making such methods yourself. In fact, if
you're writing the long version more than once, that's exactly what
you ought to be doing. Using categories you can even make it look like
a "real" method on the class where it best belongs.
Mike
DATE : Tue Apr 15 18:09:43 2008
On Tue, Apr 15, 2008 at 11:44 AM, Johnny Lundy <<email_removed>> wrote:
> What would be great is if Apple would give us many more convenience methods
> that pared it down to the most common things - like a "- (NSStriing *)
> NSSynchronousURLFetch:(NSString *)theURL" method that just takes a string
> which represents the URL and returns a string which is the content at that
> URL.
Nothing stops you from making such methods yourself. In fact, if
you're writing the long version more than once, that's exactly what
you ought to be doing. Using categories you can even make it look like
a "real" method on the class where it best belongs.
Mike
| Related mails | Author | Date |
|---|---|---|
| Adam Gerson | Apr 15, 04:53 | |
| John Stiles | Apr 15, 05:05 | |
| Michael Vannorsdel | Apr 15, 05:06 | |
| Matt Burnett | Apr 15, 05:15 | |
| John Stiles | Apr 15, 05:17 | |
| Michael Ash | Apr 15, 05:24 | |
| Ferhat Ayaz | Apr 15, 06:05 | |
| Adam Leonard | Apr 15, 08:09 | |
| Jeff LaMarche | Apr 15, 16:08 | |
| john darnell | Apr 15, 16:25 | |
| Jeff LaMarche | Apr 15, 16:56 | |
| I. Savant | Apr 15, 17:05 | |
| john darnell | Apr 15, 17:14 | |
| I. Savant | Apr 15, 17:19 | |
| john darnell | Apr 15, 17:27 | |
| glenn andreas | Apr 15, 17:29 | |
| Michael Ash | Apr 15, 17:36 | |
| I. Savant | Apr 15, 17:39 | |
| Jean-Daniel Dupas | Apr 15, 17:39 | |
| Johnny Lundy | Apr 15, 17:44 | |
| john darnell | Apr 15, 17:46 | |
| Jean-Daniel Dupas | Apr 15, 17:57 | |
| Michael Ash | Apr 15, 18:09 |






Cocoa mail archive

