• 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: NSOutlineView problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView problem


  • Subject: Re: NSOutlineView problem
  • From: Chris Hanson <email@hidden>
  • Date: Wed, 11 Apr 2007 20:57:14 -0700

On Apr 11, 2007, at 3:17 PM, jordibares wrote:

I am running into a funny behavior with NSOutlineView when adding objects
because does not display in the outline view the child nodes when I do
create these child nodes from a method. When these nodes are created from
the init method then it works.

You probably have two instances of the class your -init and - addComputerNode: methods are a part of in Interface Builder — for example, one as your application's delegate in MainMenu.nib, and another in MyDocument.nib — that you're expecting to behave like a single instance.


Each time you instantiate a class in Interface Builder it's as though you've written [[WhateverClass alloc] init] in some code.

 -- Chris


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >NSOutlineView problem (From: jordibares <email@hidden>)

  • Prev by Date: objectFileHasPlusLoadMethod
  • Next by Date: How do I set the cursor for an application?
  • Previous by thread: NSOutlineView problem
  • Next by thread: objectFileHasPlusLoadMethod
  • Index(es):
    • Date
    • Thread