• 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
How subclass NSTreeController's -(void)insertChild:?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How subclass NSTreeController's -(void)insertChild:?


  • Subject: How subclass NSTreeController's -(void)insertChild:?
  • From: Thilo Ettelt <email@hidden>
  • Date: Thu, 18 May 2006 16:23:30 +0200

Hello list,

I want to add a child to my NSTreeController. The child needs to have an object passed through its initializer (i.e. -initWithObject:). So I thought I would subclass -(void)insertObject and manually put the object in the array to which the controller is bound. This however gives me a strange message:

unexpected state: trying to insert object <Category: 0x3c1770> failed. Destination node == nil or destination node did not retain the object


How can I call my inizializer and add a child anyway now?


Thx in advance, Thilo _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How subclass NSTreeController's -(void)insertChild:? [fixed]
      • From: Thilo Ettelt <email@hidden>
  • Prev by Date: URI de/encoding
  • Next by Date: Re: How subclass NSTreeController's -(void)insertChild:? [fixed]
  • Previous by thread: Re: URI de/encoding
  • Next by thread: Re: How subclass NSTreeController's -(void)insertChild:? [fixed]
  • Index(es):
    • Date
    • Thread