• 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: [Solved - duh!] Core data storage of objects whose class is loaded from a bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Solved - duh!] Core data storage of objects whose class is loaded from a bundle


  • Subject: Re: [Solved - duh!] Core data storage of objects whose class is loaded from a bundle
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 29 Jan 2009 15:18:59 -0700


On Jan 29, 2009, at 2:32 PM, Rick Hoge wrote:

-(id)initWithCoder:(NSCoder*)decoder {

self = [super initWithCoder:decoder]; // Returns instance of parent class

 return self;

}

which was returning an instance of the parent class and not the subclass.


Then you've got something strange going on, because initializing the superclass shouldn't be setting the object _to_ the superclass; that's the responsibility of whoever allocated the class to set the class. So either you're allocating the wrong class, or your superclass is doing something unorthodox.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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


  • Follow-Ups:
    • Re: [Solved - duh!] Core data storage of objects whose class is loaded from a bundle
      • From: Rick Hoge <email@hidden>
References: 
 >Core data storage of objects whose class is loaded from a bundle (From: Rick Hoge <email@hidden>)
 >Re: [Solved - duh!] Core data storage of objects whose class is loaded from a bundle (From: Rick Hoge <email@hidden>)

  • Prev by Date: Re: Why does NSTableView stop responding to validateMenuItem: ?
  • Next by Date: viewDidLoad called after viewWillAppear:
  • Previous by thread: Re: [Solved - duh!] Core data storage of objects whose class is loaded from a bundle
  • Next by thread: Re: [Solved - duh!] Core data storage of objects whose class is loaded from a bundle
  • Index(es):
    • Date
    • Thread