[Webkit-unassigned] [Bug 9417] New: Inappropriate +initialize method added to NSPasteboard via category
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Mon Jun 12 09:34:24 PDT 2006
http://bugzilla.opendarwin.org/show_bug.cgi?id=9417
Summary: Inappropriate +initialize method added to NSPasteboard
via category
Product: WebKit
Version: 420+ (nightly)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: WebKit Misc.
AssignedTo: webkit-unassigned at opendarwin.org
ReportedBy: jim.correia at pobox.com
As of r14819 (*) of the WebKit source, there is code in WebNSPasteBoardExtras.m
which looks like this:
(*) The version of WebKit shipping on 10.4.6 does something similar.
@implementation NSPasteboard (WebExtras)
+ (void)initialize
{
[...]
}
Unlike +load (which is sent to every category), +initialize is only sent once
per class, thus the category implementation is going to override the
NSPasteboard implementation.
NSPasteboard today doesn't have an +initialize, but if it were to every get
one, applications which linked against WebKit would have subtly wrong/different
behavior. Some alternative means of initializing the category globals seems
like a good idea.
See also rdar://problem/4582212
--
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list