• 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: Storyboard won't instantiate my class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storyboard won't instantiate my class


  • Subject: Re: Storyboard won't instantiate my class
  • From: Rick Aurbach <email@hidden>
  • Date: Thu, 13 Feb 2014 23:54:04 -0500
  • Acceptlanguage: en-US
  • Thread-topic: Storyboard won't instantiate my class

Kyle,

Yes, AATappableLabel.m is indeed a member of the target. (I checked it multiple times.) Moreover, I have confirmation of this in other places in the application, where I use the AATappableLabel class directly embedded in a UIView (rather than in the contentView of a UITableViewCell) and it behaves as expected there.

That’s one of the things that has me mystified about what I am seeing here.

I know that cross-posting is usually bad form, but in this case I am truly unsure whether this is an Xcode problem (i.e., something relating to the compilation of the storyboard) or a Cocoa problem (i.e., a problem with the instantiation of the object. Please accept my apology.

Cheers,

Rick Aurbach

On Feb 13, 2014, at 6:23 PM, Kyle Sluder <email@hidden> wrote:

> On Thu, Feb 13, 2014, at 01:53 PM, Rick Aurbach wrote:
>> Notice that the storyboard recognizes that the label ought to instantiate
>> a custom class (see red text above), but that doesn’t happen
>>
>> *   if I set breakpoints in the initxxx methods, they are never hit
>> *   if I break in the method where the cell is instantiated, the
>> debugger identifies the object as a UILabel, rather than an
>> AATappableLabel.
>
> Is AATappableLabel.m a member of your target? If not, the nib loader
> will fall back to UILabel.
>
> --Kyle Sluder


_______________________________________________

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: 
 >Re: Storyboard won't instantiate my class (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Prevent autoloading of last opened document
  • Next by Date: Re: Prevent autoloading of last opened document
  • Previous by thread: Re: Storyboard won't instantiate my class
  • Next by thread: NSPDFPanel accessory view validation
  • Index(es):
    • Date
    • Thread