Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1276)

Issue 8356024: Create ObjCCast<>() and ObjCCastStrict<>() methods (Closed)

Created:
9 years, 2 months ago by KushalP
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org
Visibility:
Public.

Description

Create ObjCCast<>() and ObjCCastStrict<>() methods These methods exist for casting a basic id to a more specific (NSObject derived) type. BUG=86004 TEST=Initialise common NS objects and confirm ObjCCast*<>() casts to the expected result. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106946

Patch Set 1 #

Total comments: 18

Patch Set 2 : Nils. Fix comments. Add AutoreleasePool. #

Total comments: 6

Patch Set 3 : Better example. Kill NULLs. Cleaner NS allocs. Add test_data_mutable. #

Patch Set 4 : Add colloquial *Strict docs prose #

Total comments: 2

Patch Set 5 : Reword. Remove non-ASCII. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -0 lines) Patch
M base/mac/foundation_util.h View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
M base/mac/foundation_util_unittest.mm View 1 2 2 chunks +116 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
KushalP
This is very similar to the work complete on CFCast*<>(). There is one thing that ...
9 years, 2 months ago (2011-10-19 22:38:29 UTC) #1
Mark Mentovai
http://codereview.chromium.org/8356024/diff/1/base/mac/foundation_util.h File base/mac/foundation_util.h (right): http://codereview.chromium.org/8356024/diff/1/base/mac/foundation_util.h#newcode230 base/mac/foundation_util.h:230: // specific (NSObject derived) type. The compatibility of the ...
9 years, 2 months ago (2011-10-19 22:59:32 UTC) #2
KushalP
All of the comments have been handled. http://codereview.chromium.org/8356024/diff/1/base/mac/foundation_util.h File base/mac/foundation_util.h (right): http://codereview.chromium.org/8356024/diff/1/base/mac/foundation_util.h#newcode241 base/mac/foundation_util.h:241: // TODO: ...
9 years, 2 months ago (2011-10-19 23:25:24 UTC) #3
Mark Mentovai
http://codereview.chromium.org/8356024/diff/1/base/mac/foundation_util.h File base/mac/foundation_util.h (right): http://codereview.chromium.org/8356024/diff/1/base/mac/foundation_util.h#newcode244 base/mac/foundation_util.h:244: if (objc_val == NULL) { KushalP wrote: > That ...
9 years, 2 months ago (2011-10-20 14:14:16 UTC) #4
KushalP
Comments handled and patch set added. http://codereview.chromium.org/8356024/diff/5/base/mac/foundation_util_unittest.mm File base/mac/foundation_util_unittest.mm (right): http://codereview.chromium.org/8356024/diff/5/base/mac/foundation_util_unittest.mm#newcode167 base/mac/foundation_util_unittest.mm:167: id test_array = ...
9 years, 2 months ago (2011-10-20 14:56:33 UTC) #5
KushalP
http://codereview.chromium.org/8356024/diff/1/base/mac/foundation_util.h File base/mac/foundation_util.h (right): http://codereview.chromium.org/8356024/diff/1/base/mac/foundation_util.h#newcode241 base/mac/foundation_util.h:241: // TODO: Write a good example for ObjCCastStrict<>() You ...
9 years, 2 months ago (2011-10-20 14:59:37 UTC) #6
Mark Mentovai
http://codereview.chromium.org/8356024/diff/1/base/mac/foundation_util.h File base/mac/foundation_util.h (right): http://codereview.chromium.org/8356024/diff/1/base/mac/foundation_util.h#newcode241 base/mac/foundation_util.h:241: // TODO: Write a good example for ObjCCastStrict<>() KushalP ...
9 years, 2 months ago (2011-10-21 14:30:54 UTC) #7
KushalP
Pretty much! What I found particularly interesting was how you discussed the case-based usage of ...
9 years, 2 months ago (2011-10-21 23:50:28 UTC) #8
Mark Mentovai
Right, I agree, I said “sure.” Let’s do it.
9 years, 2 months ago (2011-10-22 16:59:13 UTC) #9
KushalP
On 2011/10/22 16:59:13, Mark Mentovai wrote: > Right, I agree, I said “sure.” Let’s do ...
9 years, 2 months ago (2011-10-23 00:56:36 UTC) #10
KushalP
On 2011/10/23 00:56:36, KushalP wrote: > On 2011/10/22 16:59:13, Mark Mentovai wrote: > > Right, ...
9 years, 2 months ago (2011-10-23 00:56:47 UTC) #11
Mark Mentovai
http://codereview.chromium.org/8356024/diff/9003/base/mac/foundation_util.h File base/mac/foundation_util.h (right): http://codereview.chromium.org/8356024/diff/9003/base/mac/foundation_util.h#newcode238 base/mac/foundation_util.h:238: // stuffed into a collection, where you know you’ve ...
9 years, 2 months ago (2011-10-23 16:05:24 UTC) #12
KushalP
Sorry. I've reworded it and removed the non-ASCII characters.
9 years, 2 months ago (2011-10-23 21:43:13 UTC) #13
Mark Mentovai
LGTM & CQ
9 years, 2 months ago (2011-10-24 13:36:36 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kushi.p@gmail.com/8356024/12002
9 years, 2 months ago (2011-10-24 13:36:48 UTC) #15
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
9 years, 2 months ago (2011-10-24 14:39:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kushi.p@gmail.com/8356024/12002
9 years, 2 months ago (2011-10-24 16:45:15 UTC) #17
commit-bot: I haz the power
9 years, 2 months ago (2011-10-24 18:04:17 UTC) #18
Change committed as 106946

Powered by Google App Engine
This is Rietveld 408576698