• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Class UITableViewCellContentView is implemented in both <here> and <there>. One of the two will be used. Which one is undefined.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class UITableViewCellContentView is implemented in both <here> and <there>. One of the two will be used. Which one is undefined.


  • Subject: Re: Class UITableViewCellContentView is implemented in both <here> and <there>. One of the two will be used. Which one is undefined.
  • From: Laurent Daudelin <email@hidden>
  • Date: Fri, 08 Apr 2011 08:54:16 -0700

Thanks Luke.

I initially didn't understand how I could have done this because I'm careful about the names I give my classes, having done Objective-C for 15 years. But I found one implementation. I remember yesterday when googling that there was an issue on Stack Overflow at some point with SDK 3.2 where an exception was raised when trying to load a nib. Someone had suggested to create an almost empty implementation of UITableViewCellContentView to work around that problem. I guess I need to remove that remnant.

Thanks for pointing that out. I would have searched a bit because I didn't remember creating that duplicate!

-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 				http://www.nemesys-soft.com/
Logiciels Nemesys Software						email@hidden

On Apr 8, 2011, at 08:33, Luke Hiesterman wrote:

> It means that UIKit now defines a class called UITableViewCellContentView and that collides with one of your classes. Objective C has this inherent weakness that if a class with the same name is implemented in more than one place, they fight for which one gets used. Since you can't change UIKit, you will have to change the name of your class. While you're at it, I'd recommend not prefixing your own class names with UI or other apple prefixes such as NS. It will help you avoid this situation in the future.
>
> Luke
>
> On Apr 7, 2011, at 10:50 PM, Laurent Daudelin <email@hidden> wrote:
>
>> Back working on an old project I haven't touched in maybe over a year. Updated the project file with the latest SDK, clean all targets and rebuilt.
>>
>> Now, when I launch the app in the simulator (any version of iOS), I'm getting this stupid error:
>>
>> Class UITableViewCellContentView is implemented in both /Users/laurent/Library/Application Support/iPhone Simulator/4.0.2/Applications/EB19DD7A-2905-4625-8120-B6A8432318D7/<iOS App>.app/<iOS App> and /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/UIKit. One of the two will be used. Which one is undefined.
>>
>> I googled the first part of the error and found a few, old references about an old bug that was in the framework but with the recent SDKs still doing it, I don't understand.
>>
>> What's wrong with this and what am I missing?
>>
>> Thanks in advance!
>>
>> -Laurent.
>> --
>> Laurent Daudelin
>> AIM/iChat/Skype:LaurentDaudelin                http://www.nemesys-soft.com/
>> Logiciels Nemesys Software                        email@hidden
>>
>> _______________________________________________
>>
>> 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

_______________________________________________

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

References: 
 >Class UITableViewCellContentView is implemented in both <here> and <there>. One of the two will be used. Which one is undefined. (From: Laurent Daudelin <email@hidden>)
 >Re: Class UITableViewCellContentView is implemented in both <here> and <there>. One of the two will be used. Which one is undefined. (From: Luke Hiesterman <email@hidden>)

  • Prev by Date: Re: Display a "Red frame" on the screen
  • Next by Date: Re: Framework Installation Directory
  • Previous by thread: Re: Class UITableViewCellContentView is implemented in both <here> and <there>. One of the two will be used. Which one is undefined.
  • Next by thread: NSWorkspaceWillPowerOffNotification not working with Qt Cocoa Mac Application
  • Index(es):
    • Date
    • Thread