Chromium Code Reviews| Index: chrome/browser/ui/cocoa/tracking_area.h |
| diff --git a/chrome/browser/ui/cocoa/tracking_area.h b/chrome/browser/ui/cocoa/tracking_area.h |
| index 26cb2eff778b4412fc1aa9f434f45b948ee5df88..c12c2fd39b2bba9fe0c881c7378a342c9ccf28f7 100644 |
| --- a/chrome/browser/ui/cocoa/tracking_area.h |
| +++ b/chrome/browser/ui/cocoa/tracking_area.h |
| @@ -20,9 +20,16 @@ |
| // Designated initializer. Forwards all arguments to the superclass, but wraps |
| // |owner| in a proxy object. |
| +// |
| +// The |proxiedOwner:| paramater has been renamed due to an incompatiblity with |
| +// the 10.5 SDK. Since that SDK version declares |-[NSTrackingArea's init...]|'s |
| +// return type to be |NSTrackingArea*| rather than |id|, a more generalized type |
| +// can't be returned by the subclass. Until the project switches to the 10.6 SDK |
| +// (where Apple changed the return type to |id|), this ugly hack must exist. |
| +// TODO(rsesek): Remove this when feasabile. |
|
Nico
2011/02/15 13:57:51
s/when feasible/when switch to 10.6 SDK is done/?
|
| - (id)initWithRect:(NSRect)rect |
| options:(NSTrackingAreaOptions)options |
| - owner:(id)owner |
| + proxiedOwner:(id)owner // 10.5 SDK hack. Remove at some point. |
| userInfo:(NSDictionary*)userInfo; |
| // Prevents any future messages from being delivered to the |owner|. |