Re: Output of NSHTTPCookieStorage to NSTableView
Re: Output of NSHTTPCookieStorage to NSTableView
- Subject: Re: Output of NSHTTPCookieStorage to NSTableView
- From: Jens Alfke <email@hidden>
- Date: Sun, 29 Jun 2008 12:56:20 -0700
On 29 Jun '08, at 9:39 AM, Chris Purcell wrote:
Thank you for the reply. I think right now the simplest would be to
convert the cookies array to an array of NSStrings. What would be
the easiest way to do this?
Keep the array as an array of NSHTTPCookies. But your -
objectValueForTableColumn: should look up the cookie object for the
row, and then get the right attribute of the cookie based on the
column identifier. For instance, if the column shows URLs, then you
should get the URL of the cookie and return its absoluteString. If it
shows dates, return an NSDate.
—Jens_______________________________________________
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