• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSURLDownload and userInfo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLDownload and userInfo


  • Subject: Re: NSURLDownload and userInfo
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 12 Mar 2008 09:05:45 -0700


On 12 Mar '08, at 12:39 AM, Trygve Inda wrote:

I am surprised NSURLDownload and
NSURLRequest do not have userInfo ivars like many other Cocoa classes
that do asynchronous operations (NSTimer for instance).
Thanks for this. I too am surprised there is no userInfo in these classes
and wanted to be sure I wasn't overlooking something.

I looked through the Foundation and AppKit headers, and the _only_ class that has an "id userInfo" property like this is NSTimer. (I wasn't even aware of it; I've never found a need for it.) So I don't think it's a widespread technique.


(There are immutable value objects like NSError and NSNotification that have userInfo dicts, but that's to provide metadata about the object's value, not as an alternative to subclassing.)

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Follow-Ups:
    • Re: NSURLDownload and userInfo
      • From: Adam Leonard <email@hidden>
References: 
 >Re: NSURLDownload and userInfo (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Encoding NSString for URL
  • Next by Date: BitMap data format and autorelease
  • Previous by thread: Re: NSURLDownload and userInfo
  • Next by thread: Re: NSURLDownload and userInfo
  • Index(es):
    • Date
    • Thread