On Aug 12, 2010, at 11:06, Keary Suska <cocoa-...@esoteritech.com> wrote:
> If you really don't want (or can't have) an instance variable, you can > init/alloc then release in connectionDidFinishLoading: and > connection:didFailWithError:. I wouldn't recommend this though, as it is > probably "bad form", but as long you never want to memory-manage > NSURLConnections in that class, ever, it would be somewhat future proof. (First humble post - I will introduce myself properly when I have time to send out my own lingering Cocoa question.) Could you clarify why you think this paradigm is "bad form?" I only ask because as far as I can tell all of Apple's API docs follow said model. It seems like a good approach is to use init/alloc and still use an instance variable (to cancel the request, for example). I also notice in the documentation that either of the init methods retain the delegate, whereas the class method is not documented as retaining the delegate. If my reading is correct, this will have design impact as well. -- Conrad Shultz www.synthetiqsolutions.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com