Re: is this badly written code?
Re: is this badly written code?
- Subject: Re: is this badly written code?
- From: "Michael Ash" <email@hidden>
- Date: Tue, 15 Apr 2008 12:09:43 -0400
On Tue, Apr 15, 2008 at 11:44 AM, Johnny Lundy <email@hidden> 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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden