Re: NSOutlineView problem
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