diff options
author | rowanbeentje <rowan@beent.je> | 2010-03-14 15:57:46 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-03-14 15:57:46 +0000 |
commit | bd4ef6874d0037ee85f25e6aeb9c4c5e4c361baa (patch) | |
tree | 98dcc63f2cae911f2ae9f7f1fc2af3290dd5a265 /Source/SPTextAndLinkCell.m | |
parent | 094c2779974ba765fc42af063d094e2dc136f225 (diff) | |
download | sequelpro-bd4ef6874d0037ee85f25e6aeb9c4c5e4c361baa.tar.gz sequelpro-bd4ef6874d0037ee85f25e6aeb9c4c5e4c361baa.tar.bz2 sequelpro-bd4ef6874d0037ee85f25e6aeb9c4c5e4c361baa.zip |
- Review copyWithZone: implementations and standardise on best practice recommendations
Diffstat (limited to 'Source/SPTextAndLinkCell.m')
-rw-r--r-- | Source/SPTextAndLinkCell.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPTextAndLinkCell.m b/Source/SPTextAndLinkCell.m index 8eac562d..29d93a62 100644 --- a/Source/SPTextAndLinkCell.m +++ b/Source/SPTextAndLinkCell.m @@ -78,8 +78,11 @@ static inline NSRect SPTextLinkRectFromCellRect(NSRect inRect) * Returns a new instance which is a copy of the receiver */ - (id) copyWithZone:(NSZone *)zone { - SPTextAndLinkCell *copy = [super copyWithZone:zone]; + SPTextAndLinkCell *copy = (SPTextAndLinkCell *)[super copyWithZone:zone]; + copy->linkButton = nil; if (linkButton) copy->linkButton = [linkButton copyWithZone:zone]; + copy->linkTarget = linkTarget; + copy->linkAction = linkAction; return copy; } |